/**
 * Barangay Pasong Buaya 2 Health Monitoring System
 * Main Stylesheet - Green and White Theme
 */

/* ===== Font Face (self-hosted) ===== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    /* Deep green palette from provided scheme */
    --primary-green: #4a7330;        /* main action / buttons */
    --primary-green-dark: #213416;   /* headings, sidebar, strong accents */
    --primary-green-light: #6fad48;  /* lighter surfaces / highlights */
    --secondary-green: #375624;      /* secondary elements */
    --accent-lime: #4e7932;          /* subtle accent / badges */
    --accent-mint: #f4f9f1;          /* very light green-tinted background */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --dark-gray: #666666;
    --text-dark: #333333;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-soft: 0 15px 35px rgba(45, 134, 89, 0.15);
    --shadow-strong: 0 30px 60px rgba(31, 93, 63, 0.25);
    --sidebar-width: 250px;
    --header-height: 70px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(circle at top left, rgba(45, 134, 89, 0.22), transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(77, 175, 124, 0.25), transparent 65%),
        radial-gradient(circle at 80% 20%, rgba(111, 173, 72, 0.18), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(61, 168, 112, 0.15), transparent 60%),
        radial-gradient(ellipse at 10% 50%, rgba(74, 115, 48, 0.12), transparent 45%),
        linear-gradient(135deg, #f7fff9 0%, #e5fff0 30%, #f0fdf4 60%, #f7fff9 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 168, 112, 0.2) 0%, rgba(61, 168, 112, 0.1) 50%, transparent 100%);
    filter: blur(100px);
    z-index: -2;
    animation: float 20s ease-in-out infinite;
}

body::before {
    top: -150px;
    left: -120px;
    animation-delay: 0s;
}

body::after {
    bottom: -170px;
    right: -150px;
    background: radial-gradient(circle, rgba(47, 135, 90, 0.25) 0%, rgba(47, 135, 90, 0.15) 50%, transparent 100%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 55%) no-repeat,
                linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 30% 70% 40% 60%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(0px);
    animation: float 12s ease-in-out infinite;
}

.login-page::before {
    top: 10%;
    left: 15%;
}

.login-page::after {
    bottom: 5%;
    right: 10%;
    animation-delay: 3s;
}

.login-container {
    width: 100%;
    max-width: 520px; /* slightly wider card */
    padding: 20px;
}

.login-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-header p {
    color: var(--dark-gray);
    font-size: 14px;
}

/* ===== Public Homepage ===== */

/* Top navigation bar inspired by DOH / government portals */
.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.site-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-brand-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-brand-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.site-brand-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green-dark);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.site-nav-link {
    color: var(--dark-gray);
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.site-nav-link:hover {
    background: rgba(45, 134, 89, 0.08);
    color: var(--primary-green-dark);
}

.site-datetime {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(70, 64, 64, 0.85);
    font-weight: 500;
    background: rgba(21, 83, 21, 0.411);
    padding: 6px 18px;
    border-radius: 999px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.15);
}

.datetime-divider {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .site-topbar-inner {
        flex-direction: column;
        gap: 12px;
    }

    .site-datetime {
        width: 100%;
        justify-content: center;
    }
}

body.public-home {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 55%) no-repeat,
                linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 16px 0;
    margin: 0;
    overflow-x: hidden;
}

.homepage-main {
    width: 100%;
    max-width: 1100px;
    margin: 24px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.homepage-carousel {
    position: relative;
    margin-bottom: 40px;
}

.homepage-carousel .carousel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(10, 38, 22, 0.35);
    background: #0d2c1c;
}

.homepage-carousel .carousel-inner {
    position: relative;
}

.homepage-carousel .carousel-item {
    display: none;
}

.homepage-carousel .carousel-item.active {
    display: block;
}

.homepage-carousel img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
}

.hero-contact-info {
    position: absolute;
    top: 0;
    right: -320px;
    width: 300px;
    background: #e8f5e9;
    border-radius: 28px;
    padding: 24px;
    color: #155724;
    box-shadow: 0 30px 50px rgba(10, 38, 22, 0.35);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
    z-index: 10;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #155724;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
}

