/* Base Styling & Variables */
:root {
    --primary-navy: #064E3B; /* Changed to Emerald 900 (Dark Green) */
    --primary-blue: #10B981; /* Changed to Emerald 500 (Vibrant Green) */
    --accent-gold: #F59E0B;  /* Amber */
    --bg-white: #FFFFFF;
    --bg-gray: #F0FDF4;      /* Green 50 (Very soft green tint) */
    --text-dark: #022C22;    /* Emerald 950 */
    --text-muted: #047857;   /* Emerald 700 */
    --status-green: #059669; /* Emerald 600 */
    --status-red: #EF4444;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(6, 78, 59, 0.15); /* Green tinted shadow */
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);        /* Green tinted glow */

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-gray);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* Background Animated Blobs */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(6, 78, 59, 0.1) 70%);
    border-radius: 50%;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.logo-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-text h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
}

.header-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-gold), var(--primary-navy));
    z-index: -1;
    border-radius: 10px;
    background-size: 400%;
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.btn-glow:hover::after {
    opacity: 1;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.btn-secondary {
    background: white;
    color: var(--primary-navy);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    padding: 10px 20px;
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: white;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(120deg, var(--primary-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Visual & Glass Cards */
.hero-visual {
    position: relative;
    height: 500px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 100%;
    max-width: 400px;
    z-index: 2;
    will-change: transform;
    animation: float-y 6s ease-in-out infinite;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.card-title {
    font-weight: 600;
    color: var(--primary-navy);
}

.tracking-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.tracking-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 15px;
    width: 2px;
    height: calc(100% - 10px);
    background: #E2E8F0;
    z-index: -1;
}

.track-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    background: #E2E8F0;
    z-index: 1;
}

.completed .track-icon {
    background: var(--status-green);
}

.active .track-icon {
    background: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 24px !important;
    height: 24px !important;
    animation: spin 1s linear infinite;
    margin: 4px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.track-info h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.track-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.active .track-info h4 {
    color: var(--primary-blue);
}

.sub-card {
    position: absolute;
    bottom: 8%;
    left: -15%;
    width: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    will-change: transform;
    animation: float-sub 8s ease-in-out infinite;
}

.stat-circle {
    width: 45px;
    height: 45px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

.circular-chart.blue .circle {
    stroke: var(--primary-blue);
}

.percentage {
    fill: var(--primary-navy);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 10px;
    text-anchor: middle;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

@keyframes float-y {
    0% {
        transform: translate3d(-50%, -50%, 0);
    }

    50% {
        transform: translate3d(-50%, -55%, 0);
    }

    100% {
        transform: translate3d(-50%, -50%, 0);
    }
}

@keyframes float-sub {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -15px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.stat-info h4 {
    font-size: 0.8rem;
    color: var(--primary-navy);
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h3 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-gray);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    background: white;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.bg-blue {
    background: var(--primary-blue);
}

.bg-yellow {
    background: var(--accent-gold);
}

.bg-navy {
    background: var(--primary-navy);
}

.bg-green {
    background: var(--status-green);
}

.feature-card h4 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.text-white h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.text-white p {
    color: var(--accent-gold);
}

.footer-desc {
    margin-top: 24px;
    max-width: 400px;
    line-height: 1.8;
}

.footer-links h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .main-card {
        position: relative;
        transform: translate(0, 0);
        top: 0;
        left: 0;
        margin: 0 auto;
        animation: float-y-mobile 6s ease-in-out infinite;
    }

    @keyframes float-y-mobile {
        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }

        100% {
            transform: translateY(0);
        }
    }

    .sub-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   LOGIN PAGE STYLES
   ========================================= */

.login-body {
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    min-height: 550px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
    overflow: hidden;
}

.login-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.login-brand {
    margin-bottom: auto;
}

.login-info-content {
    margin: auto 0;
}

.login-info-content h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.login-info-content .subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.login-info-content .desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 350px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: auto;
    width: fit-content;
}

.back-link:hover {
    color: var(--primary-navy);
    transform: translateX(-5px);
}

.login-form-container {
    flex: 1;
    padding: 50px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #94A3B8;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: var(--transition);
    background: #F8FAFC;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-wrapper input::placeholder {
    color: #94A3B8;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-navy);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}

.form-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Login Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .login-info {
        padding: 40px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .login-info-content {
        margin: 30px 0;
    }

    .login-form-container {
        padding: 40px 30px;
    }
}

/* =========================================
   DASHBOARD LAYOUT STYLES
   ========================================= */

.dashboard-body {
    background: var(--bg-gray);
    overflow: hidden;
    /* Prevent body scroll, use content scroll */
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: var(--transition);
}

.sidebar-header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #E2E8F0;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
}

.sidebar-title h2 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    line-height: 1.1;
}

.sidebar-title span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-nav {
    padding: 20px 16px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-item:hover {
    background: #F1F5F9;
    color: var(--primary-navy);
}

.nav-item.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid #E2E8F0;
}

.text-danger {
    color: var(--status-red);
}

.text-danger:hover {
    background: #FEF2F2;
    color: #DC2626;
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Topbar */
.topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 40;
}

.topbar-search {
    position: relative;
    width: 350px;
    display: flex;
    align-items: center;
}

.topbar-search svg {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: #94A3B8;
}

.topbar-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    transition: var(--transition);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
}

.notification-bell:hover {
    color: var(--primary-navy);
}

.notification-bell svg {
    width: 24px;
    height: 24px;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--status-red);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-navy);
    line-height: 1.2;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Content Container & Pages */
.content-container {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: var(--bg-gray);
    position: relative;
}

.page-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.75rem;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Dashboard Specific: Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.bg-blue-light {
    background: #EFF6FF;
    color: var(--primary-blue);
}

.bg-yellow-light {
    background: #FEF9C3;
    color: #CA8A04;
}

.bg-navy-light {
    background: #F1F5F9;
    color: var(--primary-navy);
}

.bg-green-light {
    background: #ECFDF5;
    color: var(--status-green);
}

/* Modifiers for stat cards */
.stat-card.card-blue {
    background: #EFF6FF;
    border-color: #DBEAFE;
}
.stat-card.card-blue .stat-icon {
    background: #DBEAFE;
    color: #2563EB;
}
.stat-card.card-blue .stat-content h3 {
    color: #1E3A8A;
}
.stat-card.card-blue .stat-content p {
    color: #3B82F6;
}

.stat-card.card-yellow {
    background: #FEFCE8;
    border-color: #FEF08A;
}
.stat-card.card-yellow .stat-icon {
    background: #FEF08A;
    color: #CA8A04;
}
.stat-card.card-yellow .stat-content h3 {
    color: #713F12;
}
.stat-card.card-yellow .stat-content p {
    color: #A16207;
}

.stat-card.card-purple {
    background: #F8FAFC;
    border-color: #E2E8F0;
}
.stat-card.card-purple .stat-icon {
    background: #E2E8F0;
    color: #475569;
}
.stat-card.card-purple .stat-content h3 {
    color: #0F172A;
}
.stat-card.card-purple .stat-content p {
    color: #475569;
}

.stat-card.card-green {
    background: #F0FDF4;
    border-color: #BBF7D0;
}
.stat-card.card-green .stat-icon {
    background: #DCFCE7;
    color: #16A34A;
}
.stat-card.card-green .stat-content h3 {
    color: #14532D;
}
.stat-card.card-green .stat-content p {
    color: #15803D;
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
}

.stat-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Cards & Tables */
.content-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.border-bottom {
    border-bottom: 1px solid #E2E8F0;
}

.card-body {
    padding: 24px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 20px; /* Increased padding for less eye strain */
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.data-table th {
    background: #E2E8F0; /* Slightly darker background for contrast */
    color: var(--text-dark); /* Darker text */
    font-weight: 700; /* Bold header */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr:nth-child(even) {
    background: #F8FAFC; /* Zebra striping */
}

.data-table tbody tr:hover {
    background: #F1F5F9; /* Slightly darker hover */
}

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

.td-stack {
    display: flex;
    flex-direction: column;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-blue);
    color: white;
}

.badge-warning {
    background: var(--accent-gold);
    color: white;
}

.badge-success {
    background: var(--status-green);
    color: white;
}

.badge-danger {
    background: var(--status-red);
    color: white;
}

.badge-gray {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.badge-success-light {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.badge-danger-light, .badge-red-light {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.badge-warning-light {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.badge-primary-light {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.badge-navy-light {
    background: #E2E8F0;
    color: #1E293B;
    border: 1px solid #CBD5E1;
}
/* =========================================
   CUSTOM LOGIN LOGO STYLES
   ========================================= */

.logo-group-login {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 35px;
}

.logo-kab-login {
    width: 110px !important;
    height: 110px !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    background: white;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(0, 0, 0, 0.05);
}

.logo-sidisi-login {
    width: 110px !important;
    height: 110px !important;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.4);
    border: 3px solid rgba(16, 185, 129, 0.2);
    animation: float-logo 4s ease-in-out infinite, pulse-glow 2s ease-in-out infinite alternate;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-sidisi-login img {
    border-radius: 50%;
}

@keyframes float-logo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    from { 
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.2), 0 0 30px rgba(16, 185, 129, 0.1); 
        border-color: rgba(16, 185, 129, 0.1);
    }
    to { 
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.6), 0 0 50px rgba(16, 185, 129, 0.3); 
        border-color: rgba(16, 185, 129, 0.4);
    }
}


.badge-gray {
    background: #E2E8F0;
    color: var(--text-dark);
}

.badge-blue-light {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-red-light {
    background: #FEE2E2;
    color: #B91C1C;
}

.badge-success-light {
    background: #D1FAE5;
    color: #047857;
}

/* Action Buttons in Table */
.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon:hover {
    background: #F1F5F9;
    color: var(--primary-navy);
}

.btn-icon.text-blue:hover {
    background: #EFF6FF;
    color: var(--primary-blue);
}

/* Disposisi Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

.mail-meta {
    background: #F8FAFC;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.meta-value {
    font-weight: 600;
    color: var(--text-dark);
}

.pdf-viewer-placeholder {
    height: 400px;
    background: #F1F5F9;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 12px;
}

.form-section {
    margin-bottom: 16px;
}

.form-grid .form-section {
    margin-bottom: 0;
}

.section-label {
    font-size: 1rem;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    transition: var(--transition);
}

.custom-checkbox:hover input~.checkmark {
    background-color: #E2E8F0;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tags Checkbox (Multi-select Targets) */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-checkbox {
    cursor: pointer;
}

.tag-checkbox input {
    display: none;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: #F1F5F9;
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: var(--transition);
}

.tag-checkbox:hover .tag {
    background: #E2E8F0;
}

.tag-checkbox input:checked~.tag {
    background: #EFF6FF;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.mt-4 {
    margin-top: 24px;
}

.table-filters {
    padding: 16px 24px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    gap: 12px;
}

.form-select,
.form-input {
    padding: 8px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: inherit;
    color: var(--text-dark);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 320px;
    animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.toast.success {
    border-left-color: var(--status-green);
}

.toast.warning {
    border-left-color: var(--accent-gold);
}

.toast-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
}

.toast.success .toast-icon svg {
    color: var(--status-green);
}

.toast-content h4 {
    font-size: 0.9rem;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.toast-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

.news-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    animation: fadeUpNews 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card:nth-child(2) {
    animation-delay: 0.3s;
}

.news-card:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes fadeUpNews {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 22px 40px -10px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    position: relative;
    background: #E2E8F0;
    overflow: hidden;
}

.news-image svg {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover .news-image svg {
    transform: scale(1.15) rotate(3deg);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-content h4 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-navy);
    gap: 12px;
}

/* ========================================= */
/* MODAL STYLES (MASTER DATA & GENERAL) */
/* ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    border-radius: 6px;
    padding: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: #F1F5F9;
    color: var(--status-red);
}
.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #F8FAFC;
}
.modal-body .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.modal-body .form-group small {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
}
/* Responsive modal */
@media (max-width: 600px) {
    .modal-container {
        max-width: 95%;
        margin: 0 10px;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS & INTERACTIVITY
   ========================================= */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0 !important;
        width: 100%;
    }
    
    .topbar {
        padding: 0 15px;
    }
    
    .content-container {
        padding: 15px;
    }
    
    .stats-grid, .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header-text h1 {
        font-size: 1.1rem;
    }
    
    .header-text p {
        display: none;
    }
    
    .topbar-search {
        width: 150px;
    }
    
    .hamburger-menu {
        display: flex !important;
    }
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary-navy);
    margin-right: 12px;
}

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Interactivity & Hover Effects (Emerald & Gold) */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.btn {
    transition: all 0.2s ease;
}
.btn:active {
    transform: scale(0.96);
}
.btn-primary:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

.nav-item {
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.nav-item:hover {
    transform: translateX(5px);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom SIDISI Logo on Login */
.logo-sidisi-login {
    width: 120px;
    height: 120px;
    animation: sidisi-spin 10s linear infinite;
    background: transparent;
    box-shadow: none;
    margin: 0 auto;
}

.logo-sidisi-login:hover {
    transform: scale(1.05);
    box-shadow: none;
}

@keyframes sidisi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}