@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-hue: 220;
    --primary: hsl(var(--primary-hue), 95%, 55%);
    --primary-light: hsl(var(--primary-hue), 95%, 93%);
    --primary-dark: hsl(var(--primary-hue), 100%, 40%);
    
    --secondary-hue: 260;
    --secondary: hsl(var(--secondary-hue), 90%, 60%);
    --secondary-light: hsl(var(--secondary-hue), 90%, 95%);
    
    --success: hsl(142, 76%, 36%);
    --success-light: hsl(142, 70%, 93%);
    
    --warning: hsl(38, 92%, 50%);
    --warning-light: hsl(38, 90%, 93%);
    
    --danger: hsl(0, 84%, 60%);
    --danger-light: hsl(0, 80%, 95%);
    
    --text-main: hsl(224, 71%, 4%);
    --text-muted: hsl(220, 9%, 46%);
    --bg-main: hsl(210, 40%, 97%);
    --bg-card: rgba(255, 255, 255, 0.75);
    
    --border-color: rgba(226, 232, 240, 0.8);
    --border-glass: rgba(255, 255, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, hsla(var(--primary-hue), 100%, 85%, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(var(--secondary-hue), 100%, 85%, 0.3) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-dark);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (min-width: 1024px) {
        .grid-3 {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

/* Premium Card Components */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-glass), var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass), var(--shadow-lg);
}

.card-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.75rem;
}

/* ============================================================
   Headers & Navigation (Enterprise Modern Design)
   ============================================================ */
.navbar {
    background: #1976d2;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.28);
}

.navbar-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.65rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.25rem;
    box-sizing: border-box;
}

/* Brand Logo */
.brand-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    justify-self: start;
}

/* Nav Menu Items (Presisi Tengah di Atas Hero Card) */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-self: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.5rem 0.95rem;
    border-radius: 12px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 40px;
    box-sizing: border-box;
}

.nav-link svg {
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.nav-link:hover svg {
    transform: translateY(-1px);
}

.nav-link.active {
    color: #1565c0;
    background: #ffffff;
    font-weight: 700;
    border-color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.nav-link.active svg {
    stroke: #1565c0;
}

/* Right User Actions Area */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.75rem 0.25rem 0.35rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.btn-nav-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    white-space: nowrap;
}

.btn-nav-logout:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

.btn-nav-portal {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 36px;
}

.btn-nav-portal:hover {
    background: #dcfce7;
    color: #14532d;
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.45rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 36px;
}

.btn-nav-login:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38);
}

/* Desktop Hamburger Menu for Admin & Petugas Login */
.nav-admin-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-self: end;
}

.btn-nav-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-nav-hamburger:hover {
    background: #ffffff;
    color: #1976d2;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-nav-hamburger.active {
    background: #ffffff;
    color: #1976d2;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.nav-admin-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 310px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 1050;
    padding: 0.75rem;
    flex-direction: column;
    animation: dropdownMenuAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-admin-dropdown-menu.show {
    display: flex;
}

@keyframes dropdownMenuAnim {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-admin-dropdown-header {
    padding: 0.5rem 0.6rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
}

.header-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    margin-bottom: 0.35rem;
}

.header-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.15rem 0;
}

