/* ===== TOOL PAGE BODY STYLES ===== */
.tool-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.tool-section h1 {
    font-size: 1.9rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1565c0;
}
.tool-section p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* File input */
#fileInput {
    display: block;
    padding: 12px;
    font-size: 1rem;
    border: 2px dashed #90caf9;
    border-radius: 8px;
    width: 100%;
    background: #f1f8ff;
    cursor: pointer;
    margin-bottom: 15px;
}

/* File list */
.file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.file-list li {
    background: #f5f5f5;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}
.file-list .remove {
    cursor: pointer;
    color: #d9534f;
}
.file-list .remove:hover {
    color: #b52b27;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: #fff;
    transition: all 0.3s ease;
}
.btn:hover {
    background: linear-gradient(135deg, #64b5f6, #1565c0);
    transform: translateY(-2px);
}
.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Progress */
.progress {
    width: 100%;
    height: 14px; /* taller for visibility */
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #42a5f5, #1e88e5); /* blue gradient */
    transition: width 0.4s ease;
}


/* About tool section */
.tool-section h2 {
    margin-top: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}
.tool-section div {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}



@media (max-width: 600px) {
    .tool-section {
        padding: 15px;
    }
    .tool-section h1 {
        font-size: 1.5rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

/* PDF Split specific styles */
.split-options {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.option-group {
    margin-bottom: 10px;
}

.option-group input[type="radio"] {
    margin-right: 10px;
}

.option-group label {
    font-weight: 500;
    cursor: pointer;
}

.custom-range-section {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.custom-range-section input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 14px;
}

.custom-range-section small {
    color: #6c757d;
    font-size: 12px;
}

/* Status messages */
.status {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-weight: 500;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}



/* File list */
.file-list {
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.file-list li {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.file-list li i {
    margin-right: 10px;
    color: #e74c3c;
}

.file-size {
    margin-left: auto;
    color: #6c757d;
    font-size: 12px;
}

/* Button styles */
.btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #0069d9;
}

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn i {
    margin-right: 8px;
}
/* Live preview for remove pages tool */
.preview-msg {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 500;
  }
  form input[type=password] {
    display: block;
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
  }
  .form-group {
    margin: 15px 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}
/* Upload status styles */
.upload-status {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.upload-status.uploading {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.upload-status.processing {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffecb3;
}

.upload-status.completed {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.upload-status.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* File completion indicators */
.file-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-left: auto;
}

.file-status.queued {
    color: #757575;
}

.file-status.processing {
    color: #ff9800;
}

.file-status.completed {
    color: #4caf50;
}

.file-status.failed {
    color: #f44336;
}

/* Status icons */
.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-icon.queued {
    background-color: #bdbdbd;
}

.status-icon.processing {
    background-color: #ff9800;
    animation: pulse 1.5s infinite;
}

.status-icon.completed {
    background-color: #4caf50;
}

.status-icon.failed {
    background-color: #f44336;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Upload progress details */
.upload-details {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #616161;
}

.upload-speed, .time-remaining {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Watermark PDF specific styles */
.form-group {
    margin: 15px 0;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
  }
  
  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
  }
  
  .form-group input[type="number"] {
    width: 120px;
  }
  
  /* Watermark preview */
  .watermark-preview {
    margin: 15px 0;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    text-align: center;
  }
  
  .watermark-preview-text {
    font-size: 24px;
    opacity: 0.3;
    transform: rotate(-45deg);
    color: #333;
  }
  /* Watermark Image specific styles */
.image-preview {
    margin: 15px 0;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: none;
  }
  
  .preview-container {
    position: relative;
    margin: 15px 0;
  }
  
  .watermark-preview {
    position: absolute;
    pointer-events: none;
    color: rgba(0, 0, 0, 0.3);
    font-family: Helvetica, Arial, sans-serif;
  }
  
  /* Position classes for preview */
  .watermark-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .watermark-diagonal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .watermark-top-left {
    top: 20px;
    left: 20px;
  }
  
  .watermark-top-right {
    top: 20px;
    right: 20px;
  }
  
  .watermark-bottom-left {
    bottom: 20px;
    left: 20px;
  }
  
  .watermark-bottom-right {
    bottom: 20px;
    right: 20px;
  }
 