.contact-label {
    font-size: 12px;
    color: #155724;
    font-weight: 500;
    opacity: 0.8;
}

.contact-value {
    font-size: 13px;
    color: #155724;
    font-weight: 600;
}

/* Dashboard Hotlines */
.dashboard-hotlines {
    margin-top: 30px;
}

.hotlines-card {
    background: #e8f5e9;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hotlines-card .contact-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hotlines-card .contact-section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #155724;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hotlines-card .contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
}

.hotlines-card .contact-label {
    font-size: 12px;
    color: #155724;
    font-weight: 500;
    opacity: 0.8;
}

.hotlines-card .contact-value {
    font-size: 13px;
    color: #155724;
    font-weight: 600;
}

.homepage-carousel .carousel-control-prev,
.homepage-carousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.homepage-carousel .carousel-control-prev { left: 20px; }
.homepage-carousel .carousel-control-next { right: 20px; }

.homepage-carousel .carousel-control-prev-icon,
.homepage-carousel .carousel-control-next-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.homepage-carousel .carousel-control-prev-icon {
    transform: rotate(-135deg);
}

.homepage-carousel .carousel-control-next-icon {
    transform: rotate(45deg);
}

.homepage-carousel .carousel-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
}

.homepage-carousel .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.homepage-carousel .carousel-indicator.active {
    background: #f4ffe2;
    transform: scale(1.3);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-slider {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto 0;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, #11341c, #1e5b34);
}

.hero-slides {
    position: relative;
}

.hero-slide {
    display: none;
    min-height: 320px;
    color: #f6fff1;
}

.hero-slide.active {
    display: block;
    position: relative;
    padding: 50px;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 55%),
                linear-gradient(135deg, rgba(9, 42, 25, 0.88), rgba(18, 78, 44, 0.8));
    filter: blur(0px);
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    max-width: 70%;
}

.hero-slide-tag {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.hero-slide h2 {
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-slide p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-slide-cta {
    margin-top: 20px;
    background: #fff;
    color: var(--primary-green-dark);
    border: none;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.hero-slide-cta:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-green-dark);
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.hero-indicator.active {
    width: 30px;
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 768px) {
    .hero-slide.active {
        padding: 30px;
    }

    .hero-slide-content {
        max-width: 100%;
    }

    .hero-slide h2 {
        font-size: 24px;
    }

    .hero-control {
        width: 38px;
        height: 38px;
    }
}

/* ===== Disease Topics Section ===== */
.disease-topics-section {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 30px 16px 40px;
    background: #ffffff;
    border-radius: 12px;
}

.disease-topics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.disease-topics-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.disease-topics-see-all {
    font-size: 14px;
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.disease-topics-see-all:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

.disease-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.disease-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.disease-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.disease-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.disease-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.disease-card:hover .disease-card-image img {
    transform: scale(1.05);
}

.disease-card-content {
    padding: 20px;
}

.disease-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.disease-card-link {
    font-size: 14px;
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.disease-card-link:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .disease-topics-section {
        margin-top: 30px;
        padding: 24px 12px 30px;
        background: #ffffff;
        border-radius: 12px;
    }

    .disease-topics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .disease-topics-title {
        font-size: 20px;
    }

    .disease-topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .disease-card-image {
        height: 180px;
    }
}

/* ===== Announcements Section (Homepage) ===== */
.announcements-section {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 30px 16px 40px;
    background: #ffffff;
    border-radius: 12px;
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.announcements-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.announcements-see-all {
    font-size: 14px;
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.announcements-see-all:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

.announcements-grid-wrapper {
    position: relative;
    max-height: 850px;
    overflow: hidden;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.announcements-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.95) 85%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.announcement-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.announcement-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.announcement-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-card-image img {
    transform: scale(1.05);
}

.announcement-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-size: 14px;
}

.announcement-card-content {
    padding: 20px;
}

.announcement-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.announcement-card-date {
    font-size: 13px;
    color: #666;
}

.announcement-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

.announcements-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.announcement-detail-section {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 30px 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-detail-header {
    margin-bottom: 24px;
    padding: 0;
}

.announcement-detail-header .btn {
    margin-bottom: 20px;
    display: inline-block;
}

.announcement-detail-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    padding: 0;
    line-height: 1.3;
}

.announcement-detail-date {
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 1.5;
}

.announcement-detail-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-detail-image-wrapper {
    margin-bottom: 24px;
}

.announcement-detail-image {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.announcement-detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-line;
}

@media (max-width: 768px) {
    .hero-contact-info {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 20px;
        padding: 24px 20px;
    }

    .contact-section-title {
        font-size: 16px;
    }

    .contact-label {
        font-size: 13px;
    }

    .contact-value {
        font-size: 15px;
    }

    .announcements-section {
        margin-top: 30px;
        padding: 24px 12px 30px;
    }

    .announcements-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .announcements-title {
        font-size: 20px;
    }

    .announcements-grid-wrapper {
        max-height: 1200px;
    }

    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .announcements-fade-overlay {
        height: 120px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.95) 85%, rgba(255, 255, 255, 1) 100%);
    }

    .announcement-card-image {
        height: 180px;
    }

    .announcement-detail-header h1 {
        font-size: 24px;
    }

    .announcement-detail-card {
        padding: 20px;
    }
}

.homepage-wrapper {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 255, 249, 0.96) 100%);
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    padding: 40px 48px 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    margin: 0 auto;
}

