﻿/* ========================================
   EVENT MANAGEMENT SYSTEM - SITE STYLES
   Consistent design system for all pages
   ======================================== */

/* ============================================
   1. GLOBAL STYLES & RESETS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 0;
}

/* ============================================
   2. COLOR PALETTE (Slate / Sky-blue)
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #2E6F9E;
    --primary-dark: #1F4E73;
    --primary-light: #5B93BE;
    /* Status Colors */
    --success-color: #16A34A;
    --success-dark: #15803D;
    --warning-color: #B8752E;
    --warning-dark: #8F5920;
    --danger-color: #DC2626;
    --danger-dark: #B91C1C;
    --info-color: #6366F1;
    --info-dark: #4F46E5;
    /* Neutral Colors */
    --dark-gray: #101B2E;
    --gray: #64748B;
    --light-gray: #E2E8F0;
    --lighter-gray: #EEF2F7;
    /* Background */
    --bg-color: #F6F8FB;
    --card-bg: #ffffff;
    /* Text */
    --text-primary: #111827;
    --text-secondary: #55627A;
    --text-muted: #94A3B8;
    /* Borders */
    --border-color: #E2E8F0;
    --border-radius: 10px;
    --border-radius-sm: 7px;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(16,27,46,0.05);
    --shadow-md: 0 4px 16px rgba(16,27,46,0.06);
    --shadow-lg: 0 12px 32px rgba(16,27,46,0.10);
    --shadow-xl: 0 20px 50px rgba(16,27,46,0.16);
    /* Sidebar / App Shell */
    --sidebar-bg: #101B2E;
    --sidebar-bg-2: #182540;
    --sidebar-bg-3: #213256;
    --sidebar-text: #AEB9CC;
    --sidebar-text-muted: #5C6A83;
    --accent-soft: #E3ECF3;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    margin-bottom: 18px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

h4 {
    font-size: 20px;
    margin-bottom: 14px;
}

h5 {
    font-size: 18px;
    margin-bottom: 12px;
}

h6 {
    font-size: 16px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

small {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   4. APP SHELL / SIDEBAR NAVIGATION
   ============================================ */
.app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.app-sidebar {
    width: 232px;
    flex: none;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 20px;
    color: #fff;
    text-decoration: none;
}

    .sidebar-brand:hover {
        color: #fff;
        text-decoration: none;
    }

    .sidebar-brand .mark {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        background: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 14px;
        flex: none;
    }

    .sidebar-brand .name {
        font-size: 15.5px;
        font-weight: 700;
        letter-spacing: -0.01em;
    }

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sidebar-text);
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

    .nav-item svg {
        width: 17px;
        height: 17px;
        flex: none;
        opacity: 0.85;
    }

    .nav-item:hover {
        background: var(--sidebar-bg-2);
        color: #fff;
        text-decoration: none;
    }

    .nav-item.active {
        background: var(--sidebar-bg-3);
        color: #fff;
    }

        .nav-item.active svg {
            opacity: 1;
            color: var(--primary-light);
        }

.nav-group-toggle .chevron {
    margin-left: auto;
    width: 13px !important;
    height: 13px !important;
    transition: transform 0.2s ease;
}

.nav-group-toggle:not(.collapsed) .chevron {
    transform: rotate(180deg);
}

.nav-subitems {
    display: flex;
    flex-direction: column;
    padding-left: 34px;
    gap: 1px;
}

    .nav-subitems a {
        padding: 7px 10px;
        font-size: 13px;
        color: var(--sidebar-text-muted);
        text-decoration: none;
        border-radius: var(--border-radius-sm);
    }

        .nav-subitems a:hover,
        .nav-subitems a.active {
            color: #fff;
            background: var(--sidebar-bg-2);
            text-decoration: none;
        }

.nav-section-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sidebar-text-muted);
    padding: 16px 12px 6px;
}

.sidebar-foot {
    margin-top: auto;
    padding: 14px 10px 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--sidebar-text);
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--lighter-gray);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

    .topbar-datetime i {
        color: var(--primary-color);
        font-size: 12px;
    }

    .topbar-datetime .topbar-datetime-date {
        color: var(--text-primary);
    }

    .topbar-datetime .topbar-datetime-sep {
        color: var(--text-muted);
    }

    .topbar-datetime .topbar-datetime-time {
        font-variant-numeric: tabular-nums;
        color: var(--primary-dark);
    }

