/* ============================================
   SK Barangay Antipolo TIMB - Main Stylesheet
   Light Edition
   ============================================ */

:root {

    /* ========== PRIMARY COLORS ========== */
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;

    /* ========== ACCENT COLORS ========== */
    --accent: #06B6D4;
    --accent-light: #67E8F9;

    /* ========== BACKGROUND COLORS ========== */
    --bg: #f6f8fc;
    --bg-dark: #e9eef6;

    /* ========== CARD COLORS ========== */
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-border: rgba(203, 213, 225, 0.65);

    /* ========== TEXT COLORS ========== */
    --text-primary: #0f172a;   
    --text-secondary: #475569;
    --text-muted: #94a3b8;     
    --text-light: #cbd5e1;    
    --text-inverse: #ffffff;   

    /* ========== STATUS COLORS ========== */

    /* Success */
    --success: #22C55E;
    --success-bg: rgba(34, 197, 94, 0.668);

    /* Warning */
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.10);

    /* Danger */
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.10);

    /* Purple */
    --purple: #8B5CF6;
    --purple-bg: rgba(139, 92, 246, 0.10);

    /* ========== SHADOWS ========== */
    --shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
    --shadow-hover: 0 10px 35px rgba(79, 70, 229, 0.12);

    /* ========== UI ========== */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --transition: 0.3s ease;

    --sidebar-width: 280px;
    --header-height: 70px;
}

/* ========== BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;

    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08), transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(6, 182, 212, 0.08), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(34, 197, 94, 0.06), transparent 45%),
        linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);

    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Table horizontal scroll for mobile */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Better mobile tap response */
button, a, .btn, .btn-icon, .btn-icon-only, .nav-link, select, input, textarea {
    touch-action: manipulation;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;

    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    border-right: 1px solid rgba(226, 232, 240, 0.9);

    color: var(--text-primary);

    z-index: 1000;
    overflow-y: auto;

    transition: transform 0.3s ease;

    display: flex;
    flex-direction: column;

    box-shadow: 4px 0 25px rgba(15, 23, 42, 0.05);
}

.sidebar-brand {
    position: sticky;
    top: 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    margin: 0;
    gap: 12px;
    background: #e5e7eb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.brand-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.brand-subtitle {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.sidebar-user {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.user-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

.user-role {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.sidebar-nav {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}

.sidebar-nav .nav-item {
    padding: 2px 12px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav .nav-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.05));
    color: var(--primary);
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.sidebar-nav .nav-link .badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
}

/* ========== NAVIGATION LINKS ========== */
.navbar {
    background: #e9e9e9a9; /* same as footer */
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
}

.navbar .nav-link {
    position: relative;

    font-size: 14px;
    font-weight: 700 !important;

    color: var(--text-secondary) !important;

    padding: 8px 14px !important;

    border-radius: 10px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

/* Hover Effect */
.navbar .nav-link:hover {
    color: var(--primary) !important;

    background: rgba(37, 99, 235, 0.06);

    transform: translateY(-1px);
}

/* Active/Current Section */
.navbar .nav-link.active {
    color: var(--primary) !important;

    background: rgba(37, 99, 235, 0.08);
}

/* Underline Animation */
.navbar .nav-link::after {
    content: '';

    position: absolute;

    left: 14px;
    bottom: 4px;

    width: 0;
    height: 2px;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--accent)
    );

    transition: width 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: calc(100% - 28px);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #e5e7eb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toggle-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

.page-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-title span {
    color: var(--text-secondary);
    font-weight: 400;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.top-bar-right .btn-icon:hover {
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--primary);
}

.page-content {
    padding: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.btn-icon-only {
    width: 42px;
    height: 42px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 16px;
}

/* make sure gradient button stays clean for icons */
.btn-gradient.btn-icon-only {
    gap: 0; /* remove spacing issues */
}

/* optional hover polish (inherits gradient) */
.btn-gradient.btn-icon-only:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* ========== CARD ========== */
.card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.22s ease;
    overflow: hidden;
}

/* Hover = subtle elevation only */
.card:hover {
    transform: translateY(-4px);

    border-color: rgba(148, 163, 184, 0.6);

    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08);
}

