:root {
    --primary-color: #0056B3;
    /* Primary Blue: Profesional & Stabil */
    --success-color: #28A745;
    /* Success Green: Segar & Positif */
    --accent-color: #FF8C00;
    /* Accent Orange: Enerjik & Highlight */
    --dark-blue: #1A2B3C;
    /* Dark Navy: Elegan & Serius */
    --bg-color: #ffffff;
    --light-bg: #eceef0;
    /* Soft Gray: Bersih & Luas */
    --text-color: #2c3e50;
    --font-main: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Helper Classes */
.container {
    width: 100%;
    max-width: 75rem;
    /* 1200px */
    margin: 0 auto;
    padding: 0 1.25rem;
}


.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 1.5625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}


.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #004494;
    /* Darker shade of primary blue */
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

/* Header/Navbar */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.fixed-header,
.fixed-header.profile-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 5% !important;
    background-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.fixed-header.scrolled {
    position: fixed;
    background: #2246FB;
    background: linear-gradient(330deg, rgba(34, 70, 251, 0.521) 0%, rgba(24, 124, 252, 1) 84%, rgba(0, 255, 255, 0.468) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 5% !important;
}

.fixed-header.profile-header {
    position: fixed;
    background: #2246FB;
    background: linear-gradient(330deg, rgba(34, 70, 251, 0.521) 0%, rgba(24, 124, 252, 1) 84%, rgba(0, 255, 255, 0.468) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 5% !important;
}

.logo-white {
    filter: brightness(0) invert(1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

#logo-umg {
    height: 45px;
}

#logo-bps {
    height: 70px;
}

/* Admin Profile Link in Header */
.admin-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 2px solid #444;
    color: #444;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 24px;
}

.admin-profile-link:hover {
    transform: scale(1.1);
    background: #2575bf;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-box img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 500;
    color: white;
    transition: 0.3s;
    font-size: 1rem;
}

nav a:hover {
    color: #ffcc00;
}

.login-btn {
    background-color: white;
    color: var(--primary-color) !important;
    padding: 10px 30px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
}

.login-btn:hover {
    background-color: #f0f0f0;
    text-decoration: none !important;
}

/* Hero & About Sections are now independent */


/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #00CFFF 0%, #0056B3 100%);
    color: white;
    height: 100vh;
    min-height: 600px;

}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100vw;
    gap: 3.75rem;
    padding: 0 5.2%;
    padding-top: 5dvh;
}


.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    font-weight: 800;
}


.hero-text .statify-title {
    color: #FFCC00;
    display: block;
    margin-bottom: 10px;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    max-width: 37.5rem;
}