@media (max-width: 767px) {
    .topbar-datetime .topbar-datetime-date {
        display: none;
    }

    .topbar-datetime .topbar-datetime-sep {
        display: none;
    }
}

.sidebar-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    padding: 4px 8px;
    cursor: pointer;
}

.avatar-chip {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12.5px;
    flex: none;
}

.logout-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    font-size: 14px;
    flex: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

    .logout-btn:hover {
        background: rgba(220, 38, 38, 0.08);
        color: var(--danger-color);
        border-color: rgba(220, 38, 38, 0.3);
        text-decoration: none;
    }

@media (max-width: 991px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-xl);
    }

    .app-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: inline-flex;
    }
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background: var(--lighter-gray);
        transform: translateX(5px);
    }

    .dropdown-item i {
        margin-right: 10px;
        width: 18px;
        text-align: center;
    }

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    padding: 10px 25px;
    font-size: 15px;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

    .btn:active {
        transform: translateY(0);
    }

/* Primary Button */
.btn-primary {
    background: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        color: white;
    }

/* Success Button */
.btn-success {
    background: var(--success-color);
    color: white;
}

    .btn-success:hover {
        background: var(--success-dark);
        color: white;
    }

/* Warning Button */
.btn-warning {
    background: var(--warning-color);
    color: white;
}

    .btn-warning:hover {
        background: var(--warning-dark);
        color: white;
    }

/* Danger Button */
.btn-danger {
    background: var(--danger-color);
    color: white;
}

    .btn-danger:hover {
        background: var(--danger-dark);
        color: white;
    }

/* Info Button */
.btn-info {
    background: var(--info-color);
    color: white;
}

