    .containers1 {
      max-width: 900px;
      margin: 40px auto;
      padding: 20px;
      background: #fff;
      border-radius: 10px;
      border: 1px solid #d1fae5;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
      text-align: center;
    }
    .upload-area {
      border: 1px dashed #aaa;
      padding: 40px;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.3s ease;
      margin-bottom: 20px;
    }
  
    .upload-area:hover {
      background-color: #f9f9f9;
    }
    .pages {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      margin-bottom: 20px;
    }
    .page {
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 10px;
      background: #fff;
      position: relative;
    }
    .page canvas {
      max-width: 120px;
      height: auto;
      display: block;
    }
    .actions {
      display: flex;
      justify-content: space-between;
      margin-top: 5px;
    }
    .actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #ff0000; /* Red color for delete icon */
}
  .fas fa-rotate-right{
    background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #009688;
  }
.actions button:hover {
  color: #cc0000; /* Darker red on hover */
}
    #finishBtn, #resetBtn {
      padding: 10px 20px;
      font-size: 16px;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      margin: 10px;
    }
    #popup {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
      display: none;
      z-index: 1000;
      position: relative; /* Added to position close button */
    }
    #popup a {
      display: inline-block;
      margin-top: 20px;
      padding: 10px 20px;
      background: #28a745;
      color: white;
      border-radius: 5px;
      text-decoration: none;
    }
    /* New styles for close button */
    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: #333;
    }
    .close-btn:hover {
      color: #ff0000; /* Red color on hover */
    }