/* ==========================================================================
   Namaste Sports Complex - Linear / Modern Design System Style
   ========================================================================== */

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

:root {
    color-scheme: dark;
    
    /* Design System Tokens */
    --background-deep: #020203;
    --background-base: #050506;
    --background-elevated: #0a0a0c;
    --surface-val: rgba(255, 255, 255, 0.04);
    --surface-hover-val: rgba(255, 255, 255, 0.08);
    --foreground: #EDEDEF;
    --foreground-muted: #8A8F98;
    --foreground-subtle: rgba(255, 255, 255, 0.60);
    
    --accent: #5E6AD2;
    --accent-bright: #6872D9;
    --accent-glow: rgba(94, 106, 210, 0.25);
    --accent-soft: rgba(94, 106, 210, 0.12);
    
    --border-default: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(94, 106, 210, 0.25);
    
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.15);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.15);

    /* Typography Scale & Weights */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    
    /* Spacing Scale */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 2.5rem;
    --sp-3xl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Compatibility Mapping */
    --bg: var(--background-base);
    --surface: var(--surface-val);
    --surface-alt: var(--background-elevated);
    --text: var(--foreground);
    --muted: var(--foreground-muted);
    --border: var(--border-default);
    --radius: var(--radius-2xl);
    
    /* Animation Easing */
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Global & Reset
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-base);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Layers */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
}

.base-bg {
    background: radial-gradient(ellipse at top, #0a0a0f 0%, #050506 50%, #020203 100%);
}

.noise-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
}

.grid-overlay {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* Floating Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    animation: float 12s ease-in-out infinite alternate;
}

.primary-blob {
    top: -15%;
    left: 30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.8;
    animation-duration: 14s;
}

.secondary-blob {
    top: 25%;
    left: -15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    opacity: 0.6;
    animation-duration: 20s;
}

.tertiary-blob {
    bottom: -15%;
    right: 5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    opacity: 0.7;
    animation-duration: 17s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(-30px) scale(1.05) rotate(1deg); }
    100% { transform: translateY(10px) scale(0.95) rotate(-1deg); }
}

/* ==========================================================================
   Layout Containers & Spacing Helpers
   ========================================================================== */

.container {
    width: min(1300px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.page-shell {
    padding: 3.5rem 0;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2, .grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.grid-3, .grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.grid-cols-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }
.mb-2xl { margin-bottom: 3rem; }
.mt-xl { margin-top: 2rem; }
.mt-2xl { margin-top: 3rem; }
.p-sm { padding: 0.75rem !important; }
.p-md { padding: 1.25rem !important; }

/* Flex Utilities */
.flex { display: flex; gap: 0.75rem; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.space-between { justify-content: space-between; align-items: center; }
.align-center { align-items: center; }
.text-muted { color: var(--foreground-muted); }
.cursor-pointer { cursor: pointer; }
.hidden { display: none !important; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    border-bottom: 1px solid var(--border-default);
    background: rgba(5, 5, 6, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.25rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a,
.link-button {
    color: var(--foreground-muted);
    text-decoration: none;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.link-button:hover {
    color: var(--foreground);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: var(--surface-val);
    border: 1px solid var(--border-default);
    color: var(--foreground);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 101;
}

.menu-toggle:hover {
    background: var(--surface-hover-val);
    border-color: var(--border-hover);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--foreground);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.25rem;
}

.eyebrow {
    color: var(--accent);
    font-family: monospace;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--foreground-muted);
    line-height: 1.6;
    max-width: 44rem;
}

/* ==========================================================================
   Panels, Cards, and Containers
   ========================================================================== */

.page-panel,
.card,
.form-card,
.info-card {
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.01),
                0 4px 24px rgba(0, 0, 0, 0.35),
                0 0 60px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mouse-Tracking Spotlight Overlay */
.card::before,
.page-panel::before,
.info-card::before,
.court-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(94, 106, 210, 0.08), transparent 85%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover::before,
.page-panel:hover::before,
.info-card:hover::before,
.court-card:hover::before {
    opacity: 1;
}

/* Card hover state */
.card:hover,
.info-card:hover,
.form-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05),
                0 8px 32px rgba(0, 0, 0, 0.45),
                0 0 80px rgba(94, 106, 210, 0.08);
}

/* 1px Inset Top Highlight */
.card::after,
.info-card::after,
.form-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.05) 80%, transparent);
    pointer-events: none;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Auth Cards */
.auth-panel {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2.5rem;
}

.auth-card-wrapper {
    margin-top: 1.5rem;
}

/* Info Cards (Stats) */
.info-card {
    padding: 1.5rem;
}

