/* Styles specific to the Split PDF tool */

.drop-area {
    border: 2px dashed #4CAF50;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #f7fcf8;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .drop-area:hover, .drop-area.active {
    background-color: #e8f5e9;
  }
  
  .drop-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .icon {
    font-size: 36px;
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
  }
  
  .drop-message p {
    color: #555;
    font-size: 16px;
  }
  
  .file-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  .file-preview {
    width: 50px;
    height: 70px;
    background-color: #4CAF50;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .file-preview img {
    max-width: 100%;
    max-height: 100%;
  }
  
  .file-details {
    flex-grow: 1;
  }
  
  .file-details h3 {
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
  }
  
  .file-details p {
    margin: 3px 0;
    font-size: 14px;
    color: #666;
  }
  
  .split-options {
    margin: 20px 0;
  }
  
  .option-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
  }
  
  .option-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
  }
  
  .radio-group input[type="radio"] {
    margin-right: 10px;
    width: auto;
  }
  
  .option-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
  }
  
  .option-section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .note {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .page-preview {
    margin-top: 20px;
  }
  
  .pages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .page-thumbnail {
    width: 100px;
    height: 140px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: relative;
  }
  
  .page-thumbnail.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
  }
  
  .thumbnail-container {
    width: 90px;
    height: 110px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .thumbnail-container img, .thumbnail-container canvas {
    max-width: 100%;
    max-height: 100%;
  }
  
  .page-number {
    font-size: 12px;
    color: #333;
    margin-top: 5px;
  }
  
  .result-files {
    margin: 20px 0;
  }
  
  .result-file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .result-file-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    border-radius: 4px;
  }
  
  .result-file-icon img {
    width: 24px;
    height: 24px;
  }
  
  .result-file-info {
    flex-grow: 1;
  }
  
  .result-file-name {
    font-weight: bold;
    margin-bottom: 3px;
  }
  
  .result-file-pages {
    font-size: 12px;
    color: #666;
  }
  
  .result-file-actions {
    display: flex;
    gap: 10px;
  }
  
  .download-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
  }
  
  .preview-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
  }
  
  .actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }
  
  @media (max-width: 650px) {
    .drop-area {
      padding: 20px;
    }
    
    .file-info {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .file-preview {
      margin-bottom: 10px;
    }
    
    .radio-group {
      flex-direction: column;
    }
    
    .actions {
      flex-direction: column;
    }
    
    .primary-btn, .secondary-btn {
      width: 100%;
    }
  }