.homepage-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.homepage-logo {
    width: 260px;
    height: auto;
    object-fit: contain;
}

.homepage-hero h1 {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--primary-green-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 720px;
}

.hero-cta {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn-main,
.hero-btn-secondary {
    min-width: 140px;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 1px solid rgba(45, 134, 89, 0.5);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 20px rgba(45, 134, 89, 0.22);
}

.homepage-section {
    margin-top: 32px;
}

.homepage-section h2 {
    font-size: 20px;
    color: var(--primary-green-dark);
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 255, 240, 0.9);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--primary-green-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.problem-box,
.solution-box {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 255, 240, 0.9);
}

.problem-box h3,
.solution-box h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--primary-green-dark);
}

.problem-box p,
.solution-box p {
    font-size: 14px;
    color: var(--text-muted);
}

.homepage-footer {
    margin-top: 28px;
    padding-top: 12px;
    border-top: 1px solid rgba(45, 134, 89, 0.12);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .homepage-wrapper {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .homepage-hero h1 {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}

/* ===== Form Styles ===== */
.form-tabs {
    display: inline-flex;
    background-color: var(--accent-mint);
    padding: 4px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1 1 auto;
    padding: 8px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--dark-gray);
    transition: all 0.3s;
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row-2 .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(45, 134, 89, 0.25);
    border-radius: 10px;
    font-size: 14px;
    transition: border 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.9);
}

/* Password toggle button */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    opacity: 1;
    color: var(--primary-green);
}

.password-toggle:active {
    opacity: 0.8;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(61, 168, 112, 0.15), 
                inset 0 0 10px rgba(45, 134, 89, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Registration form grid for more landscape layout on larger screens */
.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 14px;
}

.register-grid .form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .register-grid {
        grid-template-columns: 1fr;
    }

    .register-grid .form-group.full-width {
        grid-column: auto;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }

    .form-row-2 .form-group {
        margin-bottom: 12px;
    }
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(45, 134, 89, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(45, 134, 89, 0.35);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
}

.btn-secondary {
    background: linear-gradient(135deg, #7a7a7a, var(--dark-gray));
    color: var(--white);
}

.btn-secondary:hover {
    filter: brightness(1.05);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #2ecc71);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #ffd25a);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #33b5e5);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ===== Alerts ===== */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-soft);
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ===== Layout ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-green-dark), var(--primary-green));
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 10px 0 30px rgba(31, 93, 63, 0.2);
}

.sidebar-header {
    padding: 20px 18px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-brand-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
    white-space: nowrap;
}

.sidebar-brand-title {
    font-size: 13px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--white);
    transition: background-color 0.3s, transform 0.2s;
    border-left: 3px solid transparent;
    position: relative;
    isolation: isolate;
}

