:root {
    /* Color Palette - Vibrant Orange */
    --primary-color: #f97316;
    /* Orange 500 */
    --primary-dark: #c2410c;
    /* Orange 700 */
    --primary-light: #ffedd5;
    /* Orange 100 */
    --secondary-color: #475569;
    /* Slate 600 */
    --accent-color: #fbbf24;
    /* Amber 400 */

    /* Gradients */
    --bg-gradient-start: #fff7ed;
    /* Orange 50 */
    --bg-gradient-end: #ffedd5;
    /* Orange 100 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --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) scale(1.02);
    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;
    margin-bottom: 1rem;
    display: inline-block;
}

/* =========================================
   NAVBAR POLISH
   ========================================= */

/* Floating Glass Pill Navbar */
.navbar-floating-pill {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    box-shadow: 0 10px 40px -10px rgba(249, 115, 22, 0.15);
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-floating-pill.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 50px -10px rgba(249, 115, 22, 0.25);
}

.navbar-brand-pill {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-link-pill {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link-pill:hover,
.nav-link-pill.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Adjust main content padding because navbar is fixed but floats */
body {
    padding-top: 100px;
}

.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;
}

/* Admin Navbar (Premium Top Bar) */
.navbar-admin {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px -10px rgba(249, 115, 22, 0.1);
    z-index: 1030;
}

.admin-brand {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-link-admin {
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    margin: 0 0.2rem;
}

.nav-link-admin:hover,
.nav-link-admin.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.main-content-admin {
    padding: 2rem;
    background: var(--bg-gradient-start);
    min-height: calc(100vh - 80px);
    /* Adjust for navbar height */
}

/* 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, #f97316 0%, #fdba74 100%);
}

/* Orange */
.bg-gradient-2 {
    background: linear-gradient(135deg, #ec4899 0%, #fbcfe8 100%);
}

/* Pink */
.bg-gradient-3 {
    background: linear-gradient(135deg, #eab308 0%, #fef08a 100%);
}

/* Yellow */

/* =========================================
   ADVANCED VISUAL POLISH
   ========================================= */

/* Dynamic Background Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
}

.bg-orb-3 {
    width: 200px;
    height: 200px;
    background: #6ee7b7;
    /* Emerald 300 */
    top: 40%;
    left: 20%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Transition */
.navbar {
    transition: all 0.3s ease;
}

.navbar-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid transparent !important;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(229, 172, 142, 0), rgba(255, 255, 255, 0.5) 50%, rgba(229, 172, 142, 0));
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    animation: sheath 3s infinite;
}

@keyframes sheath {
    100% {
        transform: rotateZ(60deg) translate(1em, -9em);
    }
}

/* Footer Social Icon Box */
.social-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-icon-box:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.social-icon-box i {
    font-size: 1.2rem;
}

/* =========================================
   FOOTER & BIODATA POLISH
   ========================================= */

/* Floating Glass Footer */
.footer-floating {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    margin: 0 1.5rem 1.5rem 1.5rem;
    padding: 3rem 0;
    box-shadow: 0 -10px 40px -10px rgba(249, 115, 22, 0.1);
    position: relative;
    z-index: 100;
}

/* Morphing Blob Profile */
.profile-blob-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-blob {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-morph 8s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.3);
    z-index: 2;
    background: white;
    padding: 10px;
}

.blob-glow-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-morph 8s ease-in-out infinite reverse;
    opacity: 0.3;
    filter: blur(20px);
    z-index: 1;
}

@keyframes blob-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%;
    }
}

/* Text Gradient */
.text-gradient-orange {
    background: linear-gradient(135deg, var(--primary-color), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}