/* Breadcrumb Styles */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #718096;
}
.breadcrumb a {
    color: #4299e1;
    text-decoration: none;
}
.breadcrumb-current {
    color: #2d3748;
}

/* Header & Meta Styling */
.page-header-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Security Notification Box */
.security-alert {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #e6fffa;
    border: 1px solid #4fd1c5;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #38a169;
}

/* Grid & Layout Wrapper */
.converter-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Interactive Elements & Buttons */
.upload-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    margin: 0 auto;
}

.clear-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: #f7fafc;
    color: #e53e3e;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.convert-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

/* Vector Graphics Dimension Utilities */
.icon-svg-sm {
    width: 18px;
    height: 18px;
}
.icon-svg-md {
    width: 22px;
    height: 22px;
}
.icon-svg-md-fixed {
    width: 20px;
    height: 20px;
}
.icon-svg-lg {
    width: 48px;
    height: 48px;
    color: #22c55e;
}

/* State Panels (Upload, Preview, Progress, Options, Results) */
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.preview-title {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0;
}
.preview-actions {
    display: flex;
    gap: 0.5rem;
}

#imageGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.page-order-note {
    margin-top: 1rem;
    display: none;
}
.hidden-input {
    display: none;
}

.options-section {
    display: none;
    margin-bottom: 1.5rem;
}
.options-card {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 2px solid #e2e8f0;
}
.options-title {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0 0 1rem 0;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-checkbox-container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-checkbox {
    width: 18px;
    height: 18px;
}
.form-checkbox-label {
    font-weight: 500;
    color: #4a5568;
}

.action-section {
    text-align: center;
    margin: 1.5rem 0;
}

/* Work-in-Progress Tracking components */
.progress-section {
    display: none;
    margin: 1.5rem 0;
}
.progress-card {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 2px solid #e2e8f0;
}
.progress-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #4299e1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.flex-fill {
    flex: 1;
}
.progress-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #2d3748;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

#progressFill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #2b6cb0);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}
#progressText {
    margin: 0.5rem 0 0 0;
    color: #718096;
    font-size: 0.85rem;
}

/* Ready to download State */
#resultsSection {
    display: none;
    margin: 1.5rem 0;
}
.results-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 2px solid #86efac;
}
.results-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.results-info-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.results-title {
    font-size: 1.2rem;
    margin: 0 0 0.25rem 0;
    color: #166534;
}
.results-subtitle {
    margin: 0;
    color: #15803d;
    font-size: 0.95rem;
}

.download-buttons-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.download-btn-green {
    display: none;
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}
.download-btn-purple {
    display: none;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}
.download-btn-individual {
    display: none;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}