/* Excel Compressor - Main Stylesheet */
/* Author: Your Name */
/* Version: 1.0 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FAF5F5;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Font Loading */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo h1 {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Dropdown with Flags */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: none;
    border: none;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.language-btn:hover {
    background-color: #e9ecef;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 200;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border: 1px solid #eee;
    border-radius: 2px;
    object-fit: cover;
}

.language-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Container and Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #667eea;
    font-weight: 700;
}

.header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #667eea;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.upload-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.upload-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.upload-btn:hover::before {
    left: 100%;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.upload-btn:active {
    transform: translateY(0);
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-link {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: #764ba2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: scale(1.02);
}

.drop-zone.active {
    border-color: #38ef7d;
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.1), rgba(17, 153, 142, 0.1));
    transform: scale(1.02);
    border-width: 4px;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.drop-zone:hover::before {
    left: 100%;
}

.drop-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #667eea;
    animation: bounce 2s infinite;
    display: block;
    margin: 0 auto 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.drop-zone h3 {
    margin-bottom: 10px;
    color: #667eea;
    font-weight: 600;
}

.drop-zone p {
    color: #888;
    font-size: 0.9rem;
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    display: none;
    overflow: hidden;
}

.progress-section.active {
    display: block;
}

.progress-section h3 {
    margin-bottom: 20px;
    color: #667eea;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    border-radius: 10px;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

/* Download Section */
.download-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 40px;
    display: none;
    overflow: hidden;
}

.download-section.active {
    display: block;
}

.download-section h3 {
    margin-bottom: 20px;
    color: #11998e;
    font-size: 1.5rem;
}

.download-btn {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.4);
}

/* Features Section */
.features-section {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #667eea;
    display: block;
    margin: 0 auto 20px;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How to compress section */
.how-to-section {
    margin-top: 3rem;
    text-align: left;
    padding: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.how-to-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    color: #2c3e50;
    padding-left: 0;
}

.how-to-section ol {
    padding-left: 0;
    margin: 0;
}

.how-to-section li {
    margin-bottom: 1rem;
    padding-left: 0;
    list-style-position: inside;
}

.how-to-section strong {
    color: #2c3e50;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #34495e;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.social-link:hover {
    background-color: #667eea;
    transform: translateY(-3px);
    color: white;
}

.social-link i {
    color: inherit;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-copyright {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* File Info */
.file-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #667eea;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.file-info strong {
    color: #667eea;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: none;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close-btn:hover,
.close-btn:focus {
    color: #667eea;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #667eea;
    text-align: center;
}

.url-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    margin: 15px 0;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Alert System */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.alert-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.alert-success {
    background: linear-gradient(135deg, #28a745, #218838);
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
}

.alert-close:hover {
    opacity: 0.7;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .nav-menu {
        margin-top: 15px;
        gap: 20px;
    }

    .dropdown-content {
        right: auto;
        left: 0;
    }

    .container {
        padding: 20px 10px;
    }
    
    .upload-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .upload-options {
        flex-direction: column;
        gap: 15px;
    }

    .upload-btn {
        width: 100%;
    }
    
    .header h1, .header h2 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .drop-zone {
        padding: 40px 15px;
    }
    
    .drop-icon {
        font-size: 2.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .progress-section,
    .download-section {
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-links {
        gap: 15px;
    }

    .alert {
        min-width: auto;
        right: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .header h1, .header h2 {
        font-size: 1.8rem;
    }
    
    .upload-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .drop-zone {
        padding: 30px 10px;
    }
    
    .alert {
        min-width: auto;
        right: 10px;
        left: 10px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }
}
/* ===== MOBILE HAMBURGER MENU ===== */

/* Hamburger Button (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 3px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: #2c3e50;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1rem 1.5rem;
    background-color: #1a252f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-logo {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.sidebar-close:hover {
    color: #ff4444;
}

/* Mobile Menu */
.mobile-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #34495e;
}

.mobile-menu li a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s;
    font-weight: 500;
}

.mobile-menu li a:hover,
.mobile-menu li a.active {
    background-color: #34495e;
}

/* Sidebar Language Section */
.sidebar-language {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #34495e;
}

.sidebar-language-title {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-lang-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 0.75rem 0;
    transition: color 0.3s;
}

.sidebar-lang-link:hover {
    color: #667eea;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide desktop menu */
    .nav-menu {
        display: none !important;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Adjust navbar for mobile */
    .nav-container {
        height: 60px;
    }

    .nav-logo h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .sidebar-logo {
        font-size: 1.1rem;
    }

    .mobile-menu li a {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .nav-logo h1 {
        font-size: 1.1rem;
    }
}