/* Styles specific to the PDF to Image tool */

.drop-area {
    border: 2px dashed #FF9800;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #fff9f0;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .drop-area:hover, .drop-area.active {
    background-color: #fff3e0;
  }
  
  .drop-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .icon {
    font-size: 36px;
    color: #FF9800;
    background-color: rgba(255, 152, 0, 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;
  }
  
  .pdf-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff3e0;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  .file-preview {
    width: 50px;
    height: 70px;
    background-color: #FF9800;
    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;
  }
  
  .conversion-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;
  }
  
  .sub-options {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    padding-left: 25px;
  }
  
  .sub-options label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
  }
  
  .sub-options input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
  }
  
  .range-with-value {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .range-with-value input[type="range"] {
    flex-grow: 1;
    max-width: 250px;
  }
  
  .resolution-options {
    margin-top: 10px;
  }
  
  .resolution-options select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .pages-preview {
    margin-top: 20px;
  }
  
  .pages-preview h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .pages-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
  }
  
  .page-thumbnail {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5;
  }
  
  .page-thumbnail.selected {
    border-color: #FF9800;
    background-color: #fff3e0;
  }
  
  .thumbnail-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .thumbnail-container canvas {
    max-width: 100%;
    max-height: 100%;
  }
  
  .page-number {
    text-align: center;
    padding: 5px;
    font-size: 12px;
    border-top: 1px solid #eee;
    background-color: white;
  }
  
  .checkbox-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
  }
  
  .actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }
  
  .result-info {
    background-color: #fff3e0;
    border-left: 4px solid #FF9800;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
  }
  
  .result-info p {
    color: #e65100;
    margin: 5px 0;
  }
  
  .result-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 500px;
    overflow-y: auto;
  }
  
  .result-image-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
  }
  
  .result-image-preview {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .result-image-preview img {
    max-width: 100%;
    max-height: 100%;
  }
  
  .result-image-info {
    padding: 10px;
    border-top: 1px solid #eee;
    background-color: white;
  }
  
  .result-image-name {
    font-weight: bold;
    margin-bottom: 3px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .result-image-size {
    font-size: 12px;
    color: #666;
  }
  
  .result-image-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
  }
  
  .download-image-btn {
    flex: 1;
    padding: 5px 10px;
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .download-image-btn:hover {
    background-color: #F57C00;
  }
  
  @media (max-width: 650px) {
    .drop-area {
      padding: 20px;
    }
    
    .pdf-info {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .file-preview {
      margin-bottom: 10px;
    }
    
    .pages-container {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .actions {
      flex-direction: column;
    }
    
    .primary-btn, .secondary-btn {
      width: 100%;
    }
    
    .result-images {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }