/* Modern PDF Compressor - Improved Styles */
:root {
    --primary-color: #667eea;
    --text-primary: #2d3748;
    --text-secondary: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Stats Banner */
.stats-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.stats-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-item {
    font-weight: 500;
}

.stats-item strong {
    font-weight: 700;
    color: #ffd700;
}

.stats-divider {
    opacity: 0.6;
    font-weight: bold;
}

/* Mobile optimized stats banner */
@media (max-width: 768px) {
    .stats-banner {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(8px);
        padding: 0.4rem 0;
        font-size: 0.7rem;
        opacity: 0.85;
        transition: opacity 0.3s ease;
    }
    
    .stats-content {
        gap: 0.5rem;
        padding: 0 0.75rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .stats-item {
        font-weight: 400;
        opacity: 0.9;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .stats-item strong {
        font-weight: 600;
        color: rgba(255, 215, 0, 0.8);
    }
    
    .stats-divider {
        opacity: 0.4;
        font-size: 0.6rem;
        flex-shrink: 0;
        margin: 0 0.25rem;
    }
    
    /* Make it even more subtle on scroll */
    .stats-banner.scrolled {
        opacity: 0.6;
        background: rgba(255, 255, 255, 0.03);
    }
}

/* Extra small screens - even more compact */
@media (max-width: 480px) {
    .stats-banner {
        font-size: 0.65rem;
        padding: 0.35rem 0;
    }
    
    .stats-content {
        gap: 0.4rem;
        padding: 0 0.5rem;
    }
    
    .stats-item {
        font-size: 0.65rem;
    }
    
    .stats-divider {
        font-size: 0.55rem;
        margin: 0 0.2rem;
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 600;
}

.help-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.help-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 3rem 0 4rem;
    color: white;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: start;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-indicators.trust-inline {
    gap: 3rem;
    flex-wrap: nowrap;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .trust-indicators.trust-inline {
        gap: 1.5rem;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .trust-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.9rem;
}

.trust-icon {
    font-size: 1.1rem;
}

/* Upload Card */
.upload-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    color: #718096;
    font-size: 1rem;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 1rem;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f7fafc;
    margin-bottom: 1.5rem;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: #eef2ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-main-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
}

.upload-limit {
    font-size: 0.875rem;
    color: #a0aec0;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Quick Test */
.quick-test {
    text-align: center;
    padding: 1.5rem;
    background: #f0fff4;
    border-radius: 1rem;
    border: 2px solid #c6f6d5;
    margin-bottom: 1rem;
}

.quick-test-text {
    color: #2f855a;
    margin-bottom: 1rem;
    font-weight: 500;
}

.sample-btn {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.sample-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

.sample-btn:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sample-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* File Info */
.file-info {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.file-icon {
    font-size: 2rem;
    color: #667eea;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.file-size {
    color: #718096;
    font-size: 0.875rem;
}

.remove-file {
    background: #fed7d7;
    color: #e53e3e;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #feb2b2;
}

/* Buttons */
.compress-btn,
.download-btn {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.compress-btn:hover,
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.download-btn {
    background: linear-gradient(45deg, #f6ad55, #ed8936);
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.3);
    margin-bottom: 1rem;
}

.download-btn:hover {
    box-shadow: 0 6px 16px rgba(246, 173, 85, 0.4);
}

.new-file-btn {
    width: 100%;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-file-btn:hover {
    background: #667eea;
    color: white;
}

/* Progress Section */
.progress-section {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.progress-icon {
    font-size: 1.5rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.progress-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
}

.progress-bar {
    background: #e2e8f0;
    height: 0.75rem;
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    background: linear-gradient(45deg, #48bb78, #38a169);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0.375rem;
}

.progress-percentage {
    font-weight: 700;
    font-size: 1.25rem;
    color: #38a169;
    margin-top: 0.5rem;
}

/* Download Section */
.download-section {
    background: #f0fff4;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 2px solid #c6f6d5;
}

.success-header {
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2f855a;
    margin-bottom: 1rem;
}

.compression-stats {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #c6f6d5;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.stats-row:last-child {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #2f855a;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}


.stats-row:last-child {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #2f855a;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
}

/* Quick Benefits */
.quick-benefits {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 4rem 0;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    color: white;
    padding: 1.5rem;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    opacity: 0.9;
    line-height: 1.5;
}

/* Details Section */
.details-section {
    background: white;
    margin: 2rem 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-expandable {
    border-bottom: 1px solid #e2e8f0;
}

.info-expandable:last-child {
    border-bottom: none;
}

.info-title {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #f8f9fa;
    transition: background 0.3s ease;
    list-style: none;
}

.info-title:hover {
    background: #f1f3f4;
}

.info-title::after {
    content: '+';
    margin-left: auto;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.info-expandable[open] .info-title::after {
    transform: rotate(45deg);
}

.info-icon {
    font-size: 1.25rem;
}

.info-content {
    padding: 2rem;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.use-cases-grid,
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.use-case,
.faq-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid #667eea;
}

.faq-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Comprehensive Guide Section */
.comprehensive-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    margin-top: 3rem;
}

.comprehensive-guide .container {
    max-width: 1200px;
}

.comprehensive-guide-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
    line-height: 1.6;
}

.comprehensive-guide-content h2 {
    color: #2d3748;
    margin: 0 0 2rem 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.comprehensive-guide-content h2:first-child {
    margin-top: 0;
}

.comprehensive-guide-content h3 {
    color: #2d3748;
    margin: 2.5rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.comprehensive-guide-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.comprehensive-guide-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.comprehensive-guide-content ul {
    color: #4a5568;
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.comprehensive-guide-content ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.comprehensive-guide-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.comprehensive-guide-content ol {
    color: #4a5568;
    margin: 1.5rem 0;
    padding-left: 1rem;
    counter-reset: step-counter;
}

.comprehensive-guide-content ol li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    counter-increment: step-counter;
}

.comprehensive-guide-content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: -2rem;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Responsive Design for Comprehensive Guide */
@media (max-width: 768px) {
    .comprehensive-guide {
        padding: 2rem 0;
    }
    
    .comprehensive-guide-content {
        padding: 2rem 1.5rem;
        border-radius: 15px;
        margin: 0 0.5rem;
    }
    
    .comprehensive-guide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .comprehensive-guide-content h3 {
        font-size: 1.3rem;
        margin: 2rem 0 0.8rem 0;
    }
    
    .comprehensive-guide-content p {
        font-size: 1rem;
    }
    
    .comprehensive-guide-content ol li::before {
        left: -1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}

/* User Feedback Section */
.user-feedback-section {
    background: #f8fafc;
    padding: 4rem 0;
    margin-top: 0;
}

.user-feedback-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 0 1rem;
}

.feedback-header h2 {
    color: #2d3748;
    margin: 0 0 2rem 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feedback-icon {
    font-size: 2rem;
}

.feedback-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .user-feedback-section {
        padding: 2rem 0;
    }
    
    .user-feedback-content {
        padding: 2rem 1.5rem;
        border-radius: 15px;
        margin: 0 0.5rem;
    }
    
    .feedback-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feedback-icon {
        font-size: 1.5rem;
    }
}

/* Error Styles */
.global-error {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #e53e3e;
    color: white;
    z-index: 9999;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.global-error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.reload-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.reload-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.error-message {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
    color: #c53030;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .trust-indicators {
        gap: 3rem;
    }
    
    .upload-card {
        padding: 3rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .use-cases-grid,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .trust-indicators {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 4rem 0 5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

button:focus,
input:focus,
summary:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* User Feedback Styles */
.feedback-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.feedback-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.feedback-intro h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.feedback-intro p {
    margin: 0;
    opacity: 0.9;
}

.feedback-stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-mini:hover {
    transform: translateY(-2px);
}

.stat-number-mini {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label-mini {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
}

.quick-feedback-form {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quick-feedback-form h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.feedback-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feedback-input,
.feedback-select,
.feedback-textarea {
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    background: white;
}

.feedback-input:focus,
.feedback-select:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.feedback-textarea {
    min-height: 80px;
    resize: vertical;
    grid-column: 1 / -1;
}

.feedback-submit-btn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.feedback-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.feedback-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.popular-suggestions {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.suggestions-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.sort-tabs {
    display: flex;
    gap: 0.5rem;
}

.sort-tab {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-tab:hover,
.sort-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mini-suggestions-list {
    max-height: 400px;
    overflow-y: auto;
}

.mini-suggestion-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.mini-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.suggestion-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.suggestion-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.suggestion-type {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-start;
}

.suggestion-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.suggestion-content {
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.suggestion-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-like-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.mini-like-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.mini-like-btn.liked {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
}

.like-count {
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.admin-response-mini {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.admin-badge-mini {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.no-suggestions {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

/* Mobile Responsiveness for Feedback */
@media (max-width: 768px) {
    .feedback-form-row {
        grid-template-columns: 1fr;
    }
    
    .suggestions-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-tabs {
        align-self: stretch;
    }
    
    .sort-tab {
        flex: 1;
        text-align: center;
    }
    
    .suggestion-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .suggestion-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Compression Statistics Styles */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.stats-row:last-child {
    border-bottom: none;
    font-weight: 600;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.stats-row strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.stats-success {
    background: rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.stats-warning {
    background: rgba(245, 158, 11, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.stats-success strong,
.stats-warning strong {
    color: inherit;
}

/* Detailed Compression Analysis Styles */
.compression-analysis {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid #f59e0b;
}

.compression-analysis h4 {
    color: #f59e0b;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.compression-analysis p {
    margin: 0.75rem 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.compression-analysis ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.compression-analysis li {
    margin: 0.5rem 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.result-note {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.result-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.5;
}

/* Enhanced stats for better readability */
.stats-row span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-row strong {
    text-align: right;
}

/* Success state - when target is met */
.compression-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.compression-success h4 {
    color: #10b981;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.compression-success p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Enhanced compression stats container */
.compression-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Time estimation and warning styles */
.btn-time-estimate {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    font-weight: normal;
}

.time-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: slideInWarning 0.4s ease-out;
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.warning-text {
    flex: 1;
    line-height: 1.4;
}

.warning-text strong {
    color: rgba(255, 255, 255, 0.95);
}

.warning-text em {
    opacity: 0.85;
    font-size: 0.9rem;
}

.warning-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.warning-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideInWarning {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced progress text for time remaining */
.progress-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 0.5rem;
    min-height: 1.2rem;
}

/* Optimization for large file processing */
.compress-btn.processing {
    position: relative;
    overflow: hidden;
}

.compress-btn.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: processingShimmer 2s infinite;
}

@keyframes processingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (prefers-contrast: high) {
    .upload-area {
        border-width: 4px;
    }
    
    .upload-card,
    .quick-benefits {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .stats-row {
        border-bottom-color: rgba(255, 255, 255, 0.4);
    }
}