.nav-item::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.nav-item:hover {
    transform: translateX(4px);
}

.nav-item:hover::after {
    opacity: 1;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-left-color: var(--accent-lime);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
}

.nav-item span {
    margin-right: 10px;
    font-size: 18px;
}

/* ===== Main Content ===== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: calc(100vh - 200px);
    background: 
        radial-gradient(ellipse at top right, rgba(111, 173, 72, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(74, 115, 48, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(61, 168, 112, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(244, 249, 241, 0.7) 0%, rgba(229, 255, 240, 0.85) 50%, rgba(240, 253, 244, 0.75) 100%);
    position: relative;
    overflow: visible;
    padding-bottom: 40px;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(77, 175, 124, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(45, 134, 89, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(111, 173, 72, 0.12) 0%, transparent 40%),
        linear-gradient(45deg, rgba(74, 115, 48, 0.08) 0%, transparent 35%),
        linear-gradient(225deg, rgba(61, 168, 112, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: mainGradientShift 20s ease-in-out infinite;
}

.main-content::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 173, 72, 0.2) 0%, rgba(77, 175, 124, 0.1) 50%, transparent 80%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: mainGradientOrb 35s ease-in-out infinite;
}

@keyframes mainGradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@keyframes mainGradientOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(80px, -60px) scale(1.3);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50px, 100px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(60px, 40px) scale(1.1);
        opacity: 0.7;
    }
}

.content-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(45, 134, 89, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.content-header h1 {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: linear-gradient(135deg, var(--danger) 0%, #ff6b6b 100%);
    color: var(--white);
}

.badge-health_worker {
    background: linear-gradient(135deg, var(--info) 0%, #33b5e5 100%);
    color: var(--white);
}

.badge-resident {
    background: linear-gradient(135deg, var(--success) 0%, #2ecc71 100%);
    color: var(--white);
}

/* ===== Dashboard ===== */
.dashboard-content {
    padding: 40px;
    position: relative;
    background: 
        radial-gradient(circle at 5% 15%, rgba(74, 115, 48, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 95% 85%, rgba(111, 173, 72, 0.28) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(61, 168, 112, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse at 25% 75%, rgba(77, 175, 124, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 25%, rgba(45, 134, 89, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(244, 249, 241, 0.85) 0%, rgba(229, 255, 240, 0.95) 30%, rgba(240, 253, 244, 0.9) 60%, rgba(247, 255, 249, 0.88) 100%);
    min-height: calc(100vh - var(--header-height) - 200px);
    overflow: hidden;
    padding-bottom: 60px;
}

.dashboard-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(111, 173, 72, 0.25) 0%, rgba(77, 175, 124, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: gradientFloat1 25s ease-in-out infinite;
}

.dashboard-content::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(74, 115, 48, 0.28) 0%, rgba(45, 134, 89, 0.18) 45%, transparent 75%);
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
    animation: gradientFloat2 30s ease-in-out infinite;
}

@keyframes gradientFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% {
        transform: translate(50px, 80px) scale(1.2);
        opacity: 1;
    }
    66% {
        transform: translate(-30px, -50px) scale(0.9);
        opacity: 0.7;
    }
}

@keyframes gradientFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.75;
    }
    33% {
        transform: translate(-60px, -70px) scale(1.15);
        opacity: 0.95;
    }
    66% {
        transform: translate(40px, 60px) scale(0.85);
        opacity: 0.65;
    }
}

.dashboard-content > * {
    position: relative;
    z-index: 1;
}

.dashboard-two-column {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-right {
    position: sticky;
    top: 20px;
}

@media (max-width: 1024px) {
    .dashboard-two-column {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        position: static;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.12) 0%, rgba(61, 168, 112, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-strong);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 42px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-mint) 0%, rgba(143, 209, 158, 0.3) 100%);
    border-radius: 18px;
    color: var(--primary-green);
    box-shadow: inset 0 0 0 1px rgba(45, 134, 89, 0.12);
    animation: float 6s ease-in-out infinite;
}

.stat-info h3 {
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--dark-gray);
    font-size: 14px;
}

