/* ============================================================
   Bus Terminus — Global Styles
   ============================================================ */

/* Sidebar */
.sidebar {
    transition: transform 0.25s ease;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    border-radius: 6px;
    margin: 1px 8px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

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

.sidebar .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

.nav-section-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}

/* Main content area */
.main-content {
    flex: 1;
    padding: 24px;
    background: #f4f6fb;
    overflow-x: hidden;
}

/* Page header */
.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.page-header p {
    font-size: 0.83rem;
    color: #6c757d;
    margin: 2px 0 0;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border-radius: 10px;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px 10px 0 0 !important;
    padding: 14px 18px;
}

/* Stat cards on dashboard */
.stat-card {
    border-radius: 12px;
    padding: 18px 20px;
    color: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 4px;
}

.stat-card .stat-icon {
    font-size: 2.2rem;
    opacity: 0.3;
}

/* Tables */
.table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8f9fa;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    font-size: 0.88rem;
    vertical-align: middle;
}

/* Badges for status */
.badge-active   { background: #198754; color: #fff; }
.badge-exited   { background: #6c757d; color: #fff; }
.badge-overtime { background: #fd7e14; color: #fff; }
.badge-voided   { background: #dc3545; color: #fff; }

/* Receipt preview box */
.receipt-box {
    background: #fff;
    border: 1px dashed #adb5bd;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    max-width: 340px;
}

.receipt-box .receipt-divider {
    border-top: 1px dashed #adb5bd;
    margin: 8px 0;
}

/* Mobile sidebar */
@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        top: 54px;
        left: 0;
        z-index: 999;
        transform: translateX(-100%);
        height: calc(100vh - 54px);
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    .main-content {
        padding: 16px;
    }
}
@media print {
    .navbar, .sidebar, .page-header, .btn, .alert, #sidebarToggle {
        display: none !important;
    }
    .main-content {
        padding: 0 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    .receipt-box {
        border: none !important;
        max-width: 100% !important;
    }
}