.header-subtitle {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.nav-admin-dropdown-items {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.admin-dropdown-item .item-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.admin-dropdown-item .item-icon-box.icon-admin {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.admin-dropdown-item .item-icon-box.icon-kabkota {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.28);
}

.admin-dropdown-item .item-text-box {
    flex: 1;
    min-width: 0;
}

.admin-dropdown-item .item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.admin-dropdown-item .item-desc {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.25;
}

.admin-dropdown-item .item-arrow {
    color: #cbd5e1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.admin-dropdown-item.admin-item-admin {
    background: #f8fafc;
}

.admin-dropdown-item.admin-item-admin:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.admin-dropdown-item.admin-item-admin:hover .item-title {
    color: #1d4ed8;
}

.admin-dropdown-item.admin-item-admin:hover .item-arrow {
    color: #2563eb;
    transform: translateX(3px);
}

.admin-dropdown-item.admin-item-kabkota {
    background: #f8fafc;
}

.admin-dropdown-item.admin-item-kabkota:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
    transform: translateY(-1px);
}

.admin-dropdown-item.admin-item-kabkota:hover .item-title {
    color: #047857;
}

.admin-dropdown-item.admin-item-kabkota:hover .item-arrow {
    color: #059669;
    transform: translateX(3px);
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #ffffff;
}

/* Mobile section inside nav-links */
.nav-mobile-admin-section {
    display: none;
}

@media (max-width: 1080px) {
    .navbar-container {
        display: flex;
        justify-content: space-between;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .nav-admin-dropdown-container {
        display: none;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
        gap: 0.5rem;
        align-items: stretch;
    }
    .nav-links.show-mobile {
        display: flex;
    }
    .nav-links.show-mobile .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 1rem;
        color: #334155;
        background: transparent;
        border: 1px solid transparent;
    }
    .nav-links.show-mobile .nav-link svg {
        stroke: currentColor;
    }
    .nav-links.show-mobile .nav-link:hover {
        background: #f1f5f9;
        color: #1976d2;
    }
    .nav-links.show-mobile .nav-link.active {
        background: #eff6ff;
        color: #1976d2;
        border-color: #bfdbfe;
    }
    .nav-links.show-mobile .nav-link.active svg {
        stroke: #1976d2;
    }
    .nav-right-actions {
        display: none;
    }
    .nav-mobile-admin-section {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e2e8f0;
    }
    .nav-mobile-admin-label {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
        padding: 0 0.5rem;
    }
    .nav-link-mobile-admin {
        background: #eff6ff;
        color: #1d4ed8;
        font-weight: 700;
        border-radius: 10px;
    }
    .nav-link-mobile-portal {
        background: #f0fdf4;
        color: #15803d;
        font-weight: 700;
        border-radius: 10px;
    }
}


/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkbox-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.checkbox-card input[type="checkbox"] {
    width: 1.15em;
    height: 1.15em;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(var(--primary-hue), 95%, 55%, 0.3);
    opacity: 0.95;
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-main);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-full {
    width: 100%;
}

/* Form Steps Layout */
.form-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 2.25rem 0 1.25rem 0;
    padding: 0.65rem 1rem 0.65rem 1rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(90deg, rgba(99,102,241,0.07) 0%, transparent 80%);
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    letter-spacing: 0.01em;
    position: relative;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(99,102,241,0.2), transparent);
}

/* Divider antara section */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1), transparent);
    margin: 2rem 0 0 0;
    border-radius: 2px;
}

/* Alert Styling */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--success-light);
    border-color: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.alert-danger {
    background-color: var(--danger-light);
    border-color: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

.alert-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.alert-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.alert-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Step Progress Indicator (Tracking Page) */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 3rem 0;
    padding: 0 1rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 4px;
    background-color: #cbd5e1;
    z-index: 1;
}