/* ===== Quick Actions ===== */
.quick-actions {
    margin-top: 30px;
}

.quick-actions h2 {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.35s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.action-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 168, 112, 0.15) 0%, rgba(45, 134, 89, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: -1;
}

.action-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-strong);
    color: var(--white);
}

.action-card:hover::after {
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
}

.action-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.action-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.action-card p {
    font-size: 14px;
    color: var(--dark-gray);
}

.action-card:hover p {
    color: var(--white);
}

/* ===== Tables ===== */
.inventory-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-width: 280px;
}
.inventory-name .name-text {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inventory-name .desc-text {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
    vertical-align: middle;
}

table th {
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    color: var(--white);
    font-weight: 600;
    border-bottom: none;
}

table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.06) 0%, rgba(45, 134, 89, 0.04) 100%);
}

table tbody tr:hover {
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.15) 0%, rgba(61, 168, 112, 0.1) 100%);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.data-table th {
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.1) 0%, rgba(61, 168, 112, 0.08) 100%);
    font-weight: 600;
    color: var(--primary-green-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tbody tr.expired {
    background: rgba(220, 53, 69, 0.1);
}

.data-table tbody tr.warning {
    background: rgba(255, 193, 7, 0.1);
}

.data-table tbody tr:hover {
    background: rgba(45, 134, 89, 0.08);
}

.data-table tbody tr.expired:hover {
    background: rgba(220, 53, 69, 0.15);
}

.data-table tbody tr.warning:hover {
    background: rgba(255, 193, 7, 0.15);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Cards ===== */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray);
}

.card-header h2 {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

/* ===== Forms ===== */
.form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ===== QR Code ===== */
.qr-container {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-soft);
}

.qr-code-img {
    max-width: 300px;
    margin: 20px auto;
    display: block;
}

.scanner-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-soft);
}

#video {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin: 20px 0;
}

#scanner-canvas {
    display: none;
}

/* ===== Status Badges ===== */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.status-pending {
    background: linear-gradient(135deg, var(--warning) 0%, #ffd25a 100%);
    color: var(--text-dark);
}

.status-approved,
.status-active {
    background: linear-gradient(135deg, var(--success) 0%, #2ecc71 100%);
    color: var(--white);
}

.status-declined,
.status-inactive {
    background: linear-gradient(135deg, var(--danger) 0%, #ff6b6b 100%);
    color: var(--white);
}

.status-completed {
    background: linear-gradient(135deg, var(--info) 0%, #33b5e5 100%);
    color: var(--white);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: none;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stats-grid,
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: scroll;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        background: var(--primary-green);
        color: var(--white);
        border: none;
        padding: 12px 14px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        width: 48px;
        height: 48px;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--primary-green-dark);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-toggle span {
        display: block;
        line-height: 1;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.elevated {
    box-shadow: var(--shadow-strong);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* ===== Modal Dialog ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal-dialog {
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    max-width: 640px; /* wider like the sample registration card */
    width: 95%;
    max-height: 90vh; /* keep card within viewport */
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.20);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    overflow-y: auto; /* let whole card scroll so footer/Close never clip */
    scrollbar-width: none; /* Firefox - hide scrollbar but keep scroll */
}

.modal-dialog::-webkit-scrollbar {
    display: none; /* WebKit - hide scrollbar but keep scroll */
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--white);
    padding: 18px 30px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    flex: 1;
}

.modal-header button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

.modal-header button:hover {
    color: var(--white);
}

.modal-body {
    padding: 30px 30px 26px;
    text-align: left;
}

@media (max-width: 576px) {
    .modal-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }

    .modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0 8px;
        border-radius: 16px;
        max-height: calc(100vh - 40px);
    }
}

.modal-body p {
    color: var(--text-dark);
    font-size: 16px;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.modal-footer {
    padding: 16px 30px 20px;
    border-top: 1px solid var(--gray);
    display: flex;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--light-gray) 0%, rgba(245, 245, 245, 0.8) 100%);
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.modal-btn-cancel {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--gray);
}

.modal-btn-cancel:hover {
    background: var(--gray);
    color: var(--white);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.4);
}