/* ========== CARD HEADER (CLEAN BORDER STYLE) ========== */
.card-header {
    background: #ffffff;

    border-bottom: 1px solid rgba(226, 232, 240, 0.8);

    padding: 14px 18px;

    font-size: 15px;
    font-weight: 700;

    color: var(--text-primary);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== CARD BODY ========== */
.card-body {
    padding: 18px;
}

/* Text hierarchy */
.card h5,
.card h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== SOFT BORDER INTERACTION ========== */
.card:hover {
    border-width: 1.5px;
}

/* Slight separation feel for inner content */
.card .d-flex span {
    color: var(--text-secondary);
}

.card:hover .d-flex span {
    color: var(--text-primary);
}

/* ========== IMAGE CLEAN STYLE ========== */
.card img {
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.card img:hover {
    transform: scale(1.02);
}

/* ===========================
   PROJECT SECTION 
   =========================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-accent {
    width: 5px;
    height: 42px;
    border-radius: 99px;
    background: var(--primary);
}

/* GRID spacing improvement */
.project-grid {
    margin-top: 10px;
}

/* MAIN CARD */
.project-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;

    background: linear-gradient(
        135deg,
        rgba(79, 70, 229, 0.25),
        rgba(6, 182, 212, 0.15),
        rgba(148, 163, 184, 0.2)
    );

    /* mask trick for border only */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0.6;
    pointer-events: none;
}

/* hover = “breathing glow” */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.10);
}

.project-card:hover::before {
    opacity: 1;
}

/* HEADER */
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* DESCRIPTION */
.project-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

/* META ROW */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.project-meta i {
    color: var(--text-muted);
    margin-right: 5px;
}

/* BUTTON */
.btn-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--text-primary);
    transition: 0.2s ease;
    text-decoration: none;
}

.btn-soft:hover {
    background: var(--primary);
    color: #fff;
}

/* IMAGE GRID */
.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.project-images img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s ease;
}

.project-images img:hover {
    transform: scale(1.03);
}

/* MOBILE */
@media (max-width: 768px) {
    .project-images {
        grid-template-columns: 1fr;
    }

    .project-images img {
        height: 200px;
    }
}

/* ===========================
   ANNOUNCEMENT CARDS (MODERN)
   =========================== */

.announcement-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 20px;
    transition: 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* hover */
.announcement-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* header layout */
.announcement-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* icon */
.announcement-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.10);
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* title */
.announcement-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

/* time */
.announcement-time {
    color: var(--text-muted);
    font-size: 12px;
}

/* content */
.announcement-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 8px;
}

/* mobile */
@media (max-width: 768px) {
    .announcement-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Force equal-height stat/project/announcement cards in grid rows */
.row.g-1 > [class*="col-"] > .stat-card,
.row.g-1 > [class*="col-"] > .project-card,
.row.g-1 > [class*="col-"] > .announcement-card,
.row.g-1 > [class*="col-"] > .feedback-card,
.row.g-2 > [class*="col-"] > .stat-card,
.row.g-2 > [class*="col-"] > .project-card,
.row.g-2 > [class*="col-"] > .announcement-card,
.row.g-2 > [class*="col-"] > .feedback-card,
.row.g-3 > [class*="col-"] > .stat-card,
.row.g-3 > [class*="col-"] > .project-card,
.row.g-3 > [class*="col-"] > .announcement-card,
.row.g-3 > [class*="col-"] > .feedback-card,
.row.g-4 > [class*="col-"] > .stat-card,
.row.g-4 > [class*="col-"] > .project-card,
.row.g-4 > [class*="col-"] > .announcement-card,
.row.g-4 > [class*="col-"] > .feedback-card,
.row.g-5 > [class*="col-"] > .stat-card,
.row.g-5 > [class*="col-"] > .project-card,
.row.g-5 > [class*="col-"] > .announcement-card,
.row.g-5 > [class*="col-"] > .feedback-card {
    height: 100%;
}

/* ============================================
   STAT CARD 
   ============================================ */

.stat-card {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03), 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Hover */
.stat-card:hover {
    transform: translateY(-4px);

    border-color: rgba(99, 102, 241, 0.20);

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.06),
        0 18px 40px rgba(79, 70, 229, 0.08);
}

/* ============================================
   ICON
   ============================================ */

.stat-icon {
    width: 62px;
    height: 62px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 24px;

    position: relative;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Floating effect */
.stat-card:hover .stat-icon {
    transform: translateY(-2px) scale(1.05);
}

/* ============================================
   ICON STYLES
   ============================================ */

.stat-icon.blue {
    background: linear-gradient(
        135deg,
        rgba(79, 70, 229, 0.12),
        rgba(99, 102, 241, 0.18)
    );

    color: #4F46E5;
}

.stat-icon.teal {
    background: linear-gradient(
        135deg,
        rgba(6, 182, 212, 0.12),
        rgba(34, 211, 238, 0.18)
    );

    color: #0891B2;
}

.stat-icon.green {
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.12),
        rgba(74, 222, 128, 0.18)
    );

    color: #16A34A;
}

.stat-icon.orange {
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.12),
        rgba(251, 191, 36, 0.18)
    );

    color: #D97706;
}

.stat-icon.purple {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.12),
        rgba(167, 139, 250, 0.18)
    );

    color: #7C3AED;
}