/* Secondary/Light Button */
.btn-secondary, .btn-light {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

    .btn-secondary:hover, .btn-light:hover {
        background: var(--lighter-gray);
        border-color: var(--gray);
    }

/* Outline Buttons */
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-outline-success {
    border: 2px solid var(--success-color);
    color: var(--success-color);
    background: transparent;
}

    .btn-outline-success:hover {
        background: var(--success-color);
        color: white;
    }

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

    .btn-outline-danger:hover {
        background: var(--danger-color);
        color: white;
    }

.btn-outline-warning {
    border: 2px solid var(--warning-color);
    color: var(--warning-dark);
    background: transparent;
}

    .btn-outline-warning:hover {
        background: var(--warning-color);
        color: #333;
    }

/* Button Sizes */
.btn-sm {
    padding: 6px 15px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 35px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ============================================
   6. CARDS
   ============================================ */
.card {
    background: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: var(--shadow-lg);
    }

.card-header {
    background: var(--lighter-gray);
    border-bottom: 2px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 25px;
}

.card-footer {
    background: var(--lighter-gray);
    border-top: 2px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* ============================================
   7. FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(46, 111, 158, 0.15);
        outline: none;
    }

    .form-control:disabled {
        background: var(--lighter-gray);
        cursor: not-allowed;
    }

select.form-control {
    cursor: pointer;
    /* Bootstrap's .custom-select hardcodes a fixed height based on ITS OWN default
       padding, which is shorter than our .form-control padding (10px 15px) — the
       two together clip the option text vertically. Let height follow content
       (padding + line-height) instead, matching plain text inputs. */
    height: auto !important;
    line-height: 1.4;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
}

.valid-feedback {
    color: var(--success-color);
    font-size: 13px;
    margin-top: 5px;
}

/* Custom Checkbox & Radio */
.custom-control-label {
    cursor: pointer;
    font-weight: 500;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   8. TABLES
   ============================================ */
.table {
    background: white;
    border-radius: var(--border-radius);
}

    .table thead th {
        background: var(--lighter-gray);
        border-bottom: 2px solid var(--border-color);
        font-weight: 600;
        color: var(--text-primary);
        padding: 15px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .table tbody td {
        padding: 15px;
        border-bottom: 1px solid #eee;
        color: var(--text-secondary);
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background: var(--lighter-gray);
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .table tbody tr:last-child td {
        border-bottom: none;
    }

.table-responsive {
    border-radius: var(--border-radius);
    overflow-x: auto;
}

/* DataTables Custom Styles */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 6px 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--border-radius-sm);
    margin: 0 3px;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: white !important;
    }

/* ============================================
   9. BADGES
   ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: #333;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.badge-secondary {
    background: var(--gray);
    color: white;
}

.badge-light {
    background: var(--lighter-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* ============================================
   10. ALERTS
   ============================================ */
.alert {
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    border: none;
    border-left: 4px solid;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-left-color: var(--warning-color);
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-left-color: var(--danger-color);
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-left-color: var(--info-color);
    color: #0c5460;
}

/* ============================================
   11. MODALS
   ============================================ */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    padding: 25px;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 2px solid var(--border-color);
    padding: 20px 30px;
    border-radius: 0 0 15px 15px;
}

/* Modern confirm modal (replaces browser confirm() dialogs) */
.modal.fade.app-confirm-modal .modal-dialog {
    transform: translateY(0) scale(0.92) !important;
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out !important;
}

.modal.fade.app-confirm-modal.show .modal-dialog {
    transform: translateY(0) scale(1) !important;
    opacity: 1;
}

.app-confirm-modal .modal-content {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.app-confirm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--lighter-gray);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

    .app-confirm-close:hover {
        background: var(--border-color);
        color: var(--text-primary);
    }

.app-confirm-body {
    padding: 42px 34px 6px;
    text-align: center;
}

.app-confirm-body h5 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.app-confirm-body p {
    margin: 0 auto;
    max-width: 300px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.app-confirm-footer {
    border-top: none;
    padding: 26px 30px 32px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .app-confirm-footer .btn {
        flex: 1;
        border-radius: 12px;
        padding: 12px;
        font-weight: 700;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

        .app-confirm-footer .btn:hover {
            transform: translateY(-2px);
        }

.app-confirm-cancel {
    background: var(--lighter-gray);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

    .app-confirm-cancel:hover {
        background: var(--border-color);
        color: var(--text-primary);
    }

.app-confirm-danger {
    background: linear-gradient(135deg, var(--danger-color), var(--danger-dark));
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

    .app-confirm-danger:hover {
        color: #fff;
        box-shadow: 0 10px 22px rgba(220, 38, 38, 0.38);
    }

@media (prefers-reduced-motion: reduce) {
    .app-confirm-modal .modal-dialog {
        transition: none;
    }
}

/* ============================================
   12. STATISTICS CARDS
   ============================================ */
.stat-card {
    padding: 20px;
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

/* ============================================
   13. PAGE HEADERS
   ============================================ */
.page-header {
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-dark) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.bg-success {
    background: var(--success-color) !important;
}

.bg-warning {
    background: var(--warning-color) !important;
}

.bg-danger {
    background: var(--danger-color) !important;
}

.bg-info {
    background: var(--info-color) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 10px !important;
}

.mb-2 {
    margin-bottom: 15px !important;
}

.mb-3 {
    margin-bottom: 20px !important;
}

.mb-4 {
    margin-bottom: 30px !important;
}

.mb-5 {
    margin-bottom: 40px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 10px !important;
}

.mt-2 {
    margin-top: 15px !important;
}

.mt-3 {
    margin-top: 20px !important;
}

.mt-4 {
    margin-top: 30px !important;
}

.mt-5 {
    margin-top: 40px !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 10px !important;
}

.p-2 {
    padding: 15px !important;
}

.p-3 {
    padding: 20px !important;
}

.p-4 {
    padding: 30px !important;
}

.p-5 {
    padding: 40px !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-normal {
    font-weight: 400 !important;
}

/* ============================================
   15. SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--lighter-gray);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }

/* ============================================
   16. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* ============================================
   17. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .page-header {
        padding: 20px;
    }

    .card-body {
        padding: 20px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    .stat-card {
        margin-bottom: 15px;
    }
}

/* ============================================
   18. PRINT STYLES
   ============================================ */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }

    .app-sidebar, .app-topbar, footer.footer {
        display: none !important;
    }

    .app-main, body {
        background: white !important;
    }

    body {
        background: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .report-sheet {
        border: none;
        padding: 0;
    }

    .report-table tbody tr.rpt-row.hidden {
        display: table-row !important;
    }
}

/* ============================================
   18b. FORMAL REPORT SHEET (shared by Booking Reports,
   Hall Reports, and any future report page)
   ============================================ */
.report-sheet {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 26px 28px;
    font-variant-numeric: tabular-nums;
}

.report-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--dark-gray);
    margin-bottom: 18px;
}

.report-business {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}

.report-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-gray);
}

.report-meta {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

    .report-meta strong {
        color: var(--text-primary);
    }

/* Summary strip: plain bordered cells, no cards/icons/shadows */
.summary-strip {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
    table-layout: fixed;
}

    .summary-strip td {
        border: 1px solid var(--border-color);
        padding: 12px 16px;
        vertical-align: top;
    }

.ss-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ss-value {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.ss-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.ss-danger {
    color: var(--danger-color);
}

.ss-success {
    color: var(--success-color);
}

/* Report table */
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

    .report-table th {
        text-align: left;
        padding: 9px 12px;
        font-size: 10.5px;
        font-weight: 700;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border-bottom: 2px solid var(--dark-gray);
        white-space: nowrap;
    }

    .report-table td {
        padding: 9px 12px;
        border-bottom: 1px solid var(--border-color);
        vertical-align: middle;
        color: var(--text-primary);
    }

    .report-table th.r, .report-table td.r {
        text-align: right;
    }

    .report-table tbody tr.rpt-row:nth-child(even) {
        background: var(--lighter-gray);
    }

    .report-table tbody tr.rpt-row:hover {
        background: var(--accent-soft);
    }

    .report-table tbody tr.rpt-row.hidden {
        display: none;
    }

.cell-strong {
    font-weight: 700;
}

.cell-muted {
    font-size: 10.5px;
    color: var(--text-muted);
}

.mono {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 11.5px;
}

.text-danger-cell {
    color: var(--danger-color);
    font-weight: 700;
}

.group-header td {
    background: var(--dark-gray);
    color: white;
    font-weight: 700;
    font-size: 12.5px;
    padding: 8px 12px;
    border-bottom: none;
}

.group-count {
    font-weight: 400;
    opacity: 0.7;
    font-size: 11px;
    margin-left: 4px;
}

.group-subtotal td {
    background: var(--lighter-gray);
    font-weight: 700;
    font-size: 12px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.grand-total td {
    background: var(--accent-soft);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--dark-gray);
    border-top: 3px double var(--dark-gray);
    border-bottom: 3px double var(--dark-gray);
    padding: 12px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.dot-success {
    background: var(--success-color);
}

.dot-info {
    background: var(--info-color);
}

.dot-warning {
    background: var(--warning-color);
}

.dot-danger {
    background: var(--danger-color);
}

/* ============================================
   19. FOOTER STYLES
   ============================================ */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

    .footer h5 {
        color: white;
        font-weight: 600;
        margin-bottom: 15px;
        font-size: 16px;
    }

    .footer a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer a:hover {
            color: white;
            transform: translateX(3px);
        }

    .footer hr {
        border-color: rgba(255,255,255,0.2);
        margin: 25px 0;
    }

/* ============================================
   19a. DASH COMPONENTS (shared card/button pattern used across
   Dashboard, Profile, Settings, and other redesigned pages)
   ============================================ */
.dash-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .dash-btn-primary:hover {
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: var(--shadow-lg);
    }

.dash-link-btn {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}

    .dash-link-btn:hover {
        background: var(--primary-color);
        color: white;
        text-decoration: none;
    }

.dash-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--lighter-gray);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    gap: 8px;
}

/* ============================================
   19b. SUBSCRIPTION BADGE (shared across Dashboard, Profile, etc.)
   ============================================ */
.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
}

.sub-badge-neutral {
    background: var(--lighter-gray);
    color: var(--text-secondary);
}

.sub-badge-warning {
    background: rgba(184, 117, 46, 0.12);
    color: var(--warning-color);
}

.sub-badge-danger {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger-color);
}

/* ============================================
   20. LOADING SPINNER
   ============================================ */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}
