* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC143C;
    --dark-red: #8B0000;
    --black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-gray: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
}
.message-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white !important;
    color: black !important;
    margin: 15px 0 !important;
}

.message-content table thead tr {
    background: #DC143C !important;
    color: white !important;
}

.message-content table th {
    padding: 12px !important;
    border: 1px solid #ddd !important;
    text-align: left !important;
    font-weight: bold !important;
}

.message-content table td {
    padding: 10px !important;
    border: 1px solid #ddd !important;
    color: black !important;
}

.message-content table tbody tr:nth-child(even) {
    background: #f9f9f9 !important;
}

.message-content table tbody tr:hover {
    background: #f0f0f0 !important;
}

/* Headers */
.message-content h3 {
    color: #DC143C !important;
    margin: 20px 0 10px 0 !important;
}
/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--black) 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav-links a:hover {
    background: var(--primary-red);
    border-color: var(--white);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-red) 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}
.result-message {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    white-space: pre-line; /* Preserve line breaks */
    line-height: 1.6;
}

.fallback-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #FFC107;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: #FFC107;
    text-align: left;
}

.fallback-notice i {
    margin-right: 8px;
}

.error-details {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #EF4444;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: #EF4444;
    text-align: left;
    white-space: pre-line;
    line-height: 1.6;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
    border-color: var(--white);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--light-gray);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
}

.btn-success {
    background: #28a745;
    color: var(--white);
    border: 2px solid #28a745;
}

.btn-danger {
    background: var(--dark-red);
    color: var(--white);
    border: 2px solid var(--dark-red);
}

