:root {
    --sidebar-width: 200px;
    --topbar-height: 60px;
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --secondary: #764ba2;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --dark: #1e1e2f;
    --darker: #151524;
    --bg: #f0f2f5;
    --card: #ffffff;
    --text: #2d3748;
    --text-muted: #a0aec0;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 14px 35px rgba(0,0,0,0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: calc(var(--topbar-height) + 24px) 24px 24px;
    min-height: calc(100vh - var(--topbar-height));
}

.main-content > .container {
    max-width: 100%;
    padding: 0;
}

/* ===== TOPBAR ===== */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--dark);
    z-index: 1030;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-custom .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .navbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-custom .navbar-brand span {
    color: var(--primary);
}

.user-badge {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navbar-custom .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-custom .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.navbar-custom .btn-light {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-custom .btn-light:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.btn-sidebar-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 4px 8px;
    cursor: pointer;
    display: none;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--darker);
    z-index: 1020;
    overflow-y: auto;
    padding: 16px 0;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.03);
}

.sidebar-brand {
    display: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.sidebar-nav hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 10px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(102,126,234,0.2);
}

.sidebar-link.active i {
    color: var(--primary);
}

.sidebar-section-label {
    color: rgba(255,255,255,0.25);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 14px 4px;
    margin-top: 4px;
}

.sidebar-link.sub {
    padding-left: 30px;
    font-size: 13px;
}
.sidebar-link.disabled-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 16px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.main-content + .footer {
    margin-left: var(--sidebar-width);
}

/* ===== TABLE CARDS ===== */
.tables-container {
    padding: 0;
}

.table-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border);
}

.table-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.table-card.available {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, #b8e6b8, #d4edda);
}

