/* =============================================
   Admin Dashboard — Premium Design System
   ============================================= */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 72px;
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #f1f5f9;
    --sidebar-active-bg: rgba(245, 158, 11, 0.15);
    --sidebar-active-text: #f59e0b;
    --sidebar-active-border: #f59e0b;
    --sidebar-divider: rgba(148, 163, 184, 0.12);

    /* Accent */
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.25);
    --accent-light: rgba(245, 158, 11, 0.1);

    /* Surface */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #fefefe;
    --bg-input: #f8fafc;
    --bg-topbar: rgba(255, 255, 255, 0.8);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-dark: #f1f5f9;

    /* Borders */
    --border-light: #e2e8f0;
    --border-focus: #f59e0b;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.12);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* Font */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- Admin Layout ---------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow);
    overflow: hidden;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--sidebar-divider);
    min-height: 80px;
}

.sidebar-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.sidebar-brand-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-brand-text small {
    display: block;
    color: var(--sidebar-text);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-title {
    padding: 8px 14px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.5);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
    text-decoration: none;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.sidebar-item:hover {
    background: rgba(148, 163, 184, 0.08);
    color: var(--sidebar-text-hover);
}

.sidebar-item:hover i {
    color: var(--accent);
}

.sidebar-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--sidebar-active-border);
    border-radius: 0 3px 3px 0;
}

.sidebar-item.active i {
    color: var(--sidebar-active-text);
}

.sidebar-item.sidebar-danger {
    color: var(--danger);
}

.sidebar-item.sidebar-danger:hover {
    background: var(--danger-bg);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--sidebar-divider);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(148, 163, 184, 0.06);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: var(--sidebar-text);
    font-size: 11px;
    font-weight: 400;
}

/* ---------- Main Content ---------- */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-slow);
}

/* --- Topbar --- */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-topbar);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    min-height: 64px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.topbar-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: white;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--bg-body);
    color: var(--text-primary);
}

/* --- Content Area --- */
.admin-content {
    flex: 1;
    padding: 28px 32px 48px;
}

/* ---------- Stat Cards ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card-icon.amber {
    background: var(--accent-light);
    color: var(--accent);
}

.stat-card-icon.blue {
    background: var(--info-bg);
    color: var(--info);
}

.stat-card-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-card-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- Cards ---------- */
.card,
.attendance-container,
.filter-bar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary,
.btn:not([class*="btn-"]):not(.tab-btn):not(.sidebar-item):not(.sidebar-toggle):not(.logout-btn):not(.calendar-nav-btn):not(.pagination-btn) {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover,
.btn:not([class*="btn-"]):not(.tab-btn):not(.sidebar-item):not(.sidebar-toggle):not(.logout-btn):not(.calendar-nav-btn):not(.pagination-btn):hover {
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
}

.btn-secondary:hover {
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--bg-body);
    border-color: var(--text-muted);
}

/* ---------- Form Inputs ---------- */
.form-input,
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: all var(--transition-fast);
    line-height: 1.5;
}

.form-input:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-group {
    margin-bottom: 20px;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
}

th {
    background: var(--bg-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}

td {
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
    vertical-align: middle;
}

tbody tr {
    transition: background var(--transition-fast);
}

tbody tr:hover {
    background: rgba(245, 158, 11, 0.03);
}

table.table thead th {
    background: var(--bg-body);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 14px 16px;
    border-top: none;
    border-bottom: 2px solid var(--border-light);
}

table.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
}

table.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(241, 245, 249, 0.5);
}

table.table tbody tr:hover {
    background: rgba(245, 158, 11, 0.04);
}

/* ---------- Table Headers (gradient) ---------- */
.table-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ---------- Status Badges ---------- */
.status-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-in {
    background: var(--success-bg);
    color: var(--success);
}