.step-progress-bar {
    position: absolute;
    top: 25px;
    left: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 2;
    transition: width 0.5s ease-in-out;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 80px;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #cbd5e1;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Active & Complete States */
.step-node.completed .step-icon {
    background-color: var(--success-light);
    border-color: var(--success);
    color: var(--success);
}

.step-node.completed .step-label {
    color: var(--success);
}

.step-node.active .step-icon {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(var(--primary-hue), 95%, 55%, 0.4);
    animation: pulse 2s infinite;
}

.step-node.active .step-label {
    color: var(--primary);
    font-weight: 800;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Mobile responsive steps */
@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-left: 2rem;
    }
    
    .step-indicator::before {
        top: 25px;
        bottom: 25px;
        left: 43px;
        width: 4px;
        height: calc(100% - 50px);
    }
    
    .step-progress-bar {
        display: none; /* simpler design for mobile */
    }
    
    .step-node {
        flex-direction: row;
        width: 100%;
        gap: 1rem;
    }
    
    .step-label {
        margin-top: 0;
        text-align: left;
        font-size: 0.9rem;
    }
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-status-0 { background-color: rgba(239, 68, 68, 0.15); color: #dc2626; font-weight: 700; }
.badge-status-1 { background-color: var(--primary-light); color: var(--primary); }
.badge-status-2 { background-color: var(--secondary-light); color: var(--secondary); }
.badge-status-3 { background-color: rgba(245, 158, 11, 0.15); color: #d97706; }
.badge-status-4 { background-color: rgba(14, 165, 233, 0.15); color: #0284c7; }
.badge-status-5 { background-color: var(--success-light); color: var(--success); }
.badge-status-6 { background-color: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-status-7 { background-color: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16,185,129,0.3); }

/* Timeline Component */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 7px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid var(--primary);
    z-index: 2;
}

.timeline-item.completed .timeline-dot {
    border-color: var(--success);
    background-color: var(--success);
}

.timeline-item.active .timeline-dot {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 8px var(--primary);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-body {
    font-size: 0.9rem;
    color: hsl(220, 9%, 30%);
}

/* Success Card */
.success-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--success-light);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border: 5px solid #fff;
    box-shadow: var(--shadow-sm);
}

.token-box {
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.token-copy-btn {
    background: #fff;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.token-copy-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Admin Dashboard layout */
.dashboard-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.85rem;
    width: 100%;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 0;
    word-break: break-word;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.table th, .table td {
    padding: 0.65rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.table th {
    font-weight: 700;
    background: rgba(241, 245, 249, 0.7);
    color: var(--text-main);
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.table tbody tr.row-success {
    background-color: #f0fdf4;
}

.table tbody tr.row-success:hover {
    background-color: #dcfce7;
}

/* Details List */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.details-section {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.details-list {
    list-style: none;
}

.details-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    font-size: 0.9rem;
    gap: 1rem;
}

.details-item:last-child {
    border-bottom: none;
}

.details-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 120px;
}

.details-value {
    text-align: right;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Pagination custom */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

.pagination-links {
    display: flex;
    gap: 0.5rem;
}

/* Tooltips & Helpers */
.badge-assistance {
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.15rem;
}

.badge-assistance.other {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

/* Utility layout tweaks */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 0.5rem; }

/* ============================================================ */
/* Upload Document Section                                       */
/* ============================================================ */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.upload-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-zone {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.02);
    user-select: none;
}

.upload-zone:hover,
.upload-zone-dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.07);
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.upload-icon {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.upload-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.upload-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Hidden native input */
.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Preview container */
.upload-preview {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.upload-preview-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    animation: slideInUp 0.2s ease;
}

.upload-preview-item-error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.upload-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.upload-thumb-pdf {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

.upload-preview-info {
    flex: 1;
    min-width: 0;
}

.upload-preview-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.upload-preview-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.text-danger {
    color: var(--danger) !important;
}

.upload-remove-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
}

.upload-remove-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* Document viewer in track/admin pages */
.doc-section { margin-top: 1.5rem; }
.doc-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}
.doc-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(255,255,255,0.03);
}
.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.doc-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    gap: 0.4rem;
}
.doc-item-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
}
.doc-item-pdf {
    width: 64px;
    height: 64px;
    background: rgba(99,102,241,0.15);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doc-item-name {
    font-size: 0.72rem;
    text-align: center;
    word-break: break-all;
    color: var(--text-muted);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive upload grid */
@media (max-width: 600px) {
    .upload-grid { grid-template-columns: 1fr; }
    .upload-card[style*="span 2"] { grid-column: span 1 !important; }
}

/* ============================================================ */
/* Executive Summary Page                                        */
/* ============================================================ */

/* Page header */
.summary-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.summary-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: .25rem;
}
.summary-subtitle {
    color: var(--text-muted);
    font-size: .95rem;
}

/* Filter card */
.summary-filter-card {
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.5rem;
}

/* KPI grid */
.summary-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.kpi-card {
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.kpi-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    opacity: .12;
}
.kpi-primary { background: linear-gradient(135deg,rgba(99,102,241,.18),rgba(99,102,241,.06)); border: 1px solid rgba(99,102,241,.3); }
.kpi-primary::before { background: #6366f1; }
.kpi-success { background: linear-gradient(135deg,rgba(34,197,94,.18),rgba(34,197,94,.06)); border: 1px solid rgba(34,197,94,.3); }
.kpi-success::before { background: #22c55e; }
.kpi-warning { background: linear-gradient(135deg,rgba(245,158,11,.18),rgba(245,158,11,.06)); border: 1px solid rgba(245,158,11,.3); }
.kpi-warning::before { background: #f59e0b; }
.kpi-info    { background: linear-gradient(135deg,rgba(59,130,246,.18),rgba(59,130,246,.06)); border: 1px solid rgba(59,130,246,.3); }
.kpi-info::before { background: #3b82f6; }
.kpi-amount  { background: linear-gradient(135deg,rgba(20,184,166,.18),rgba(20,184,166,.06)); border: 1px solid rgba(20,184,166,.3); }
.kpi-amount::before { background: #14b8a6; }
.kpi-icon  { font-size: 1.8rem; margin-bottom: .4rem; }
.kpi-value { font-size: 2.4rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.kpi-label { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin: .3rem 0 .15rem; }
.kpi-sub   { font-size: .78rem; color: var(--text-muted); }

/* Summary 2-column grid */
.summary-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Chart cards */
.chart-card { padding: 1.5rem; }
.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.chart-period-badge {
    font-size: .72rem;
    font-weight: 600;
    background: rgba(99,102,241,.12);
    color: var(--primary);
    border-radius: 20px;
    padding: .2rem .7rem;
    white-space: nowrap;
}
.chart-container {
    position: relative;
    width: 100%;
    max-height: 280px;
    margin-bottom: 1rem;
}
.chart-container canvas {
    max-height: 280px;
}

/* Status legend */
.status-legend {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: .75rem;
    font-size: .8rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-item span:nth-child(2) { flex: 1; color: var(--text-muted); }
.legend-count {
    font-weight: 700;
    color: var(--text-main);
    background: rgba(255,255,255,.05);
    border-radius: 4px;
    padding: .05rem .4rem;
    min-width: 28px;
    text-align: center;
}

/* Chart narrative block */
.chart-narrative {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: rgba(99,102,241,.06);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: .75rem 1rem;
    font-size: .83rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.narrative-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.chart-narrative strong { color: var(--text-main); }

/* Executive narrative */
.executive-narrative {
    font-size: .92rem;
    line-height: 1.75;
    color: var(--text-muted);
}
.executive-narrative p { margin-bottom: .9rem; }
.executive-narrative p:last-child { margin-bottom: 0; }
.executive-narrative strong { color: var(--text-main); }

/* Summary table */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.summary-table th {
    background: rgba(99,102,241,.12);
    color: var(--primary);
    font-weight: 700;
    text-align: left;
    padding: .65rem 1rem;
    border-bottom: 2px solid rgba(99,102,241,.2);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.summary-table td {
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    vertical-align: middle;
}
.summary-table tr:last-child td { border-bottom: none; }
.summary-table tbody tr:hover td { background: rgba(255,255,255,.03); }

/* ============================================================ */
/* Print Styles                                                   */
/* ============================================================ */
@media print {
    body {
        background: #fff !important;
        color: #1e293b !important;
        font-size: 11pt;
    }
    .no-print,
    .navbar,
    nav,
    footer,
    .btn,
    #filter-bar-card,
    .summary-page-header { display: none !important; }

    .print-header { display: flex !important; }
    .print-footer  { display: flex !important; }

    .card {
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 16pt;
        page-break-inside: avoid;
    }

    .summary-kpi-grid  { grid-template-columns: repeat(5, 1fr) !important; gap: 8pt; }
    .summary-grid-2    { grid-template-columns: 1fr 1fr !important; gap: 12pt; }

    .kpi-card {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        padding: 10pt 12pt;
    }
    .kpi-value { font-size: 18pt !important; color: #1e293b !important; }
    .kpi-label, .kpi-sub { color: #475569 !important; }

    .chart-narrative {
        background: #f8fafc !important;
        border-left-color: #6366f1;
        color: #475569 !important;
    }
    .chart-narrative strong { color: #1e293b !important; }
    .executive-narrative { color: #334155 !important; }
    .executive-narrative strong { color: #1e293b !important; }

    .summary-table th { background: #f1f5f9 !important; color: #3730a3 !important; }
    .summary-table td { color: #334155 !important; }

    .chart-period-badge { background: #ede9fe !important; color: #4f46e5 !important; }
    .card-title { color: #1e293b !important; }
    .card-title span { display: inline; }

    canvas { max-height: 200pt !important; }

    h3, h4 { color: #1e293b !important; }

    .print-table-card { break-before: page; }
}

/* Print-only elements hidden by default */
.print-header { display: none; }
.print-footer  { display: none; }

.print-header {
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12pt;
    border-bottom: 2pt solid #6366f1;
    margin-bottom: 20pt;
}
.print-logo-row {
    display: flex;
    align-items: center;
    gap: 12pt;
}
.print-logo {
    font-size: 20pt;
    font-weight: 900;
    color: #4f46e5;
}
.print-period {
    font-size: 10pt;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 4pt 10pt;
    border-radius: 4pt;
}
.print-footer {
    justify-content: space-between;
    padding-top: 8pt;
    border-top: 1pt solid #e2e8f0;
    font-size: 8pt;
    color: #94a3b8;
    margin-top: 20pt;
}

/* Responsive */
@media (max-width: 1250px) {
    .summary-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .summary-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-grid-2   { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .summary-kpi-grid { grid-template-columns: 1fr 1fr; }
    .kpi-value { font-size: 1.8rem; }
}

/* ============================================================ */
/* Stage Cards (Per-tahapan Keterangan)                          */
/* ============================================================ */
.stage-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.25rem;
    position: relative;
}

/* Connecting line */
.stage-cards-wrapper::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}

.stage-card {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    padding: .85rem 1rem .85rem 3rem;
    margin-bottom: .5rem;
    transition: all .25s ease;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,.02);
}

/* Completed stage */
.stage-completed {
    border-color: rgba(34,197,94,.25);
    background: rgba(34,197,94,.04);
}
.stage-completed .stage-card-header .stage-card-title {
    color: var(--text-main);
}

/* Active stage */
.stage-active {
    border-color: rgba(99,102,241,.4);
    background: rgba(99,102,241,.06);
    box-shadow: 0 0 0 3px rgba(99,102,241,.1), 0 4px 14px rgba(99,102,241,.08);
}
.stage-active .stage-card-header .stage-card-title {
    color: var(--primary);
    font-weight: 800;
}

/* Pending stage */
.stage-pending {
    opacity: .55;
    background: rgba(255,255,255,.01);
}
.stage-pending .stage-textarea {
    background: rgba(255,255,255,.02);
    cursor: not-allowed;
    opacity: .5;
}

/* Header row */
.stage-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

/* Indicator circle */
.stage-card-indicator {
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.stage-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(34,197,94,.3);
}
.stage-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
}
.stage-num-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,.4);
    animation: stagePulse 2s ease-in-out infinite;
}
@keyframes stagePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(99,102,241,.4); }
    50%      { box-shadow: 0 2px 16px rgba(99,102,241,.6); }
}

/* Title wrap */
.stage-card-title-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
}
.stage-card-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}
.stage-card-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.2;
}
.stage-card-status {
    font-size: .72rem;
    margin-top: .1rem;
}

/* Body */
.stage-card-body {
    margin-top: .25rem;
}
.stage-textarea {
    font-size: .82rem;
    padding: .5rem .75rem;
    min-height: 44px;
    resize: vertical;
    border-radius: 8px;
}

/* Update controls section */
.stage-update-controls {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: .5rem;
}

/* Stage notes in track/public view */
.stage-notes-summary {
    margin-top: 1.25rem;
}
.stage-note-row {
    display: flex;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    align-items: flex-start;
}
.stage-note-row:last-child { border-bottom: none; }
.stage-note-badge {
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 6px;
    min-width: 24px;
    text-align: center;
}
.stage-note-badge-done {
    background: rgba(34,197,94,.15);
    color: var(--success);
}
.stage-note-badge-active {
    background: rgba(99,102,241,.15);
    color: var(--primary);
}
.stage-note-text {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.stage-note-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: .8rem;
    margin-bottom: .1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .stage-card { padding-left: 2.5rem; }
    .stage-cards-wrapper::before { left: 14px; }
}

/* ===================================================
   HELPDESK STYLES
   =================================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.status-badge.status-pending {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.status-badge.status-in_progress {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.status-badge.status-completed {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.stat-card.active-stat {
    box-shadow: 0 0 0 2px var(--primary), var(--shadow-md);
    background: #f8fafc;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    #floating-helpdesk-container {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    #floating-helpdesk-menu {
        width: 250px;
        right: 0;
    }
}