.stat-icon.rose {
    background: linear-gradient(
        135deg,
        rgba(244, 63, 94, 0.12),
        rgba(251, 113, 133, 0.18)
    );

    color: #E11D48;
}

/* ============================================
   CONTENT
   ============================================ */

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    color: var(--text-muted);

    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-size: clamp(20px, 2.2vw, 36px);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -1.2px;

    color: var(--text-primary);

    margin-bottom: 10px;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 13px;
    font-weight: 600;

    color: var(--text-secondary);
}

/* Positive */
.stat-change.positive {
    color: #16A34A;
}

/* Negative */
.stat-change.negative {
    color: #DC2626;
}

/* ============================================
   OPTIONAL MINI TREND INDICATOR
   ============================================ */

.stat-trend {
    position: absolute;

    top: 20px;
    right: 20px;

    font-size: 12px;
    font-weight: 700;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(15, 23, 42, 0.04);

    color: var(--text-secondary);
}


/* ========== BUTTONS ========== */
.btn-gradient {
    background: linear-gradient(
        135deg,
        #a5b4fc,   /* soft indigo pastel */
        #67e8f9    /* soft cyan pastel */
    );

    color: #1e293b;

    border: none;
    border-radius: var(--radius-sm);

    padding: 12px 24px;

    font-weight: 600;
    font-size: 14px;

    transition: var(--transition);

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

/* hover */
.btn-gradient:hover {
    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.22);

    filter: brightness(1.05);
}

/* active */
.btn-gradient:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 22px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 700;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.nav-login-btn i {
    font-size: 16px;
}

.nav-login-btn:hover {
    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(37, 99, 235, 0.24);
}

.nav-login-btn:active {
    transform: translateY(0);
}

/* ========== TABLES ========== */
.table-container {
    border-radius: var(--radius);
    background: #ffffff;

    border: 1px solid rgba(226, 232, 240, 0.9);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);

    overflow: hidden;
}

/* Header */
.table-container .table-header {
    padding: 18px 22px;

    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(226, 232, 240, 0.8);

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.table-container .table-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Table */
.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

/* Header cells */
.table thead th {
    background: #f1f5f9;

    color: #475569;

    font-weight: 700;
    font-size: 12px;

    text-transform: uppercase;
    letter-spacing: 0.5px;

    padding: 14px 16px;

    border-bottom: 1px solid #e2e8f0;
}

/* Body cells */
.table tbody td {
    padding: 14px 16px;

    border-bottom: 1px solid #f1f5f9;

    font-size: 14px;
    color: var(--text-primary);
}

/* Row hover (very subtle) */
.table tbody tr:hover {
    background: #f8fafc;
}

/* No border last row */
.table tbody tr:last-child td {
    border-bottom: none;
}

/* Sticky header */
.table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* ========== FORMS ========== */
.form-control,
.form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-xs);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
    color: var(--text-primary);
}

/* Focus state */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Label */
.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ========== CUSTOM DROPDOWN ICON ========== */
.form-select {
    appearance: none;              /* remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 40px;           /* space for icon */

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* Hover feel */
.form-select:hover {
    border-color: var(--primary-light);
}

/* ========== BADGES ========== */
.badge-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
}

/* Pending - warm amber */
.bg-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.25);
}

/* Ongoing - primary blue */
.bg-ongoing {
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.20);
}

/* Completed - clean success green */
.bg-completed {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.25);
}

/* ========== BREADCRUMB ========== */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.breadcrumb-custom a {
    color: var(--text-secondary);
}

.breadcrumb-custom a:hover {
    color: var(--primary);
}

.breadcrumb-custom .separator {
    color: var(--text-muted);
}

.breadcrumb-custom .current {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========== MODALS ========== */

.modal {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: rgba(15, 23, 42, 0.35);
}

/* MAIN MODAL CONTAINER */
.modal-content {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);

    overflow: hidden;

    animation: modalFade 0.25s ease;
}

