@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* =========================================
   1. LIGHT THEME VARIABLES
   ========================================= */
:root {
    --bg-body: #f3f4f6;           /* Soft gray background */
    --bg-panel: #ffffff;          /* Pure white panels */
    --bg-dark: #f9fafb;           /* Very light gray for inputs */
    --text-main: #1f2937;         /* Dark gray/black text */
    --text-muted: #6b7280;        /* Medium gray text */
    --gold-primary: #b4850c;      /* Deep Gold for great visibility on white */
    --gold-light: #d4af37;        /* Standard Gold */
    --border-color: #e5e7eb;      /* Light gray borders */
    --danger-color: #ef4444;      /* Red */
    --success-color: #10b981;     /* Green */
}

/* =========================================
   2. GLOBAL RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

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

a { text-decoration: none; transition: color 0.2s; }
.highlight-link { color: var(--gold-primary); font-weight: bold; }
.highlight-link:hover { color: var(--gold-light); text-decoration: underline; }
.highlight-text { color: var(--gold-primary); font-weight: bold; }

/* =========================================
   3. LAYOUT & PANELS
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    padding: 10px 25px;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 15px;
}
.navbar-brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 15px;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* =========================================
   4. BUTTONS
   ========================================= */
button, .btn-gold, .btn-secondary, .btn-danger {
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    color: #fff;
    font-weight: bold;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 600;
    padding: 10px 15px;
}
.btn-secondary:hover { background: var(--border-color); }

.btn-danger {
    background: var(--danger-color);
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
}
.btn-danger:hover { background: #b91c1c; }

/* =========================================
   5. TABLES & GRIDS
   ========================================= */
.table-responsive { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    text-align: left;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 2px solid var(--border-color);
}
table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
table tr:hover td { background: var(--bg-dark); }

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

/* =========================================
   6. BADGES & CASHIER MODULE
   ========================================= */
.badge-ok { background: #d1fae5; color: #065f46; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.badge-alert { background: #fee2e2; color: #991b1b; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }

.cashier-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    background: var(--bg-panel);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.cashier-box { flex: 1; min-width: 140px; text-align: center; }
.cashier-input {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-main);
}
.cashier-input:focus { outline: none; border-color: var(--gold-primary); }

.btn-balance {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    font-weight: 800;
}
.balance-zero { background: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.balance-negative { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.balance-positive { background: #e0e7ff; color: #3730a3; border: 1px solid #818cf8; }

/* =========================================
   7. LOGIN PAGE SPECIFICS
   ========================================= */
.login-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-container { width: 100%; max-width: 450px; padding: 20px; }
.login-logo { display: block; margin: 0 auto 20px auto; width: 150px; height: 150px; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.login-input { width: 100%; padding: 15px; font-size: 16px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-dark); color: var(--text-main); }
.login-input:focus { border-color: var(--gold-primary); outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
}

.admin-menu li {
    margin: 0;
    padding: 0;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff; 
    color: var(--text-main);
    text-decoration: none !important;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.admin-menu a:hover {
    background: #f4f4f5;
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.admin-menu a.active {
    background: linear-gradient(135deg, #fbeea0, #d4af37);
    color: #000;
    border-color: var(--gold-primary);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transform: none; 
}

@media (max-width: 768px) {
    .admin-menu {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .admin-menu::-webkit-scrollbar { 
        display: none; 
    }
    .admin-menu a {
        white-space: nowrap;
        padding: 10px 16px;
    }
}

@media print {
    .admin-menu { display: none !important; }
}