.table-card.available.color-blue {
    border-left-color: #0d6efd;
    background: linear-gradient(135deg, #cce5ff, #e3f2fd);
}

.table-card.occupied {
    border-left: 4px solid var(--danger);
    background: linear-gradient(135deg, #fff, #fff5f5);
}

.table-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.table-card.available.color-green .table-header {
    background: var(--success);
    color: #fff;
    border-bottom: none;
}
.table-card.available.color-green .table-header h4,
.table-card.available.color-green .table-header .status {
    color: #fff;
}

.table-card.available.color-blue .table-header {
    background: #0d6efd;
    color: #fff;
    border-bottom: none;
}
.table-card.available.color-blue .table-header h4,
.table-card.available.color-blue .table-header .status {
    color: #fff;
}

.table-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-header h4 i {
    color: var(--primary);
}

.table-header .status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.available .status {
    background: #d4edda;
    color: #155724;
    font-weight: 700;
}

.table-card.available.color-green .table-header .status {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.table-card.available.color-blue .table-header .status {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.table-card.available[data-table-number="0"] {
    background: linear-gradient(135deg, #f5e0cc, #faf0e6);
    border-left-color: #d4a373;
}
.table-card.available[data-table-number="0"] .table-header {
    background: #d4a373;
    color: #fff;
    border-bottom: none;
}
.table-card.available[data-table-number="0"] .table-header h4,
.table-card.available[data-table-number="0"] .table-header .status {
    color: #fff;
}
.table-card.available[data-table-number="0"] .table-header .status {
    background: rgba(255,255,255,0.2);
}

.occupied .status {
    background: #f8d7da;
    color: #721c24;
}

.table-expired {
    animation: pulse-expired 2s infinite;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.5) !important;
}
@keyframes pulse-expired {
    0%, 100% { box-shadow: 0 0 0 3px rgba(220,53,69,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(220,53,69,0.8); }
}

.countdown-display {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.countdown-display .countdown-text {
    font-weight: 600;
    color: #856404;
}

.table-body {
    padding: 14px 16px;
}

.info-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== TIMER ===== */
.timer-display {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 10px 0;
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.timer-frozen {
    animation: none;
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: none;
    margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.btn-start,
.btn-stop,
.btn-consumo,
.btn-transfer {
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-start {
    background: linear-gradient(135deg, var(--success), #218838);
    color: #fff;
}

.btn-start:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.btn-stop {
    background: linear-gradient(135deg, var(--danger), #c82333);
    color: #fff;
}

.btn-stop:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.btn-consumo {
    background: #fff;
    color: var(--text);
    border: 1.5px solid var(--warning);
}

.btn-consumo:hover {
    background: #fff8e1;
    color: #856404;
    border-color: #e0a800;
}

.btn-transfer {
    background: transparent;
    color: var(--info);
    border: 1.5px solid var(--info);
}

.btn-transfer:hover {
    background: rgba(23,162,184,0.08);
    color: #0f6b7a;
    border-color: #0f6b7a;
}

.btn-update {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    transition: var(--transition);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.btn-update:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    color: #fff;
}

.btn-back {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-back:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* ===== CONFIRM BOX ===== */
.confirm-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 10px;
    text-align: center;
    animation: fadeIn 0.2s ease;
}

.confirm-box p {
    margin: 0 0 10px;
    font-weight: 600;
    color: #856404;
    font-size: 13px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== BILLING / TICKET ===== */
.billing-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.ticket-breakdown {
    font-size: 12px;
    text-align: left;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    color: #155724;
    font-size: 12px;
}

.ticket-total {
    border-top: 1px dashed #c3e6cb;
    margin-top: 4px;
    padding-top: 4px;
    font-weight: 700;
    font-size: 14px;
}

.mini-ticket {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 11px;
    animation: fadeIn 0.3s ease;
}

.mini-ticket-row {
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
    color: #5d4037;
    font-size: 11px;
}

.mini-ticket-total {
    display: flex;
    justify-content: space-between;
    padding: 3px 0 0;
    margin-top: 3px;
    border-top: 1px dashed #ffe082;
    font-weight: 700;
    color: #5d4037;
    font-size: 12px;
}

/* ===== TICKET PRINT ===== */
.ticket-print {
    font-size: 13px;
    padding: 4px 0;
}

.ticket-print-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--text);
}

.ticket-print-divider {
    border-top: 1px dashed var(--border);
    margin: 6px 0;
}

.ticket-print-total {
    font-weight: 700;
    font-size: 15px;
    color: var(--success);
}

/* ===== STATS CARDS ===== */
.stats-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.stats-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-card h2 i {
    color: var(--primary);
}

.stat-box {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(102,126,234,0.1);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.stat-breakdown {
    margin-top: 6px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-footer {
    margin-top: 6px;
    font-size: 11px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 4px;
}

/* ===== SESSIONS TABLE ===== */
.sessions-table {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.sessions-table h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sessions-table h3 i {
    color: var(--primary);
}

.sessions-table .table th {
    background: var(--bg);
    border-bottom: 2px solid var(--primary);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 8px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sessions-table .table td {
    padding: 8px;
    font-size: 13px;
    vertical-align: middle;
}

.sessions-table .table-hover tbody tr:hover {
    background: rgba(102,126,234,0.04);
}

/* ===== CONFIG / ADMIN CARDS ===== */
.config-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.config-card:hover {
    box-shadow: var(--shadow-lg);
}

.config-card-disabled {
    opacity: 0.55;
    filter: grayscale(0.7);
}

.config-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-card h5 i {
    color: var(--primary);
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    border-color: var(--success);
    box-shadow: 0 2px 12px rgba(40,167,69,0.12);
}

.product-info { margin-bottom: 10px; }

.product-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.product-price {
    font-size: 16px;
    color: var(--success);
    font-weight: 700;
    margin-top: 2px;
}

.product-stock {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stock-negative {
    color: var(--danger) !important;
    font-weight: 700;
}

.product-action .input-group {
    max-width: 180px;
    margin: 0 auto;
}

.product-action .qty-input {
    font-weight: 600;
    background: #fff;
    cursor: default;
}

.product-action .btn-add-item {
    border-radius: 0 6px 6px 0 !important;
}

/* ===== MODALS ===== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 20px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

/* ===== FORMS ===== */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 8px 12px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.input-group-text {
    background: var(--bg);
    border: 1.5px solid var(--border);
    font-size: 13px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius-sm);
    font-size: 13px;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
    .btn-sidebar-toggle { display: block; }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content + .footer {
        margin-left: 0;
    }

    .sidebar-brand {
        display: block;
        padding: 16px 16px 8px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        margin-bottom: 8px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1019;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

@media (min-width: 1200px) {
    .sidebar-brand {
        display: block;
        padding: 20px 16px 16px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        margin-bottom: 12px;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding: calc(var(--topbar-height) + 16px) 16px 16px;
    }

    .stats-card {
        padding: 16px;
    }

    .sessions-table {
        padding: 12px;
    }

    .navbar-custom .navbar-brand {
        font-size: 15px;
    }

    .navbar-custom .navbar-brand img {
        width: 28px;
        height: 28px;
    }

    .user-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .navbar-custom .btn-outline-light,
    .navbar-custom .btn-light {
        font-size: 11px;
        padding: 4px 10px;
    }

    .stat-amount {
        font-size: 20px;
    }
}

/* ===== LOGIN PAGE ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--darker);
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.bg-circle.c1 {
    width: 500px; height: 500px;
    background: #1a6d3c;
    top: -150px; right: -100px;
    animation: floatCircle 8s ease-in-out infinite;
}

.bg-circle.c2 {
    width: 400px; height: 400px;
    background: #0d4a2b;
    bottom: -100px; left: -100px;
    animation: floatCircle 10s ease-in-out infinite reverse;
}

.bg-circle.c3 {
    width: 300px; height: 300px;
    background: #2d8a4e;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: floatCircle 12s ease-in-out infinite 2s;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.login-modern {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 50px 40px;
    width: 420px;
    max-width: 92%;
    animation: loginFadeIn 0.8s ease-out;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-brand { text-align: center; margin-bottom: 15px; margin-top: -30px; }

.brand-icon {
    margin: 0 auto 10px;
}

.login-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin: 0;
}

.login-form-wrap .alert {
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}

.login-wrapper + .footer {
    display: none;
}

.login-modern .footer {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    margin-top: 20px;
    padding: 0;
}

.input-group-modern {
    display: flex;
    align-items: center;
    background: #1a5c38;
    border: 1px solid #2d8a4e;
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.input-group-modern:focus-within {
    border-color: #3dbd64;
    background: #1f6e42;
    box-shadow: 0 0 0 3px rgba(45,138,78,0.15);
}

.input-group-modern i {
    color: rgba(255,255,255,0.35);
    font-size: 16px;
    transition: color 0.3s;
    flex-shrink: 0;
}

.input-group-modern:focus-within i {
    color: #2d8a4e;
}

.input-group-modern input {
    background: transparent !important;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 14px 12px;
    width: 100%;
}

.input-group-modern input:-webkit-autofill,
.input-group-modern input:-webkit-autofill:hover,
.input-group-modern input:-webkit-autofill:focus,
.input-group-modern input:-webkit-autofill:active,
.input-group-modern input:autofill {
    -webkit-box-shadow: 0 0 0 1000px #1a5c38 inset !important;
    box-shadow: 0 0 0 1000px #1a5c38 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    background-color: transparent !important;
    background-clip: content-box !important;
}

.input-group-modern input::placeholder {
    color: rgba(255,255,255,0.3);
}

.btn-login-modern {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2d8a4e, #1a6d3c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26,109,60,0.4);
}

.btn-login-modern:active {
    transform: translateY(0);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container-fixed {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast-item {
    pointer-events: auto;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
    max-width: 400px;
}
.toast-item.toast-success { background: #198754; }
.toast-item.toast-error { background: #dc3545; }
.toast-item.toast-info { background: #0dcaf0; color: #000; }
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== NOTIFICATION BELL ===== */
.notif-bell {
    position: relative;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: var(--transition);
}
.notif-bell:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(220,53,69,0.4);
}

/* ===== NOTIFICATION PANEL ===== */
.notif-panel {
    position: fixed;
    top: var(--topbar-height);
    right: 0;
    width: 360px;
    max-width: 100vw;
    max-height: calc(100vh - var(--topbar-height) - 10px);
    background: #fff;
    border-radius: 0 0 0 12px;
    box-shadow: -4px 8px 30px rgba(0,0,0,0.15);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.notif-panel.show {
    transform: translateX(0);
}
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    gap: 8px;
    flex-shrink: 0;
}
.notif-panel-body {
    padding: 8px 0;
    overflow-y: auto;
    flex: 1;
}
.notif-item {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item i {
    margin-top: 2px;
    flex-shrink: 0;
}
.notif-item.notif-warning i { color: #ffc107; }
.notif-item.notif-credit i { color: #fd7e14; }
.notif-item.notif-stock i { color: #dc3545; }
.notif-item.notif-info i { color: var(--primary); }

/* ===== UTILITY CLASSES (replacing inline styles) ===== */
.logo-img {
    width: min(160px, 50vw);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}
.sidebar-avatar {
    width: min(120px, 50vw);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
}
.clickable { cursor: pointer; }
.chart-canvas {
    max-height: 380px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.table-scroll {
    max-height: 350px;
    overflow-y: auto;
}
.table-scroll-md {
    max-height: 300px;
    overflow-y: auto;
}
.font-large-icon { font-size: 36px; }
.font-xxl-icon { font-size: 2rem; }
.muted-icon { font-size: 48px; color: #ccc; margin-bottom: 16px; display: block; }
.col-wid-id { width: 50px; }
.col-wid-table { width: 55px; }
.col-wid-user { width: 50px; }
.col-wid-time { width: 80px; }
.col-wid-min { width: 60px; }
.col-wid-total { width: 85px; }
.col-wid-status { width: 65px; }
.col-wid-pay { width: 65px; }
.col-wid-debtor { width: 140px; }
.col-wid-tkt { width: 55px; }
.col-wid-action { width: 85px; }
.col-wid-action-lg { min-width: 240px; }
.wid-90 { width: 90px; }
.min-wid-100 { min-width: 100px; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.navbar-flex { display: flex; align-items: center; gap: 12px; }
.btn-disabled { opacity: 0.4; cursor: not-allowed; }
.text-12 { font-size: 12px; }
.text-11 { font-size: 11px; }
.text-13 { font-size: 13px; }
.inline-form { display: inline; }
.admin-label { font-size: 12px; font-weight: 400; opacity: 0.6; margin-left: 4px; }
.actions-cell { min-width: 240px; }
.overlay-confirm {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.stock-link {
    font-size: 10px;
    transition: transform 0.2s;
}
.direct-dashed {
    border: 2px dashed #d4a373;
}
.chart-icon {
    font-size: 11px;
    opacity: 0.6;
}
.prepaid-badge {
    display: inline-block;
    background: #198754;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.card-prepaid { border-color: #198754 !important; border-width: 2px; }
.scroll-400 { max-height: 400px; overflow-y: auto; }
.scroll-300 { max-height: 300px; overflow-y: auto; }
.scroll-200 { max-height: 200px; overflow-y: auto; }
