/* static/css/ocr.css */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.header-content {
    flex: 1;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.refresh-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

/* Service Grid for Main Dashboard */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.service-features li {
    color: var(--text-muted);
    margin: 8px 0;
    font-size: 0.9rem;
}

.service-card .btn {
    margin-top: 20px;
    width: 80%;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.nav-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: calc(var(--border-radius) - 3px);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.nav-tab.active {
    background: var(--primary-color);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Service Status */
.service-status {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.status-loading,
.status-available,
.status-error {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.status-available {
    color: var(--success-color);
}

.status-error {
    color: var(--error-color);
}

.status-loading {
    color: var(--secondary-color);
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    background: var(--card-bg);
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.upload-area p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File List */
.file-list {
    margin-top: 20px;
}

.file-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.file-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.file-details h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.file-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-remove {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.btn-remove:hover {
    background: #dc2626;
}

/* PDF Info Section */
.pdf-info-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.pdf-info-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.pdf-info-item {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.pdf-info-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item .label {
    font-weight: 500;
    color: var(--text-muted);
}

.info-item .value {
    color: var(--text-color);
    font-weight: 600;
}

.pdf-info-item.error {
    border-color: var(--error-color);
}

.pdf-info-item.error h4 {
    color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-style: italic;
}

/* Split Options */
.split-options, .merge-options, .rotate-options {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.split-options h3, .merge-options h3, .rotate-options h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.option-group {
    margin-bottom: 25px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: 500;
}

.option-label input[type="radio"] {
    margin: 0;
}

.page-ranges {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.page-ranges h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.range-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.range-input label {
    min-width: 70px;
    font-weight: 500;
}

.range-input input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-remove-range {
    background: var(--error-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-range:hover {
    background: #dc2626;
}

/* Merge Options */
.merge-file-order {
    margin: 25px 0;
}

.merge-file-order h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.sortable-list {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
    min-height: 100px;
}

.sortable-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    cursor: move;
    transition: all 0.2s ease;
}

.sortable-item:hover {
    box-shadow: var(--shadow);
}

.drag-handle {
    color: var(--text-muted);
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-item .file-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sortable-item .file-info i {
    color: var(--primary-color);
}

.file-order {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Rotation Options */
.rotation-controls {
    margin: 25px 0;
}

.rotation-controls label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.rotation-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rotation-btn {
    padding: 15px 25px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rotation-btn:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.rotation-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Service Selection */
.service-selection {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.service-selection h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-option {
    cursor: pointer;
}

.service-option input[type="radio"] {
    display: none;
}

.service-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-option input[type="radio"]:checked + .service-card {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.service-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.service-card small {
    color: var(--primary-color);
    font-weight: 500;
}

/* Section header with add more button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

.btn-add-more {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add-more:hover {
    background: #475569;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    padding: 15px 30px;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #475569;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

/* Process Section */
.process-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Progress Section */
.progress-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: var(--text-muted);
    font-weight: 500;
}

/* Results Section */
.results-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Cost Summary */
.cost-summary {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.cost-summary h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.cost-item {
    text-align: center;
}

.cost-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.cost-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Result Items */
.result-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.result-item:hover {
    box-shadow: var(--shadow);
}

.result-item.success {
    border-color: var(--success-color);
}

.result-item.error {
    border-color: var(--error-color);
}

.result-header {
    background: var(--bg-color);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.result-info h4 {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.service-badge, .status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-mistral {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.service-azure {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.result-content {
    padding: 20px;
}

.result-preview {
    background: #f8fafc;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

/* Analytics section */
.analytics-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.analytics-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.analytics-item {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.analytics-item .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.analytics-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .refresh-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tab {
        justify-content: flex-start;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-area h3 {
        font-size: 1rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .section-header, .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-more {
        align-self: center;
    }
    
    .result-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cost-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .range-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .range-input input[type="number"] {
        width: 100%;
    }
    
    .rotation-buttons {
        flex-direction: column;
    }
    
    .rotation-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sortable-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .analytics-item .value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .header p {
        font-size: 0.85rem;
    }
    
    .refresh-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 25px 15px;
    }
    
    .upload-area h3 {
        font-size: 0.95rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .analytics-item {
        padding: 12px;
    }
    
    .analytics-item .value {
        font-size: 1.2rem;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification styles */
.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Add to existing CSS file */

/* Advanced Grid */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.advanced-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.advanced-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.advanced-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advanced-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.advanced-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Compression Controls */
.compression-controls {
    margin: 25px 0;
}

.compression-controls label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.compression-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.compression-btn {
    padding: 15px 25px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compression-btn:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.compression-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Form Input */
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Mobile responsiveness for new components */
@media (max-width: 768px) {
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .compression-buttons {
        flex-direction: column;
    }
    
    .compression-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-actions {
        flex-direction: column;
    }
}