:root {
    --primary: #000000;
    /* Pure Black */

    /* Metallic Gold Palette */
    --secondary: #d4af37;
    /* Metallic Gold */
    --accent: #aa8c2c;
    /* Dark Gold */
    --gold-light: #f9eac3;
    /* Shine */
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f3dba9 50%, #aa8c2c 100%);

    --bg-light: #ffffff;
    --text-dark: #121212;
    --text-light: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--primary);
    padding: 1rem 2rem;
    color: var(--white);
    position: sticky;
    top: 20px;
    z-index: 100;

    /* Centered Floating Pill Design */
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(128, 128, 128, 0.4);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-login {
    background: var(--gold-gradient);
    color: var(--primary) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    /* Gold glow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1611974765270-ca1258634369?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Rates Grid */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.rate-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-top: 4px solid;
    border-image: var(--gold-gradient);
    border-image-slice: 1;
}

.rate-card:hover {
    transform: translateY(-5px);
}

.currency-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.rate-values {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.rate-label {
    color: var(--text-light);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-val {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Calculator (Light Theme Redesign) */
.calculator-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2em;
    background-color: #ffffff;
    border-radius: 25px;
    transition: .4s ease-in-out;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #e5e5e5;
    /* Soft shadow for depth on white */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calculator-card:hover {
    transform: scale(1.02);
    border: 1px solid #d4af37;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.calculator-card h3 {
    text-align: center;
    margin-bottom: 2em;
    color: #000000;
    font-size: 1.5em;
    font-weight: 800;
    /* Bold Black */
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    /* Bold Black */
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.form-group input,
.form-group select {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5em;
    border-radius: 25px;
    padding: 1em;
    border: 2px solid #f0f0f0;
    /* Light border */
    outline: none;
    color: #000000;
    /* Bold Black Text */
    font-weight: 700;
    background-color: #f8f9fa;
    /* Very light grey */
    /* Subtle inset shadow for depth, not deep black */
    box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    background-color: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group select option {
    background-color: #ffffff;
    color: #000000;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Swap Button */
.switch-icon {
    font-size: 1.2rem;
    cursor: pointer;
    color: #000000;
    background-color: #f0f0f0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    transition: .4s ease-in-out;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.switch-icon:hover {
    background-color: #d4af37;
    color: white;
    transform: rotate(180deg);
}

/* Result Box */
.result-box {
    background-color: #f8f9fa;
    color: #000000;
    padding: 1.5rem;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.result-box .label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.result-box .value {
    font-size: 2.5rem;
    font-weight: 800;
    /* Bold Black */
    line-height: 1;
    color: #000000;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: initial;
}

.result-box::after {
    display: none;
}

.result-box small {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #d4af37;
    /* Keep currency name in gold for contrast */
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--white);
    margin-bottom: 4px;
    border-radius: 5px;
}

/* Admin Table Styling */
.table-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    overflow: hidden;
    margin-top: 3rem;
    border: 1px solid #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--primary);
    /* Black Header */
}

th {
    padding: 1.2rem;
    text-align: left;
    color: var(--secondary);
    /* Gold Text */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent);
}

td {
    padding: 1.2rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
    font-weight: 500;
    vertical-align: middle;
}

tr:hover {
    background-color: #fdfdfd;
}

tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-buy {
    background: #e6fffa;
    color: #047857;
    /* Green */
    border: 1px solid #a7f3d0;
}

.badge-sell {
    background: #fff5f5;
    color: #b91c1c;
    /* Red */
    border: 1px solid #fecaca;
}

/* Action Buttons */
.btn-icon {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-reprint {
    background: #eff6ff;
    color: #1d4ed8;
}

.btn-reprint:hover {
    background: #dbeafe;
}

.btn-delete {
    background: #fef2f2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fee2e2;
}


/* Admin Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.report-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.report-card h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.report-card .count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.report-card .sub-text {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Navbar Enhancements for Admin */
.logo span {
    /* Ensure existing logo styles work */
}

/* Report Filter Buttons */
.btn-filter {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-filter.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* PRINT STYLES (80mm Thermal) */
.print-only {
    display: none !important;
}

@media print {
    @page {
        margin: 0;
        size: auto;
    }

    body {
        margin: 0;
        padding: 0;
        background: white;
    }

    /* Hide everything except receipts (Standard & Cross) */
    body > *:not(#receipt):not(#receipt-cross) {
        display: none !important;
    }

    /* Shared Print Styling */
    #receipt, #receipt-cross {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 80mm;
        font-family: 'Courier New', monospace;
        font-size: 12px;
        color: black;
        background: white;
        padding: 5px;
        margin: 0;
    }
    
    /* Only force display BLOCK if JS has not hidden it (respects inline style="display:none") */
    #receipt:not([style*="none"]), #receipt-cross:not([style*="none"]) {
        display: block !important;
    }

    .receipt-header {
        text-align: center;
        margin-bottom: 10px;
    }

    .receipt-logo {
        width: 50px;
        height: auto;
        display: block;
        margin: 0 auto 5px auto;
    }

    .receipt-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: bold;
    }

    .receipt-header p {
        margin: 2px 0;
        font-size: 10px;
    }

    .receipt-body {
        margin-bottom: 10px;
    }

    .dashed {
        border-top: 1px dashed black;
        margin: 5px 0;
    }

    .receipt-row {
        display: flex;
        justify-content: space-between;
        margin: 3px 0;
    }

    .receipt-row.total {
        font-weight: bold;
        font-size: 14px;
        margin-top: 5px;
    }

    .receipt-footer {
        text-align: center;
        font-size: 10px;
        margin-top: 10px;
    }
}

/* Flight Autocomplete & Results */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-dark);
}

.suggestion-item:hover {
    background-color: #f1f5f9;
}

.suggestion-item strong {
    color: var(--primary);
}

.suggestion-item small {
    color: var(--text-light);
    display: block;
}

.flight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}

.flight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
}

.airline-logo {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--secondary);
    margin-right: 1rem;
}

.flight-info {
    flex: 2;
}

.flight-route {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.flight-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.flight-price-box {
    text-align: right;
}

.flight-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-book {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

/* Booking Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.flight-summary-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.credit-card-box {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
}

.credit-card-box label {
    color: #cbd5e1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credit-card-box input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #475569;
    color: white;
    border-radius: 0;
    padding: 0.5rem 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.credit-card-box input::placeholder {
    color: #475569;
}

.credit-card-box input:focus {
    border-color: #d4af37;
    box-shadow: none;
    background: transparent;
}

.total-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px dashed #e2e8f0;
}