/* ENTRY ANIMATION */
@keyframes modalFade {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* HEADER */
.modal-header {
    padding: 18px 22px;

    border-bottom: 1px solid rgba(226, 232, 240, 0.7);

    background: rgba(248, 250, 252, 0.6);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

/* BODY */
.modal-body {
    padding: 22px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* FOOTER */
.modal-footer {
    padding: 16px 22px;

    border-top: 1px solid rgba(226, 232, 240, 0.7);

    background: rgba(248, 250, 252, 0.5);

    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* CLOSE BUTTON */
.modal-content .btn-close {
    opacity: 0.6;
    transition: 0.2s ease;
}

.modal-content .btn-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ========== LOGIN PAGE ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%,  #e0f2fe 35%, #ccfbf1 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    animation: loginBg 20s ease-in-out infinite alternate;
}

@keyframes loginBg {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(5deg); }
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.login-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(229, 231, 235, 0.8); /* light gray */
    color: var(--text-secondary);

    font-size: 16px;

    border: 1px solid rgba(148, 163, 184, 0.25);

    transition: 0.25s ease;

    text-decoration: none;
}

.login-close-btn:hover {
    background: #e5e7eb;
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.login-card .brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 16px;
    font-size: 30px;
}

.login-card .brand h1 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.login-card .brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

.login-card .form-control {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: var(--text-primary);
    padding: 14px 16px;
}

.login-card .form-control::placeholder {
    color: var(--text-muted);
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-card .form-label {
    color: var(--text-secondary);
}

.login-card .btn-gradient {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.login-card .input-group-text {
    background: #fff;
    border-color: #e2e8f0;
}

.login-card .input-group-text i {
    color: var(--text-muted) !important;
}

.login-submit-btn {
    width: 100%;
    height: 56px;

    border: none;
    border-radius: 16px;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

/* Shine Effect */
.login-submit-btn::before {
    content: '';

    position: absolute;
    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255, 255, 255, 0.28),
            transparent
        );

    transition: left 0.6s ease;
}

.login-submit-btn:hover::before {
    left: 120%;
}

.login-submit-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 35px rgba(37, 99, 235, 0.24);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn {
    width: 100%;
    height: 56px;

    border: none;
    border-radius: 16px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.login-submit-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
    height: 100%;

    position: relative;
    z-index: 2;

    color: #fff;

    font-size: 15px;
    font-weight: 700;

    text-align: center;
}

/* ========== CHART CONTAINERS ========== */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container-sm {
    position: relative;
    height: 250px;
    width: 100%;
}

/* ========== FEEDBACK PUBLIC ========== */
.feedback-public {
    min-height: 100vh;
    background: linear-gradient(135deg, #F8FAFC 0%, #e2e8f0 100%);
}

.feedback-card {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feedback-card:hover {
    box-shadow: var(--shadow-hover);
}

/* ========== TRANSPARENCY PAGE ========== */
.transparency-hero {
    background: linear-gradient(135deg, #dbeafe 0%,  #e0f2fe 35%, #ccfbf1 100%);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.transparency-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.04));
}

.transparency-hero h1 {
    color: var(--text-primary);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.transparency-hero p {
    color: var(--text-secondary);
    font-size: 20px;
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #e9e9e9a9; /* light dark gray */
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 36px 0 24px; /* shorter height */
    color: var(--text-primary);
}

/* Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.footer-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text */
.brand-title {
    font-weight: 800;
    font-size: 14px;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
}

.footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    max-width: 420px;
}

/* Titles */
.footer-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a,
.footer-links span {
    font-size: 13px;
    color: var(--text-secondary);
    transition: 0.2s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* Divider */
.site-footer hr {
    margin: 22px 0 12px;
    border-color: rgba(148, 163, 184, 0.3);
}

/* Bottom */
.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}

.animate-slide-in {
    animation: slideInLeft 0.4s ease;
}

/* ========== SKELETON LOADERS ========== */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199.98px) {
    .page-content {
        padding: 24px;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-sidebar {
        display: flex;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .top-bar {
        padding: 0 20px;
    }
    
    .page-content {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --radius: 14px;
    }
    
    .top-bar {
        padding: 0 16px;
        height: 60px;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .table-container .table-header {
        padding: 16px;
    }
    
    .login-card {
        padding: 28px 24px;
    }
    
    .login-card .brand h1 {
        font-size: 18px;
    }
    
    .transparency-hero {
        padding: 60px 0 48px;
    }
    
    .transparency-hero h1 {
        font-size: 32px;
    }
    
    .transparency-hero p {
        font-size: 16px;
    }

    section[id] {
        padding-top: 48px !important;
        padding-bottom: 40px !important;
    }
    
    .chart-container {
        height: 220px;
    }
    
    .chart-container-sm {
        height: 200px;
    }
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h5 {
    font-weight: 600;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== PROFILE DROPDOWN ========== */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.08);
}

.dropdown-item i {
    margin-right: 10px;
    font-size: 16px;
}

/* ========== CLOSE BUTTON ========== */
.lightbox {
    position: fixed;
    inset: 0;

    background: rgba(15, 23, 42, 0.85);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;

    border-radius: 14px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;

    font-size: 28px;
    color: #fff;

    cursor: pointer;

    background: rgba(255,255,255,0.1);
    padding: 10px 12px;
    border-radius: 12px;

    transition: 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* ========== PROGRESS BAR ========== */
.progress {
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ========== ALERTS ========== */
.alert-custom {
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

/* ========== TOAST NOTIFICATION ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-custom {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 14px 20px;
    animation: slideInRight 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 90vw;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== PRINT ========== */
@media print {
    .sidebar,
    .top-bar,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .page-content {
        padding: 20px !important;
    }
}