.info-card span {
    display: block;
    color: var(--foreground-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-card strong {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

/* Dashboard Specific Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-layout.with-sidebar {
    margin-left: 260px;
}

.app-content {
    flex: 1;
    padding: 2.5rem;
    min-height: 100vh;
}

/* Reference card subcomponents */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-weight: 600;
    font-size: 1.15rem;
}

.card-body {
    position: relative;
    z-index: 2;
}

.card-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-default);
    margin-top: 1.25rem;
}

/* ==========================================================================
   Home Hero Panel & Bento Grid
   ========================================================================== */

.home-panel {
    padding: 4.5rem 3rem;
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.12) 0%, rgba(94, 106, 210, 0) 50%),
                linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
    border-color: rgba(94, 106, 210, 0.15);
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Asymmetric Bento Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-default);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s var(--ease-expo);
}

.feature-card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--foreground-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-card:nth-child(1) {
    grid-column: span 4;
}

.feature-card:nth-child(2) {
    grid-column: span 2;
}

.feature-card:nth-child(3) {
    grid-column: span 6;
    min-height: 180px;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
}

.quick-start-panel {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button,
.small-button,
button:not(.tab) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.5),
                0 4px 12px rgba(94, 106, 210, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.button:hover,
.small-button:hover,
button:not(.tab):hover {
    background-color: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.6),
                0 6px 16px rgba(94, 106, 210, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button:active,
.small-button:active,
button:not(.tab):active {
    transform: translateY(1px);
    box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.5),
                0 2px 6px rgba(94, 106, 210, 0.2);
}

/* Secondary Button */
.button.secondary,
.small-button.secondary,
button.secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--foreground);
    box-shadow: 0 0 0 1px var(--border-default),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.button.secondary:hover,
.small-button.secondary:hover,
button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px var(--border-hover),
                0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Ghost Button */
.button-ghost {
    background: transparent !important;
    border: 1px solid var(--border-default) !important;
    color: var(--foreground-muted) !important;
    box-shadow: none !important;
}

.button-ghost:hover {
    background: var(--surface-val) !important;
    color: var(--foreground) !important;
    border-color: var(--border-hover) !important;
}

.small-button {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.button-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.button-primary {
    background-color: var(--accent) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.form-card label,
.inline-form label,
.form-group label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--foreground-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: #0f0f12;
    color: var(--foreground);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #121216;
    box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.25),
                inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--foreground-muted);
}

.form-footer a,
.secondary-link,
.form-footer span + a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-footer a:hover,
.secondary-link:hover {
    color: var(--accent-bright);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-default);
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.35rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    width: fit-content;
}

.tab {
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: transparent;
    color: var(--foreground-muted);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.03);
}

.tab.active {
    background: var(--surface-hover-val);
    border-color: var(--border-default);
    color: var(--foreground);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Tab Panels */
.admin-panel {
    display: none;
    animation: fadein 0.3s ease;
}

.admin-panel.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 0.75rem;
}

.inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.inline-form label {
    margin-bottom: 0;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

th,
td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-default);
}

th {
    background: rgba(255, 255, 255, 0.01);
    color: var(--foreground-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr {
    transition: background-color 0.2s ease;
}

tr:hover:not(thead tr) {
    background: rgba(255, 255, 255, 0.015);
}

tr:last-child td {
    border-bottom: none;
}

.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--foreground-muted);
    font-size: 0.95rem;
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.01);
}

/* ==========================================================================
   Court Cards & Time Slots
   ========================================================================== */

.court-card {
    background: var(--surface-val);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s var(--ease-expo);
    position: relative;
}

.court-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.court-card.selected {
    border-color: var(--accent);
    background-color: var(--accent-soft);
    box-shadow: 0 0 15px rgba(94, 106, 210, 0.15);
}

.court-card-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.15) 0%, rgba(94, 106, 210, 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-bottom: 1px solid var(--border-default);
}

.court-card-body {
    padding: 1.25rem;
}

.court-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--foreground);
}

.court-card-detail {
    font-size: 0.8rem;
    color: var(--foreground-muted);
    margin-top: 0.2rem;
}

/* Timeslot chips */
.timeslot-chip {
    padding: 0.65rem 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.timeslot-chip:hover:not(.unavailable) {
    border-color: var(--border-hover);
    background-color: var(--surface-hover-val);
}

.timeslot-chip.selected {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(94, 106, 210, 0.3);
}

.timeslot-chip.unavailable {
    cursor: not-allowed;
    opacity: 0.3;
    text-decoration: line-through;
    background: transparent;
    color: var(--foreground-muted);
}

/* Invoice reference items */
.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-default);
    font-size: 0.9rem;
}