.hero-image {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    scale: 1.2;
    height: auto;
    transform: translateX(-5%);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.btn-hero {
    background-color: #FF8C00;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.btn-hero:hover {
    background-color: #e67e00;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 140, 0, 0.4);
}

/* About Section */
.about-section {
    position: relative;
    background: linear-gradient(180deg, #009dff 0%, #0056B3 100%);
    color: var(--text-color);
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-text h2 {
    color: white;
}

.about-text p {
    color: #555;
    text-align: justify;
}


.about-decorations {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    gap: 12px;
    z-index: 5;
}

.decor-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.decor-circle:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.circle-1 {
    background-color: #10afda;
}

.circle-2 {
    background-color: #28A745;
}

.circle-3 {
    background-color: #FF8C00;
}


.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    gap: 80px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    scale: 1.5;
    transform: translateX(9%);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.about-text {
    flex: 1.5;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.875rem;
    line-height: 1.2;
}


.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
    padding-right: 5%;
}

.btn-about {
    background-color: #FF9900;
    color: white;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 6px 15px rgba(255, 153, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.btn-about:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 153, 0, 0.4);
    color: white;
}

/* Hero Floating Link */
.hero-floating-link {
    position: absolute;
    bottom: 30px;
    right: 5%;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
    font-style: italic;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    bottom: 1%;
}

.hero-floating-link:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}



@media (max-width: 992px) {

    .hero-container,
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1,
    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-image {
        display: none;
    }
}

/* Search Bar Section */
.search-section {
    padding: 20px 0;
    text-align: right;
    margin-bottom: 20px;
}

.search-form {
    display: inline-flex;
    gap: 10px;
}

.search-form input,
.search-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-form button {
    background-color: var(--dark-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Events Section */
.section-title {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        text-align: center;
        justify-self: center;
        margin: 0 auto;
    }
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
    gap: 1.875rem;
    margin-bottom: 3.125rem;
}


.event-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-image {
    min-height: 200px;
    max-height: 250px;
    background: linear-gradient(45deg, #f9f9f9 25%, transparent 25%),
        linear-gradient(-45deg, #f9f9f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f9f9f9 75%),
        linear-gradient(-45deg, transparent 75%, #f9f9f9 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.event-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

.event-content {
    padding: 20px;
}

.event-tag {
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.event-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.event-action {
    margin-top: 15px;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    width: 100%;
    text-align: center;
    border-radius: 5px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0076f5 0%, #00d5ff 100%);
    padding: 50px 0;
    margin-top: 50px;
    color: white;
    border-top: none;
    width: 100%;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    margin-bottom: 30px;
}

.footer-top-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logos .logo-img {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.footer-address {
    font-size: 0.8rem;
    line-height: 1.6;
    color: white;
}

.footer-address a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.footer-copyright {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .footer {
        padding: 20px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-copyright {
        align-self: center;
    }
}

/* Admin Global Styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 15.625rem;
    /* 250px */
    background-color: var(--dark-blue);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    box-shadow: 0.25rem 0 0.625rem rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}


/* Sidebar Toggle */
.sidebar-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.sidebar.collapsed .sidebar-toggle {
    transform: translateX(-15px);
}

.sidebar-toggle:hover {
    opacity: 1;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
    width: 5rem;
    /* 80px */
}


.sidebar.collapsed .sidebar-logo {
    display: none;
}

.sidebar.collapsed .sidebar-menu {
    margin-top: 50px;
}

.sidebar.collapsed .sidebar-menu li a {
    text-align: center;
    padding: 15px 0;
    margin-right: 0;
    border-radius: 0;
}

.sidebar.collapsed .sidebar-menu li a .text {
    display: none;
}

.sidebar.collapsed .sidebar-menu li a .icon {
    font-size: 1.4rem;
    display: block;
    margin-right: 0;
    width: 100%;
}

.sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    text-align: start;
}

.sidebar-logo-img {
    width: 100%;
    max-width: 70px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sidebar-logo-text {
    color: white;
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.7;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    border-radius: 0 50px 50px 0;
    margin-right: 20px;
}

.sidebar-menu li a .icon {
    width: 30px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.2rem;
}

.sidebar-menu li a .text {
    font-weight: 500;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.main-content {
    flex-grow: 1;
    background-color: var(--light-bg);
    padding: 1.875rem;
    /* 30px */
    overflow-y: auto;
}


/* Admin Tables */
.table-responsive,
.table-container {
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    overflow-x: auto;
    margin-top: 1.25rem;
}


table {
    width: 100%;
    border-collapse: collapse;
}


td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--light-bg);
    color: var(--dark-blue);
    font-weight: 700;
    text-align: center;
    padding: 10px 15px;
}

tr:last-child td {
    border-bottom: none;
}

/* Role Badges */
.role-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: #fee2e2;
    color: #dc2626;
}

.role-user {
    background: #dcfce7;
    color: var(--success-color);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    /* Dashboard Responsive Adjustments */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .dashboard-header .user-profile {
        width: 100%;
    }

    .dashboard-header .btn-create {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 0.95rem;
    }

    .welcome-text h2 {
        font-size: 1.5rem;
        /* Smaller font for mobile header */
    }

    /* Sidebar Fixes: Force Full Width */
    .sidebar {
        width: 100% !important;
        padding: 0;
        position: relative;
        z-index: 1000;
        transition: none;
        height: auto;
    }

    .sidebar.collapsed {
        width: 100% !important;
        /* OVERRIDE DESKTOP COLLAPSED WIDTH */
    }

    .sidebar-logo {
        display: flex;
        align-items: center;
        justify-content: start;
        padding: 15px 20px;
        margin: 0;
        width: 100%;
        background-color: var(--dark-blue);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-logo-img {
        margin: 0;
    }

    /* Stats Grid Adjustments */
    .stats-grid {
        grid-template-columns: 1fr;
        /* Single column stats */
        gap: 15px;
    }

    .stat-card {
        height: auto;
        /* Allow auto height */
        padding: 20px;
        min-height: 140px;
    }

    .stat-card .count {
        font-size: 2rem;
        /* Adjusted number size */
    }

    /* Activity Section & Table Adjustments */
    .activity-section {
        padding: 20px;
        grid-template-columns: 1fr;
        /* Force single column */
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Filter Controls Stacking */
    .recent-list form {
        flex-direction: column;
        align-items: stretch !important;
    }

    .recent-list form select,
    .recent-list form button,
    .recent-list form a {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Table Responsive Scroll */
    .activity-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
        /* Smaller font for table */
    }

    .activity-table th,
    .activity-table td {
        padding: 10px;
    }

    /* Donut Chart Responsive */
    .chart-wrapper {
        margin-top: 30px;
    }

    .sidebar-logo-text {
        text-align: center;
        margin-top: 0;
        margin-left: 15px;
        font-size: 1rem;
    }

    /* Override Toggle Button Position */
    .sidebar-toggle {
        top: 20px;
        /* Adjust vertical center roughly */
        right: 20px;
    }

    .sidebar.collapsed .sidebar-toggle {
        transform: none;
        /* Reset rotation/move from desktop */
    }

    /* Logic: Default (No Class) = Hidden Menu on Mobile */
    .sidebar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--dark-blue);
        padding: 10px 0 20px;
    }

    /* Logic: Class 'collapsed' (Toggled) = Show Menu on Mobile (Inverse of Desktop) */
    .sidebar.collapsed .sidebar-menu {
        display: flex;
        animation: slideDown 0.3s ease forwards;
        margin-top: 0;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Reset Menu Items for Dropdown Look */
    .sidebar.collapsed .sidebar-menu li a {
        text-align: left;
        padding: 12px 25px;
        justify-content: flex-start;
    }

    .sidebar.collapsed .sidebar-menu li a .text {
        display: inline-block;
        margin-left: 0;
    }

    .sidebar.collapsed .sidebar-menu li a .icon {
        width: 30px;
        margin-right: 10px;
        text-align: start;
        display: inline-block;
    }

    /* Adjust Main Content to not shift when menu opens (Overlay or Push? Push is simpler here) */
    /* Since sidebar is width 100%, opening menu pushes main content down automatically in normal flow */
}

/* Dashboard Design */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome-text h2 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    font-weight: 700;
}

.welcome-text span {
    color: var(--primary-color);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    border-radius: 0.75rem;
    padding: 1.125rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6.875rem;
    /* 110px */
}


.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-card.blue {
    background: linear-gradient(135deg, #0056B3, #007bff);
}

.stat-card.green {
    background: linear-gradient(135deg, #28A745, #34ce57);
}

.stat-card.orange {
    background: linear-gradient(135deg, #FF8C00, #ffb347);
}

.stat-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card .count {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin: 5px 0;
}

.stat-icon {
    opacity: 0.3;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.1);
}

/* Button Create */
.btn-create {
    background: linear-gradient(90deg, var(--primary-color), #007bff);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.btn-create:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.6);
}

/* Activity Section */
.activity-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.875rem;
    background: white;
    padding: 1.875rem;
    border-radius: 1.25rem;
    box-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.05);
}


@media (max-width: 992px) {
    .activity-section {
        grid-template-columns: 1fr;
    }
}

.section-head {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-head h3 {
    color: var(--dark-blue);
    font-size: 1.2rem;
}

/* Status Dots */
.status-dot {
    height: 10px;
    width: 10px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-dot.active {
    background-color: var(--success-color);
}

.status-dot.upcoming {
    background-color: var(--accent-color);
}

.status-dot.past {
    background-color: #6c757d;
}

/* Charts */
.chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.donut-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--success-color) 0% 60%,
            var(--accent-color) 60% 85%,
            #6c757d 85% 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donut-chart::before {
    content: "";
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

/* Chart Legend */
.chart-legend {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Action Icons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    margin-right: 5px;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon.edit {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.btn-icon.edit:hover {
    background-color: #ffecb5;
}

.btn-icon.delete {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.btn-icon.delete:hover {
    background-color: #f1b0b7;
}

/* Responsive Design for Main Landing Page */
@media (max-width: 768px) {

    /* Header & Navigation */
    header {
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }

    .fixed-header {
        padding: 10px 5% !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #2246FB;
        background: linear-gradient(330deg, rgba(34, 70, 251, 0.521) 0%, rgba(24, 124, 252, 1) 84%, rgba(0, 255, 255, 0.468) 100%);
        backdrop-filter: blur(20px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 2000;
    }

    .fixed-header .logo-white {
        filter: brightness(0) invert(1) !important;
    }

    .fixed-header nav a {
        color: white !important;
    }

    .fixed-header .login-btn {
        background-color: white !important;
        color: var(--primary-color) !important;
    }

    .logo {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    nav ul {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        width: max-content;
        margin: 0 auto;
    }

    nav a {
        font-size: 0.9rem;
        transition: 0.3s;
    }

    nav a:hover {
        color: var(--primary-color);
    }

    /* Hero Section */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 160px 20px 60px;
        /* Increased top padding per nav height */
        gap: 40px;
        min-height: auto;
    }

    .hero-text {
        width: 100%;
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .hero-image {
        display: none;
    }

    /* Events Grid */
    .events-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .event-card {
        width: 100% !important;
        max-width: 400px;
        flex-direction: column;
    }

    .event-image {
        min-height: 200px !important;
        height: auto !important;
    }

    .event-image img {
        max-height: 250px !important;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .search-section {
        width: 100%;
        text-align: left;
    }

    .search-form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Footer */
    footer {
        text-align: center;
        padding-bottom: 100px;
    }

    .footer-content {
        align-items: center !important;
    }

    .footer-content .left {
        align-items: center !important;
        text-align: center;
    }

    footer p {
        position: static !important;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 40px !important;

    }

    #logo-bps {
        height: 50px !important;
    }
}