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

:root {
    /* Mapped from dynamic PHP injection in header.php */
    --primary:          var(--brand-primary, #E91E63);
    --primary-hover:    color-mix(in srgb, var(--brand-primary, #E91E63) 80%, black);
    --primary-light:    color-mix(in srgb, var(--brand-primary, #E91E63) 15%, white);
    --primary-gradient: linear-gradient(135deg, var(--brand-primary, #E91E63), color-mix(in srgb, var(--brand-primary, #E91E63) 70%, #FF4081));
    --secondary: #495057;
    --dark: #212529;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --success: #2EC4B6;
    --warning: #FF9F1C;
    --danger: #FF3366;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(233, 30, 99, 0.15);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --font: 'Roboto', sans-serif;
    --heading-font: 'Merriweather', serif;

    /* ── Override Bootstrap 5 CSS variables ── */
    --bs-primary:          var(--brand-primary, #E91E63);
    --bs-link-color:       var(--brand-primary, #E91E63);
    --bs-link-hover-color: color-mix(in srgb, var(--brand-primary, #E91E63) 80%, black);
    --bs-border-color:     rgba(233, 30, 99, 0.18);
    --bs-focus-ring-color: rgba(233, 30, 99, 0.25);
}

:root {
    /* Mapped from dynamic PHP injection in header.php */
    --primary:          var(--brand-primary, #E91E63);
    --primary-hover:    color-mix(in srgb, var(--brand-primary, #E91E63) 80%, black);
    --primary-light:    color-mix(in srgb, var(--brand-primary, #E91E63) 15%, white);
    --primary-gradient: linear-gradient(135deg, var(--brand-primary, #E91E63), color-mix(in srgb, var(--brand-primary, #E91E63) 70%, #FF4081));
    --secondary: #495057;
    --dark: #212529;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --success: #2EC4B6;
    --warning: #FF9F1C;
    --danger: #FF3366;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(233, 30, 99, 0.15);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --font: 'Outfit', sans-serif;

    /* ── Override Bootstrap 5 CSS variables ── */
    --bs-primary:          var(--brand-primary, #E91E63);
    --bs-link-color:       var(--brand-primary, #E91E63);
    --bs-link-hover-color: color-mix(in srgb, var(--brand-primary, #E91E63) 80%, black);
    --bs-border-color:     rgba(233, 30, 99, 0.18);
    --bs-focus-ring-color: rgba(233, 30, 99, 0.25);
}

body {
    font-family: var(--font);
    background-color: #FAFAFB;
    color: var(--dark);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
    background: #FF80AB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography & Layout overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    font-family: var(--heading-font);
}

/* Text animations */
@keyframes slideIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.animate-text {
    animation: slideIn 1s ease-out forwards;
}
.animate-subtitle {
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-gradient {
    background: var(--primary-gradient) !important;
}

/* Glassmorphism Cards */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.12);
}

/* Standard Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
    transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #D81B60, #EC407A);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* Header & Navbar Styling */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    border-bottom: none !important;
    transition: all 0.3s ease;
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
    position: relative;
    z-index: 1000;
    overflow: visible;
}
.navbar .container {
    overflow: visible;
}
.navbar-brand {
    font-weight: 800;
    color: #fff !important;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 95px;
    white-space: nowrap;
}
.navbar-logo-floating {
    height: 90px !important;
    width: 90px !important;
    object-fit: contain;
    background: #ffffff;
    padding: 5px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-30%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
}
.navbar-logo-floating:hover {
    transform: translateY(-30%) scale(1.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.navbar-brand-text {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    padding: 6px 12px !important;
    font-size: 0.9rem;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 8px;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.04) 0%, rgba(255, 64, 129, 0.08) 100%);
    padding: 80px 0 80px 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233,30,99,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* ── Hero Animations ── */

/* Typewriter title */
.hero-title-animated {
    font-family: var(--heading-font);
    color: var(--dark);
    min-height: 1.2em;
    border-right: 3px solid var(--primary);
    display: inline-block;
    animation: cursorBlink 0.7s step-end infinite;
    background: linear-gradient(135deg, #1a1a2e 0%, #E91E63 50%, #1a1a2e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title-animated.typing-done {
    border-right-color: transparent;
    animation: shimmerText 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
}

@keyframes cursorBlink {
    0%, 100% { border-right-color: var(--primary); }
    50% { border-right-color: transparent; }
}

@keyframes shimmerText {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 0px transparent); }
    50% { filter: drop-shadow(0 0 12px rgba(233, 30, 99, 0.25)); }
}

/* Staggered fade-in for other elements */
.hero-fade {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtitle shimmer after fade-in */
#heroSubtitle {
    position: relative;
}
#heroSubtitle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), #FF4081, var(--primary));
    animation: underlineGrow 1s ease-out 3.3s forwards;
}

@keyframes underlineGrow {
    0% { width: 0; }
    100% { width: 60%; }
}

/* Digital Member ID Card */
.member-card-wrapper {
    max-width: 420px;
    margin: 0 auto;
    perspective: 1000px;
}
.member-card {
    background: linear-gradient(135deg, #2E1A23 0%, #4D1A2E 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 64, 129, 0.25);
    position: relative;
    overflow: hidden;
}
.member-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.member-card-logo {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}
.member-card-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}
.member-card-details {
    font-size: 0.85rem;
    color: #CCCCCC;
}
.member-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}
.member-card-status {
    background: rgba(233, 30, 99, 0.2);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 2px 10px;
    font-size: 0.75rem;
    color: #FF80AB;
    display: inline-block;
}

/* Event List Cards */
.event-date-badge {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    min-width: 65px;
}

/* Timeline */
.timeline {
    border-left: 3px solid var(--primary-light);
    padding-left: 20px;
    margin-left: 10px;
}
.timeline-item {
    position: relative;
    margin-bottom: 25px;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary);
    left: -29px;
    top: 5px;
    border: 3px solid #FFF;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Gallery Hover Image Effects */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.gallery-img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(233, 30, 99, 0.85) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--white);
}
.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Footer Section */
.footer-section {
    background-color: #241A1E;
    color: #A0A5B5;
    padding: 70px 0 30px 0;
    border-top: 5px solid var(--primary);
}
.footer-section h5 {
    color: var(--white);
    margin-bottom: 20px;
}
.footer-link {
    color: #A0A5B5;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: var(--primary);
}
.footer-social-icon {
    font-size: 1.25rem;
    color: #A0A5B5;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.footer-social-icon:hover {
    color: var(--primary);
}


/* ================================================
   BOOTSTRAP BLUE → PINK COMPREHENSIVE OVERRIDES
   All Bootstrap default blue (#0d6efd) replaced with
   the brand pink (#E91E63) throughout the site.
================================================ */

/* -- Links ---------------------------------------- */
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

/* -- Form focus rings ----------------------------- */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(233, 30, 99, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.15) !important;
    outline: none;
}
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.form-switch .form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* -- Input-group text ----------------------------- */
.input-group-text { border-color: #dee2e6; }

/* -- Badges --------------------------------------- */
.badge.bg-primary { background-color: var(--primary) !important; }
.badge.bg-primary-light { background-color: var(--primary-light) !important; }
.badge.bg-secondary { background-color: #6c757d !important; }
.badge.bg-info { background-color: var(--primary) !important; }

/* -- Alerts --------------------------------------- */
.alert-info {
    background-color: var(--primary-light) !important;
    border-color: rgba(233, 30, 99, 0.25) !important;
    color: #880E4F !important;
}
.alert-primary {
    background-color: var(--primary-light) !important;
    border-color: rgba(233, 30, 99, 0.3) !important;
    color: #880E4F !important;
}

/* -- Pagination ----------------------------------- */
.page-link {
    color: var(--primary);
    border-color: rgba(233, 30, 99, 0.2);
}
.page-link:hover {
    color: var(--primary-hover);
    background-color: var(--primary-light);
    border-color: rgba(233, 30, 99, 0.35);
}
.page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* -- Progress bars -------------------------------- */
.progress-bar {
    background-color: var(--primary) !important;
}
.progress-bar.bg-info,
.progress-bar.bg-primary {
    background-color: var(--primary) !important;
}

/* -- Spinners ------------------------------------- */
.spinner-border.text-primary,
.spinner-grow.text-primary { color: var(--primary) !important; }

/* -- Dropdown active links ------------------------ */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary) !important;
    color: #fff;
}

/* -- List group ----------------------------------- */
.list-group-item.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff;
}
.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* -- Tables --------------------------------------- */
.table-primary {
    --bs-table-bg: var(--primary-light);
    --bs-table-border-color: rgba(233, 30, 99, 0.2);
    color: #880E4F;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(233, 30, 99, 0.03);
}
.table > thead {
    background: rgba(233, 30, 99, 0.06);
}

/* -- Accordions ----------------------------------- */
.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background-color: var(--primary-light) !important;
    box-shadow: inset 0 -1px 0 rgba(233, 30, 99, 0.13) !important;
}
.accordion-button:focus {
    border-color: rgba(233, 30, 99, 0.4) !important;
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.15) !important;
}

/* -- Nav tabs / pills ----------------------------- */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--primary);
    border-color: rgba(233, 30, 99, 0.3) rgba(233, 30, 99, 0.3) #fff;
}
.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--primary) !important;
    color: #fff !important;
}
.nav-pills .nav-link {
    color: var(--secondary);
}
.nav-pills .nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* -- Modal ---------------------------------------- */
.modal-header { border-bottom-color: rgba(233, 30, 99, 0.15); }
.modal-footer { border-top-color: rgba(233, 30, 99, 0.15); }

/* -- Breadcrumb ----------------------------------- */
.breadcrumb-item.active { color: var(--primary); }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }

/* -- Btn secondary / info / light overrides ------- */
.btn-info {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
}
.btn-info:hover { background: linear-gradient(135deg, #D81B60, #EC407A); color: #fff; }

/* -- Admin table header fix ----------------------- */
.admin-table table thead {
    background: rgba(233, 30, 99, 0.06) !important;
}

/* -- Stat card border fix ------------------------- */
.stat-card { border-left-color: var(--primary) !important; }

/* -- body bg uniform across all sections ---------- */
body { background-color: #FAFAFB !important; }
.bg-light { background-color: #F3F4F6 !important; }

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════ */

/* ── Tablet & smaller (≤991px) ── */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }
    .navbar-logo-floating {
        height: 60px !important;
        width: 60px !important;
        left: 5px;
        top: 50%;
        transform: translateY(-50%) !important;
        border-width: 2px;
    }
    .navbar-logo-floating:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }
    .navbar-brand {
        padding-left: 70px;
        white-space: normal !important;
        line-height: 1.2;
        max-width: 75% !important;
        display: flex !important;
        align-items: center;
    }
    .navbar-brand-text {
        font-size: 1.18rem !important;
        font-weight: 800 !important;
        letter-spacing: 0;
        white-space: normal !important;
        word-break: break-word;
        display: inline-block;
    }
    .navbar-toggler {
        margin-left: auto;
        z-index: 1002;
    }
    .navbar-collapse {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
        margin: 12px -12px -10px -12px;
        padding: 18px 15px;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    .navbar-nav .nav-link {
        padding: 10px 14px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 8px;
    }
    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        color: #fff !important;
    }
    .navbar-collapse .d-flex {
        margin-top: 12px;
        padding-left: 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    /* Hero adjustments */
    .hero-section {
        padding: 50px 0 40px 0;
    }
    .hero-section::before {
        width: 200px;
        height: 200px;
    }
    .hero-title-animated {
        font-size: 1.8rem !important;
    }
    /* Card padding reduction */
    .card-glass {
        padding: 20px;
    }
    /* Footer padding reduction */
    .footer-section {
        padding: 40px 0 20px 0;
    }
    /* Gallery image height */
    .gallery-img {
        height: 200px;
    }
    /* Member card photo */
    .member-card-photo {
        width: 70px;
        height: 70px;
    }
}

/* ── Small tablets & large phones (≤767px) ── */
@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0 30px 0;
        text-align: center;
    }
    .hero-title-animated {
        font-size: 1.5rem !important;
    }
    #heroSubtitle {
        font-size: 1rem;
    }
    #heroSubtitle::after {
        left: 20%;
    }
    /* Stack event cards better */
    .event-date-badge {
        min-width: 50px;
        padding: 6px;
    }
    h1, .display-4 {
        font-size: 1.6rem !important;
    }
    h2 {
        font-size: 1.35rem;
    }
    h3 {
        font-size: 1.15rem;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Reduce button padding on mobile */
    .btn-primary, .btn-outline-primary {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    /* Table responsiveness */
    .table th, .table td {
        font-size: 0.82rem;
        padding: 10px 8px;
    }
    /* Footer links */
    .footer-section .col-lg-3, .footer-section .col-md-6 {
        margin-bottom: 25px;
    }
    /* Gallery grid */
    .gallery-img {
        height: 180px;
    }
}

/* ── Small phones (≤576px) ── */
@media (max-width: 576px) {
    .navbar {
        padding: 6px 0;
    }
    .navbar-logo-floating {
        height: 48px !important;
        width: 48px !important;
        left: 3px;
        padding: 3px;
    }
    .navbar-brand {
        padding-left: 58px;
        max-width: 70% !important;
    }
    .navbar-brand-text {
        font-size: 1.08rem !important;
        font-weight: 800 !important;
    }
    .hero-section {
        padding: 30px 0 25px 0;
    }
    .hero-section::before {
        display: none;
    }
    .hero-title-animated {
        font-size: 1.25rem !important;
        word-break: break-word;
    }
    #heroSubtitle {
        font-size: 0.9rem;
    }
    /* Card glass smaller padding */
    .card-glass {
        padding: 16px;
        border-radius: 12px;
    }
    .card-glass p {
        font-size: 0.88rem;
    }
    /* Stat counter section */
    .stat-counter {
        font-size: 1.5rem !important;
    }
    /* Login/Register buttons in navbar */
    .navbar-collapse .d-flex a {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }
    /* Member card mobile */
    .member-card {
        padding: 16px;
        border-radius: 14px;
    }
    .member-card-photo {
        width: 60px;
        height: 60px;
    }
    .member-card-name {
        font-size: 1.05rem;
    }
    /* Timeline */
    .timeline {
        padding-left: 15px;
        margin-left: 5px;
    }
    /* Footer */
    .footer-section {
        padding: 30px 0 15px 0;
    }
    .footer-section h5 {
        font-size: 1rem;
    }
    /* Gallery */
    .gallery-img {
        height: 150px;
    }
    .gallery-overlay {
        padding: 12px;
    }
    /* Tables */
    .table-responsive {
        font-size: 0.8rem;
    }
    /* Modal sizing */
    .modal-dialog {
        margin: 10px;
    }
    .modal-body {
        padding: 16px;
    }
    /* General spacing reduction */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    .p-5 {
        padding: 1.25rem !important;
    }
}

/* Print styles (keep last) */
@media print {
    body * { visibility: hidden; }
    .print-area, .print-area * { visibility: visible; }
    .print-area { position: absolute; left: 0; top: 0; width: 100%; }
    .no-print { display: none !important; }
}