.invoice-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    padding-top: 1rem;
}

/* ==========================================================================
   Status Badges & Pills
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-success {
    background-color: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-danger {
    background-color: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background-color: var(--warning-soft);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
    background-color: var(--info-soft);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-muted {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--foreground-muted);
    border: 1px solid var(--border-default);
}

.badge-primary, .badge-admin {
    background-color: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(94, 106, 210, 0.25);
}

/* ==========================================================================
   Sidebar (Superadmin & Staff Layouts)
   ========================================================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background-color: #060608;
    border-right: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 50;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-default);
}

.sidebar-brand {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: 0.05em;
}

.sidebar-brand-sub {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0.75rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--foreground-muted);
    cursor: pointer;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--foreground);
    border-left-color: var(--accent);
}

.sidebar-divider {
    margin: 1rem 0;
    border-top: 1px solid var(--border-default);
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-default);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(94, 106, 210, 0.2);
}

.sidebar-user-name {
    font-size: 0.8rem;
    color: var(--foreground);
    font-weight: 600;
}

.sidebar-user-role {
    font-size: 0.65rem;
    color: var(--foreground-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.sidebar-logout {
    display: block;
    width: 100%;
    padding: 0.65rem;
    background-color: transparent !important;
    color: var(--danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.sidebar-logout:hover {
    background-color: var(--danger-soft) !important;
    border-color: var(--danger) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Immutable Audit Logs (Terminal View)
   ========================================================================== */

.terminal {
    background: #040406;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #38bdf8; /* light blue code look */
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.terminal-line {
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.terminal-line:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.terminal-time {
    color: var(--foreground-muted);
    flex-shrink: 0;
}

.terminal-action {
    color: #e2e8f0;
    cursor: pointer;
    text-decoration: underline dotted rgba(255, 255, 255, 0.2);
}

.terminal-action:hover {
    color: var(--foreground);
}

.terminal-details {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--accent);
    margin-left: 1.5rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 0.8rem;
    animation: slideDown 200ms ease;
}

.code-diff {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.code-diff-label {
    color: var(--foreground-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.code-diff-old {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.35rem;
    border-radius: 4px;
}

.code-diff-new {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.35rem;
    border-radius: 4px;
}

/* ==========================================================================
   Toasts & Modals
   ========================================================================== */

.toast {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--border-default);
    border-left: 4px solid var(--accent);
    color: var(--foreground);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    animation: fadein 0.3s var(--ease-expo);
    z-index: 9999;
    font-size: 0.9rem;
    font-weight: 500;
}

.expansion-pane {
    background-color: rgba(255, 255, 255, 0.01) !important;
    border-bottom: 1px solid var(--border-default);
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.permission-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.permission-item label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--foreground);
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

@keyframes fadein {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1023px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-card:nth-child(1) { grid-column: span 1; }
    .feature-card:nth-child(2) { grid-column: span 1; }
    .feature-card:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .app-layout.with-sidebar {
        margin-left: 0;
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-default);
    }
    
    .sidebar-header {
        padding: 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
    }
    
    .sidebar-user {
        margin-bottom: 0;
    }
    
    .sidebar-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .sidebar-logout {
        width: auto;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 767px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3) {
        grid-column: span 1;
        min-height: 200px;
    }
    
    .page-panel {
        padding: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(5, 5, 6, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 7rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 100;
        opacity: 0;
        transform: translateY(-15px);
        pointer-events: none;
        transition: transform 0.25s var(--ease-expo), opacity 0.2s ease;
    }
    
    .nav-links.nav-active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-links a,
    .link-button {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links button.link-button {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   DASHBOARD UI REVAMP — Premium Enhancements
   Applied to admin/dashboard.php & user/dashboard.php
   ========================================================================== */

/* --- Dashboard Page Panel: gradient header band & extra breathing room --- */
.dashboard-panel,
.page-panel {
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    position: relative;
}

.page-panel > .page-head {
    padding-bottom: 1.75rem;
    margin-bottom: 2.25rem;
    border-bottom: 1px solid var(--border-default);
    position: relative;
}

.page-panel > .page-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.page-head .eyebrow {
    margin-bottom: 0.5rem;
}

.page-head .subtitle {
    margin-top: 0.5rem;
    max-width: 36rem;
}

/* --- Stat/Info Cards: icon strip, number animation, hover lift --- */
.stats-grid {
    margin-bottom: 2.5rem;
}

.info-card {
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), rgba(94, 106, 210, 0.2));
    border-radius: 3px 0 0 3px;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(94, 106, 210, 0.1);
}

.info-card span {
    display: block;
    color: var(--foreground-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.info-card strong {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.75));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Color variations for info cards */
.grid-3 .info-card:nth-child(1)::before {
    background: linear-gradient(to bottom, var(--accent), rgba(94, 106, 210, 0.15));
}

.grid-3 .info-card:nth-child(2)::before {
    background: linear-gradient(to bottom, var(--success), rgba(34, 197, 94, 0.15));
}

.grid-3 .info-card:nth-child(3)::before {
    background: linear-gradient(to bottom, var(--warning), rgba(245, 158, 11, 0.15));
}

/* --- Tab Bar: pill-indicator style with glow --- */
.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1.25rem 0 2.25rem;
    background: rgba(255, 255, 255, 0.015);
    padding: 0.4rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    width: fit-content;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tab {
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: transparent;
    color: var(--foreground-muted);
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s var(--ease-expo);
    position: relative;
    letter-spacing: 0.01em;
}

.tab:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.04);
}

.tab.active {
    background: linear-gradient(to bottom, rgba(94, 106, 210, 0.2), rgba(94, 106, 210, 0.08));
    border-color: rgba(94, 106, 210, 0.25);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(94, 106, 210, 0.2),
                0 1px 3px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --- Admin Panel Sections: smooth reveal --- */
.admin-panel {
    display: none;
    animation: panelReveal 0.35s var(--ease-expo);
}

.admin-panel.active {
    display: block;
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Headers: cleaner divider with accent marker --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 1rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* --- Cards: enhanced inner spacing & hover glow --- */
.page-panel .card,
.dashboard-panel .card {
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-xl);
    transition: transform 0.3s var(--ease-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-panel .card:hover,
.dashboard-panel .card:hover {
    transform: translateY(-2px);
}

.page-panel .card h2,
.dashboard-panel .card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-default);
    position: relative;
}

.page-panel .card h2::after,
.dashboard-panel .card h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* --- Tables: polished striping, better hover, row borders --- */
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.025);
    color: var(--foreground-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-default);
    position: sticky;
    top: 0;
    z-index: 2;
}

td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--foreground);
    vertical-align: middle;
}