/* ===== Announcements (Resident view) ===== */
.announcements-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.announcement-item {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.announcement-item-image {
    width: 100%;
    max-height: 260px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.announcement-description {
    min-height: 120px;
}

.announcement-see-more {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
}

.announcement-see-more::after {
    content: '›';
    font-size: 16px;
    line-height: 1;
}

.announcement-see-more:hover {
    color: var(--primary-green-dark);
}

.announcement-detail-card {
    max-width: 960px;
    margin: 0 auto;
}

.announcement-detail-body {
    padding: 30px 34px;
}

.announcement-detail-image-wrapper {
    margin-bottom: 20px;
}

.announcement-detail-image {
    width: 100%;
    max-height: 380px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.announcement-detail-text {
    white-space: pre-line;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== Admin Available Schedule Calendar ===== */
.schedule-calendar-container {
    padding: 20px 24px;
}

.schedule-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.schedule-month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-calendar-title {
    font-weight: 600;
    font-size: 18px;
}

.schedule-month-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.schedule-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 10px;
}

.schedule-calendar th,
.schedule-calendar td {
    border: 1px solid #e4e4e4;
    padding: 0;
    vertical-align: top;
}

.schedule-calendar th {
    background: #f5f7f5;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 6px 0;
}

.schedule-calendar td.empty {
    background: #fafafa;
}

.schedule-day-btn {
    width: 100%;
    height: 120px;
    padding: 4px 4px 6px;
    border: none;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.schedule-day-btn:hover {
    background: #f5fbff;
    box-shadow: inset 0 0 0 1px #c8e5ff;
}

.schedule-day-btn.is-past {
    cursor: default;
    background: #fafafa;
    color: #bbb;
}

.schedule-day-btn.is-past:hover {
    background: #fafafa;
    box-shadow: none;
}

.schedule-day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.schedule-slot {
    font-size: 11px;
    padding: 4px 4px;
    border-radius: 3px;
    background: #f2f2f2;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-slot span {
    font-weight: 600;
}

.schedule-slot.has-slots {
    background: #1990ff;
    color: #ffffff;
}

.schedule-slot.has-slots strong {
    font-weight: 600;
}

.schedule-note {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.schedule-editor {
    border-top: 1px solid #e4e4e4;
    padding: 16px 24px 20px;
    background: #fafafa;
}

.available-slots-section {
    margin-top: 10px;
}

.selected-slot-summary {
    margin-bottom: 12px;
    font-size: 14px;
}

.available-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.available-slot-card {
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 12px;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.slot-date-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-green-dark);
}

.slot-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.slot-choice-btn {
    flex: 1;
    min-width: 90px;
    border-radius: 999px;
    border: 1px solid var(--primary-green-light);
    background: #ffffff;
    color: var(--primary-green-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.slot-choice-btn:hover {
    background: rgba(24, 122, 67, 0.08);
}

.slot-choice-btn.active {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
    box-shadow: 0 6px 16px rgba(24, 122, 67, 0.28);
}

.slot-choice-btn.disabled {
    cursor: not-allowed;
    background: #f2f2f2;
    color: #999;
    border-color: #e0e0e0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .announcements-list {
        grid-template-columns: 1fr;
    }

    .announcement-item-image {
        max-height: 220px;
    }
}

/* ===== Site Footer ===== */
.site-footer {
    background: #ffffff;
    border-top: none;
    margin-top: 60px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    position: relative;
    clear: both;
}

/* Full-width footer for public homepage */
body.public-home .site-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Footer for dashboard pages - positioned after sidebar */
body:not(.public-home) .site-footer {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    margin-right: 0;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    width: 100%;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-branding {
    gap: 20px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-republic {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.footer-department {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green-dark);
    margin-top: 4px;
}

.footer-department-filipino {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin: 12px 0;
}

.footer-tagline strong {
    font-size: 14px;
    color: var(--primary-green-dark);
}

.footer-social-text {
    font-size: 12px;
    color: #666;
    margin-top: 12px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: var(--primary-green-light);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-list li {
    margin: 0;
}

.footer-link-list a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-list a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.footer-contact {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.footer-contact p {
    margin: 0 0 12px 0;
}

.footer-contact strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--primary-green);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background: #f8f8f8;
    border-top: none;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    position: relative;
    width: 100%;
}

.footer-bottom::before {
    display: none;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-republic-seal {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
}

.footer-bottom-left p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.footer-bottom-center,
.footer-bottom-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.footer-bottom-center p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.footer-gov-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-gov-links a {
    font-size: 12px;
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-gov-links a:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

.footer-gov-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-gov-list li {
    margin: 0;
}

.footer-gov-list a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-gov-list a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 30px 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        padding: 24px 16px;
    }

    .footer-social-icons {
        flex-wrap: wrap;
    }
}

/* ===== Print Styles ===== */
.print-report-header {
    display: none;
}

@media print {
    /* Hide UI elements / chrome */
    .sidebar,
    .site-topbar,
    .site-footer,
    .mobile-menu-toggle,
    .content-header,
    .btn,
    .action-cards,
    .modal-overlay {
        display: none !important;
    }

    /* Show print header with white background - ensure visibility */
    .print-report-header {
        display: block !important;
        visibility: visible !important;
        background: #ffffff !important;
        margin: 0 0 20px 0 !important;
        padding: 15px 0 !important;
        border-bottom: 2px solid #000000 !important;
        width: 100% !important;
        position: relative !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Ensure header is visible in print area */
    .reports-print-area > .print-report-header {
        display: block !important;
        visibility: visible !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    .print-report-header-inner {
        display: flex !important;
        visibility: visible !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .print-report-logo {
        display: block !important;
        visibility: visible !important;
        flex-shrink: 0 !important;
    }

    .print-report-logo img {
        display: block !important;
        visibility: visible !important;
        width: 60px !important;
        height: 60px !important;
        object-fit: contain !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-report-text {
        display: flex !important;
        visibility: visible !important;
        flex-direction: column !important;
        justify-content: center !important;
        flex: 1 !important;
    }

    .print-report-line {
        display: block !important;
        visibility: visible !important;
        font-size: 12px !important;
        font-weight: normal !important;
        color: #000000 !important;
        margin: 0 !important;
        line-height: 1.4 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
    }

    .print-report-title {
        display: block !important;
        visibility: visible !important;
        font-size: 18px !important;
        font-weight: bold !important;
        color: #000000 !important;
        margin: 0 !important;
        line-height: 1.4 !important;
    }

    /* Excel-like clean background */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-family: Arial, sans-serif !important;
    }

    .wrapper,
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .main-content .print-report-header {
        display: block !important;
        visibility: visible !important;
    }

    .dashboard-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    /* Hide all non-data elements */
    .reports-print-area .stats-grid,
    .reports-print-area .card-header,
    .reports-print-area h2,
    .reports-print-area .stat-card,
    .reports-print-area .stat-icon {
        display: none !important;
    }

    /* Excel-like table styling - pure data grid */
    .reports-print-area .card,
    .reports-print-area .table-container {
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .reports-print-area table {
        width: 100% !important;
        border-collapse: collapse !important;
        border: 1px solid #000000 !important;
        margin: 10px 0 !important;
        page-break-inside: avoid;
    }

    /* Excel-like cells - all borders visible */
    .reports-print-area table th,
    .reports-print-area table td {
        border: 1px solid #000000 !important;
        padding: 4px 6px !important;
        color: #000000 !important;
        background: #ffffff !important;
        font-size: 11px !important;
        text-align: left !important;
        vertical-align: middle !important;
    }

    /* Excel-like header row */
    .reports-print-area table thead th {
        font-weight: bold !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }

    /* Remove all styling from badges, icons, etc. */
    .reports-print-area .status-badge {
        border: none !important;
        background: transparent !important;
        color: #000000 !important;
        padding: 0 !important;
        font-weight: normal !important;
    }

    /* Remove any text-center styling for data */
    .reports-print-area .text-center {
        text-align: left !important;
    }

    /* Ensure no page breaks inside tables */
    .reports-print-area table tr {
        page-break-inside: avoid;
    }
}