.status-out {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-scheduled {
    background: var(--info-bg);
    color: var(--info);
}

.status-arrived {
    background: var(--success-bg);
    color: var(--success);
}

.status-cancelled {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-no-show {
    background: var(--warning-bg);
    color: var(--warning);
}

/* ---------- Navigation Tabs (for inner sub-tabs) ---------- */
.nav-tabs {
    display: none;
    /* Hidden: sidebar replaces top tabs */
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInContent 0.3s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Visitor Form ---------- */
.visitor-form {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ---------- Visitors / Reservations Table Wrapper ---------- */
.visitors-table,
.reservations-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.table-content {
    max-height: 400px;
    overflow-y: auto;
}

/* ---------- Calendar ---------- */
.calendar-container,
.reservation-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-nav-btn,
.calendar-nav .btn {
    background: var(--bg-body);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.calendar-nav-btn:hover,
.calendar-nav .btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.month-display,
.calendar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 160px;
    text-align: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-weekdays>div {
    text-align: center;
    font-weight: 700;
    color: var(--accent);
    padding: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    min-height: 400px;
    padding: 16px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
}

.calendar-day {
    min-height: 80px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    background: white;
    padding: 8px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.calendar-day:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.calendar-day.today {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 700;
}

.calendar-day.selected {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.calendar-day.other-month {
    color: var(--text-muted);
    background: var(--bg-body);
    opacity: 0.5;
}

.calendar-day.has-events {
    background: var(--accent-light);
    border-color: var(--accent);
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.day-number {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.event-count {
    font-size: 10px;
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
    position: absolute;
    bottom: 6px;
    right: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-events {
    border-top: 2px solid var(--border-light);
    padding-top: 24px;
    margin-top: 16px;
}

.events-list {
    min-height: 80px;
}

.no-events {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 24px;
}

.event-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.event-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-time-badge {
    background: #0f172a;
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.event-type-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-type-badge.visitor {
    background: var(--success);
}

.event-type-badge.reservation {
    background: var(--accent);
}

.event-item h5 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.event-item p {
    margin: 4px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.event-time {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Day Header (calendar) ---------- */
.day-header {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    text-align: center;
}

.day-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: none;
    color: white;
    padding-bottom: 0;
}

/* ---------- History / Filter Containers ---------- */
.history-container,
.reservations-container,
.predefined-container,
.reports-container,
.messages-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px;
    border: 1px solid var(--border-light);
}

.history-header h3,
.reservations-header h3 {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 24px;
    text-align: left;
    position: relative;
    padding-bottom: 12px;
}

.history-header h3::after,
.reservations-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
    padding: 20px;
    align-items: flex-end;
    gap: 16px;
    display: flex;
    flex-wrap: wrap;
}

.filter-bar label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Pagination ---------- */
.pagination-container {
    margin: 28px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.pagination-btn {
    background: var(--bg-body);
    color: var(--text-secondary);
    border: 1px solid transparent;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.pagination-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.pagination-btn:disabled {
    background: var(--bg-body);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-dots {
    color: var(--text-muted);
    font-weight: 700;
    padding: 0 6px;
}

/* ---------- Autocomplete ---------- */
.autocomplete-container {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: var(--shadow-lg);
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    font-size: 14px;
}

.autocomplete-item:hover {
    background: var(--accent);
    color: white;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* ---------- Toast / Notification ---------- */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ---------- Modals ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

/* ---------- Form Grid ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Login Page ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.login-card .logo-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 8px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

/* ---------- Table Status Override (for existing inline colors) ---------- */
.table-success {
    background: var(--success-bg) !important;
}

.table-warning {
    background: var(--warning-bg) !important;
}

/* ---------- Loading Spinner ---------- */
.loading {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading i {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.fa-spinner {
    animation: pulse 1.5s infinite;
}

/* ---------- Checkbox Group ---------- */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ---------- Action Buttons ---------- */
.action-buttons {
    text-align: center;
    white-space: nowrap;
}

.btn-action {
    transition: all var(--transition-fast);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ---------- Logout Button ---------- */
.logout-btn {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logout-btn:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* ---------- Sidebar Overlay (Mobile) ---------- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Print Styles ---------- */
@media print {

    .admin-sidebar,
    .admin-topbar,
    .sidebar-overlay {
        display: none !important;
    }

    .admin-main {
        margin-left: 0 !important;
    }

    body {
        background: #fff;
    }

    .attendance-container,
    .filter-bar {
        box-shadow: none !important;
        border: none !important;
    }
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .admin-topbar {
        padding: 14px 20px;
    }

    .admin-content {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
    .admin-topbar {
        padding: 12px 16px;
    }

    .topbar-title {
        font-size: 16px;
    }

    .admin-content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .form-row,
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .visitor-form,
    .history-container,
    .reservations-container,
    .calendar-container,
    .predefined-container,
    .reports-container,
    .messages-container {
        padding: 18px;
    }

    .calendar-days {
        gap: 4px;
        padding: 10px;
    }

    .calendar-day {
        min-height: 50px;
        padding: 4px;
        font-size: 11px;
    }

    .day-number {
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        margin: 16px;
        max-height: calc(100vh - 32px);
    }

    .modal-body {
        padding: 16px;
    }

    .pagination {
        padding: 8px 12px;
        gap: 4px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }

    .table-header {
        padding: 14px 18px;
        font-size: 14px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .attendance-nav {
        flex-direction: column;
    }
}

/* ---------- Responsive: Small Mobile ---------- */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .topbar-right .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .logout-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* ---------- Utility ---------- */
.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mr-10 {
    margin-right: 10px;
}

.w-auto {
    width: auto;
}

.p-10-20 {
    padding: 10px 20px;
}

td strong {
    color: var(--text-primary);
    font-weight: 700;
}

.filter-bar>div {
    margin-bottom: 0 !important;
}

/* ---------- Tab Content ---------- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Hide old horizontal nav-tabs (replaced by sidebar) */
.nav-tabs {
    display: none !important;
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 5px;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-light);
}

/* ---------- Form Layouts ---------- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.visitor-form {
    background: var(--bg-body);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

/* ---------- Calendar ---------- */
.calendar-container,
.reservation-container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-nav-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.month-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 150px;
    text-align: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-weekdays>div {
    text-align: center;
    font-weight: 700;
    color: var(--accent);
    padding: 10px;
    font-size: 13px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    min-height: 400px;
    padding: 16px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
}

.calendar-day {
    min-height: 80px;
    border: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    background: var(--bg-card);
    padding: 10px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.calendar-day:hover {
    background: var(--bg-body);
    border-color: var(--accent);
}

.calendar-day.today {
    background: var(--accent);
    color: white;
    font-weight: bold;
    border-color: var(--accent);
}

.calendar-day.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: bold;
}

.calendar-day.has-events {
    background: var(--info-bg);
    border-color: var(--info);
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 6px;
    height: 6px;
    background: var(--info);
    border-radius: 50%;
}

.calendar-day.other-month {
    color: var(--text-muted);
    background: var(--bg-body);
}

.day-number {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: inherit;
}

.event-count {
    font-size: 11px;
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    position: absolute;
    bottom: 6px;
    right: 6px;
}

.calendar-events {
    border-top: 2px solid var(--border-light);
    padding-top: 20px;
}

.calendar-events h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.events-list {
    min-height: 100px;
}

.no-events {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 24px;
}

.day-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
}

.day-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border: none;
    padding: 0;
}

.event-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-time-badge {
    background: var(--text-primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.event-type-badge {
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.event-type-badge.visitor {
    background: var(--success);
}

.event-type-badge.reservation {
    background: var(--accent);
}

.event-item h5 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.event-item p {
    margin: 4px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-item p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.event-time {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Autocomplete ---------- */
.autocomplete-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: var(--shadow-lg);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
    font-size: 14px;
}

.autocomplete-item:hover {
    background: var(--accent);
    color: white;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* ---------- History & Containers ---------- */
.history-container,
.reservations-container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin: 20px 0;
}

.history-header h3,
.reservations-header h3 {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.history-header h3::after,
.reservations-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.history-table {
    margin-top: 24px;
    overflow-x: auto;
}

.history-table table {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.history-table tbody tr {
    transition: all var(--transition-fast);
}

.history-table tbody tr:hover {
    background-color: rgba(245, 158, 11, 0.04);
}

/* ---------- Table Header ---------- */
.table-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
}

.table-content {
    max-height: 400px;
    overflow-y: auto;
}

/* ---------- Action Buttons ---------- */
.action-buttons {
    text-align: center;
    white-space: nowrap;
}

.btn-action {
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ---------- Pagination ---------- */
.pagination-container {
    margin: 24px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.pagination-btn {
    background: var(--bg-body);
    color: var(--text-secondary);
    border: 2px solid transparent;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pagination-btn:disabled {
    background: var(--bg-body);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.pagination-dots {
    color: var(--text-muted);
    font-weight: bold;
    padding: 0 6px;
}

.pagination-controls button {
    transition: all var(--transition-fast);
}

.pagination-controls button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ---------- Loading & Error ---------- */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.fa-spinner {
    animation: pulse 1.5s infinite;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ---------- Dashboard Header ---------- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.logout-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ---------- Login Page ---------- */
.logo-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.login-title {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 800;
}

/* ---------- Visitors Table ---------- */
.visitors-table,
.reservations-table {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ---------- Btn Danger ---------- */
.btn-danger {
    background: var(--danger) !important;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-danger:hover {
    background: #dc2626 !important;
    transform: translateY(-1px);
}

/* ---------- Checkbox Group ---------- */
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }

    .form-row,
    .form-row-2,
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calendar-days {
        gap: 4px;
        padding: 8px;
    }

    .calendar-day {
        min-height: 50px;
        padding: 6px;
        font-size: 12px;
    }

    .history-filters {
        flex-direction: column;
    }

    .pagination {
        padding: 8px 12px;
        gap: 4px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 34px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 10px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
}