tbody tr {
    transition: background-color 0.2s ease, transform 0.15s ease;
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.012);
}

tbody tr:hover {
    background: rgba(94, 106, 210, 0.04) !important;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* --- Form Cards: visual grouping, softer background, section breaks --- */
.page-panel .form-card,
.dashboard-panel .form-card {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-panel .form-card::before,
.dashboard-panel .form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(94, 106, 210, 0.3), transparent);
}

.form-card label {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.form-card input,
.form-card select,
.form-card textarea {
    margin-top: 0.35rem;
}

/* Better form submit buttons in dashboard context */
.form-card button[type="submit"],
.ajax-form button[type="submit"] {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- Action Buttons in Tables: compact, consistent --- */
.small-button {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.small-button.secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--foreground-muted);
    border: 1px solid var(--border-default);
    box-shadow: none;
}

.small-button.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--foreground);
    border-color: var(--border-hover);
}

/* --- Empty State: improved visual --- */
.empty-state {
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--foreground-muted);
    font-size: 0.9rem;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.01);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --- Inline Form (Rankings, etc.): better alignment --- */
.inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
}

/* --- Dashboard Grid (2-column layouts): better gap & alignment --- */
.page-panel > .grid-2,
.dashboard-panel > .grid-2 {
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

/* --- Secondary Buttons: refined ghost-look for dashboard context --- */
.page-head .button.secondary,
.section-header .button.secondary {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    color: var(--foreground-muted);
    box-shadow: none;
    transition: all 0.2s ease;
}

.page-head .button.secondary:hover,
.section-header .button.secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--foreground);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Toast Enhancements --- */
.toast {
    animation: toastSlideIn 0.4s var(--ease-expo);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* --- Footer polish --- */
.site-footer {
    border-top: 1px solid var(--border-default);
    padding: 2rem 0;
    color: var(--foreground-muted);
    font-size: 0.82rem;
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   DASHBOARD RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 1023px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-list {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .page-panel {
        padding: 1.75rem;
    }
    
    .page-panel .card,
    .dashboard-panel .card {
        padding: 1.25rem;
    }
    
    .info-card strong {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .page-panel {
        padding: 1.25rem;
    }
    
    .tab-list {
        gap: 0.25rem;
        padding: 0.3rem;
    }
    
    .tab {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-head {
        flex-direction: column;
        gap: 1rem;
    }
    
    .inline-form {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 0.7rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .form-card {
        padding: 1.25rem;
    }
}