/* Upload Area */
.upload-section {
    background: linear-gradient(135deg, #2a2a2a 0%, var(--black) 100%);
    border: 3px dashed var(--primary-red);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s;
}

.upload-section:hover {
    border-color: var(--white);
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}
.attached-files-display {
    background: linear-gradient(135deg, rgba(220,20,60,0.1), rgba(220,20,60,0.05));
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #DC143C;
    font-size: 0.9rem;
}

.attached-files-display .files-label {
    font-weight: bold;
    color: #DC143C;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attached-files-display .file-item {
    color: #999;
    padding: 4px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.attached-files-display .file-item::before {
    content: "📄";
    font-size: 0.9rem;
}
/* API Provider Selector */
.api-selector {
    background: #2a2a2a;
    border: 2px solid #DC143C;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.api-selector-title {
    color: #DC143C;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.api-option {
    flex: 1;
    padding: 12px;
    background: #333;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.api-option:hover {
    border-color: #DC143C;
    background: #404040;
}

.api-option.active {
    border-color: #28a745;
    background: linear-gradient(135deg, #1a4d2e 0%, #0d3320 100%);
}

.api-option-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.api-option-desc {
    color: #999;
    font-size: 0.85rem;
}

.api-option.active .api-option-name {
    color: #28a745;
}

/* Editor */
.editor-container {
    background: var(--white);
    border: 2px solid var(--primary-red);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    min-height: 500px;
    color: var(--black);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-red);
}

/* Knowledge Panel */
.knowledge-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.knowledge-content {
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    border: 3px solid var(--primary-red);
    border-radius: 15px;
    padding: 2rem;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.knowledge-section {
    background: #2a2a2a;
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.knowledge-section h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
    color: var(--black);
}

table th {
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-gray);
}

table tr:hover {
    background: var(--light-gray);
}

/* Comparison Cards */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.bid-card {
    background: linear-gradient(135deg, #2a2a2a 0%, var(--black) 100%);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    padding: 2rem;
}

.bid-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
}

.bid-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

.bid-detail label {
    color: var(--light-gray);
}

.bid-detail span {
    color: var(--white);
    font-weight: 600;
}

/* Stats Display */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    display: block;
}

.stat-label {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #444;
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    border: 2px solid;
}

.notification.success {
    background: #28a745;
    border-color: #1e7e34;
    color: var(--white);
}

.notification.error {
    background: var(--dark-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.notification.info {
    background: var(--primary-red);
    border-color: var(--white);
    color: var(--white);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Remove ALL grey grids and borders */
.editor-container table,
.editor-container table td,
.editor-container table th,
.editor-container table tr {
    border: none !important;
    border-collapse: collapse !important;
}

/* Clean table display */
.editor-container table {
    width: 100%;
    background: white;
    margin: 15px 0;
}

/* Header row styling */
.editor-container table th {
    background: #DC143C;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    text-align: left;
}

/* Body row styling - alternating colors for readability */
.editor-container table td {
    padding: 8px 12px;
    text-align: left;
    background: white;
}

.editor-container table tr:nth-child(even) td {
    background: #f9f9f9;
}

/* Content items */
.content-item {
    margin: 15px 0;
    padding: 0;
    border: none;
}

/* Paragraph blocks */
.content-item[data-type="paragraph"] {
    background: white;
    padding: 10px;
    border-left: 3px solid #DC143C;
    border-radius: 5px;
    color: #1a1a1a;
}

/* Table containers */
.content-item[data-type="table"] {
    background: white;
    padding: 15px;
    border-radius: 5px;
}

/* Image containers */
.content-item[data-type="image"] {
    background: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

/* Editor content area */
#editorContent {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}
/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}
 .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        .stat-card {
            background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
        }
        .stat-value {
            display: block;
            font-size: 3rem;
            font-weight: bold;
            color: white;
        }
        .stat-label {
            display: block;
            color: #ddd;
            margin-top: 0.5rem;
        }
        .loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        
       
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 8px;
            color: white;
            z-index: 10000;
            animation: slideIn 0.3s ease;
        }
        .notification.success { background: #4CAF50; }
        .notification.error { background: #f44336; }
        @keyframes slideIn {
            from { transform: translateX(400px); }
            to { transform: translateX(0); }
        }

        * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Navigation */



 .auth-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

 .auth-links a:hover {
    color: var(--primary-red);
}

.auth-links .btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Buttons */

.btn-success:hover {
    background-color: #1e7e34;
}

/* Notification */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Form Styles for general use */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light-gray);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    background-color: #333;
    color: var(--white);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.5);
}
.voice-btn.recording {
    background: #ff1744 !important;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.8);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.voice-status {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}
/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* ============================================
   MOBILE RESPONSIVE ADDITIONS
   ============================================ */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-content {
        padding: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 1rem;
    }
    
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem;
    }
    
    .auth-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .auth-links a {
        margin-left: 0;
        text-align: center;
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Container */
    .container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* API Selector */
    .api-options {
        flex-direction: column;
    }
    
    .api-option {
        width: 100%;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    /* Upload Section */
    .upload-section {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    /* Editor */
    .editor-container {
        padding: 1rem;
    }
    
    .editor-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    /* Knowledge Panel */
    .knowledge-panel {
        padding: 1rem;
    }
    
    .knowledge-content {
        padding: 1rem;
        max-height: 85vh;
    }
    
    .knowledge-section {
        padding: 1rem;
    }
    
    /* Tables */
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 0.6rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Notification */
    .notification {
        right: 10px;
        left: 10px;
        top: 10px;
        padding: 0.8rem 1rem;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    /* Navigation */
    .logo {
        font-size: 1.4rem;
    }
    
    /* Hero */
    .hero {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Feature Cards */
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Stats Grid - Stack on mobile */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    /* Upload Section */
    .upload-section {
        padding: 1.5rem 1rem;
    }
    
    /* API Selector */
    .api-selector {
        padding: 1rem;
    }
    
    .api-option-name {
        font-size: 1rem;
    }
    
    .api-option-desc {
        font-size: 0.8rem;
    }
    
    /* Editor */
    .editor-container {
        padding: 0.75rem;
        min-height: 300px;
    }
    
    /* Tables - Responsive scroll */
    .message-content table,
    .editor-container table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    table th,
    table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Bid Cards */
    .bid-card {
        padding: 1rem;
    }
    
    .bid-detail {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Form Groups */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Attached Files Display */
    .attached-files-display {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .attached-files-display .file-item {
        font-size: 0.8rem;
    }
    
    /* Result Message */
    .result-message {
        font-size: 1rem;
    }
    
    /* Loading Spinner */
    .spinner {
        width: 50px;
        height: 50px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 0.75rem;
    }
    
    .feature-card,
    .bid-card,
    .knowledge-section {
        padding: 1rem;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .knowledge-panel {
        padding: 0.5rem;
    }
    
    .knowledge-content {
        max-height: 80vh;
    }
}
/* Hamburger Menu Button - Hidden by default on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: 2px solid var(--primary-red);
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-toggle:hover {
    background: var(--primary-red);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

/* Animate hamburger to X when active */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Update navbar layout */
    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--black) 0%, var(--dark-red) 100%);
        flex-direction: column;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    /* Show nav links when active */
    .nav-links.active {
        right: 0;
    }
    
    /* Style nav links for mobile */
    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid rgba(220, 20, 60, 0.3);
        width: 100%;
    }
    
    /* Auth links inside mobile menu */
    .auth-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid var(--primary-red);
    }
    
    .auth-links a {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
    
   /* Overlay when menu is open */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.nav-overlay.active {
    display: block;
}

/* Desktop - keep auth-links separate */
@media (min-width: 769px) {
    .nav-links .auth-links {
        display: none;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Update navbar layout */
    .navbar-content {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Hide the desktop auth-links on mobile */
    .navbar-content > .auth-links {
        display: none;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--black) 0%, var(--dark-red) 100%);
        flex-direction: column !important;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1rem !important;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    /* Show nav links when active */
    .nav-links.active {
        right: 0;
    }
    
    /* Style nav links for mobile */
    .nav-links > a {
        display: block;
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid rgba(220, 20, 60, 0.3);
        width: 100%;
    }
    
    /* Show auth links inside mobile menu */
    .nav-links .auth-links {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid var(--primary-red);
    }
    
    .nav-links .auth-links a {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
        display: block;
    }
    
    .nav-links .auth-links span {
        display: block;
        text-align: center;
        padding: 0.5rem;
        color: var(--white);
    }
}
}
@media (max-width: 480px) {
    .nav-links {
        width: 80%;
    }
}
.user-menu {
    position: relative;
}

.user-menu-btn {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.user-menu-btn:hover {
    background: #333;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: background 0.2s;
}

.user-menu-dropdown a:hover {
    background: #2a2a2a;
}