:root {
    /* Green Theme Palette */
    --primary-color: #059669;
    /* Emerald 600 */
    --primary-light: #34d399;
    /* Emerald 400 */
    --primary-dark: #047857;
    /* Emerald 700 */
    --secondary-color: #0d9488;
    /* Teal 600 */
    --bg-gradient-start: #f0fdf4;
    /* Light Green */
    --bg-gradient-end: #ecfdf5;
    /* Light Emerald */
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Enhanced Card Styles */
.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

.card-feature {
    border-top: 4px solid var(--primary-color);
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-box-modern {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #dcfce7 100%);
    border-radius: 16px;
    color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 6px rgba(0, 0, 0, 0.05);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.hover-card:hover .icon-box-modern {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Button Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeIn 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Admin Sidebar */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    background: white;
    box-shadow: 1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    margin: 0.2rem 1rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: var(--bg-gradient-end);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(5, 150, 105, 0.1);
}

.sidebar .nav-link .bi {
    margin-right: 0.75rem;
}

@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    main {
        margin-left: 0 !important;
    }
}

main {
    margin-left: 240px;
    /* Width of sidebar */
    padding: 2rem;
}

/* =========================================
   PREMIUM UTILITIES
   ========================================= */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-gradient-end) 100%);
    border-radius: 50% 30% 70% 40%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Timeline Component */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(5, 150, 105, 0));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 2rem;
    /* Adjusted for better alignment */
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    transform: translateX(-50%);
    /* Center on the line */
    margin-left: 1px;
    /* Subtle pixel adjustment */
}

.timeline-dot .bi {
    font-size: 1rem;
    color: var(--primary-color);
}

.timeline-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.date-badge-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 1rem 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0 1rem 1rem 0;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Premium Footer */
.footer-premium {
    background: linear-gradient(to bottom, #064e3b, #022c22);
    /* Dark Emerald to Darker */
    color: #e2e8f0;
    padding-top: 4rem;
    padding-bottom: 2rem;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-premium .text-muted {
    color: #94a3b8 !important;
}

.footer-premium .text-secondary {
    color: #cbd5e1 !important;
}

.footer-premium h5,
.footer-premium h6 {
    color: white !important;
}

.footer-premium a.text-muted:hover {
    color: var(--primary-light) !important;
    text-decoration: underline !important;
}

.footer-premium .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-premium .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-premium .social-link {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.footer-premium .social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   ADMIN PANEL PREMIUM
   ========================================= */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-premium {
    width: 280px;
    background: white;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-link-premium {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link-premium:hover,
.nav-link-premium.active {
    background: var(--bg-gradient-end);
    color: var(--primary-color);
}

.nav-link-premium i {
    font-size: 1.25rem;
    margin-right: 1rem;
    transition: transform 0.2s;
}

.nav-link-premium:hover i,
.nav-link-premium.active i {
    transform: scale(1.1);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: #f8fafc;
    min-height: 100vh;
}

/* Dashboard Widgets */
.card-stat {
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    color: white;
    transition: transform 0.3s ease;
}

.card-stat:hover {
    transform: translateY(-5px);
}

.card-stat::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.stat-icon-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.bg-gradient-1 {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}