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

:root {
    /* Color Palette — derived from MPM emblem (deep violet), formal & functional */
    --primary: hsl(262, 51%, 32%);
    --primary-hover: hsl(262, 55%, 24%);
    --primary-light: hsl(262, 40%, 96%);
    --primary-soft: hsl(262, 30%, 90%);
    --primary-glow: rgba(66, 40, 110, 0.10);

    /* Neutral accent — used sparingly for secondary emphasis, not as a gradient partner */
    --secondary: hsl(222, 20%, 36%);
    --secondary-hover: hsl(222, 25%, 26%);
    --secondary-light: hsl(222, 20%, 95%);

    --success: hsl(152, 48%, 28%);
    --success-light: hsl(152, 42%, 95%);

    --warning: hsl(36, 72%, 36%);
    --warning-light: hsl(36, 65%, 95%);

    --info: hsl(208, 48%, 36%);
    --info-light: hsl(208, 48%, 95%);

    --danger: hsl(354, 48%, 42%);
    --danger-light: hsl(354, 42%, 96%);

    /* Institutional accent — blue from the ASTRAtech emblem, used sparingly for rules & borders */
    --accent: hsl(208, 58%, 42%);
    --accent-light: hsl(208, 58%, 95%);

    --bg-main: hsl(220, 20%, 98%);
    --bg-card: #ffffff;
    --text-main: hsl(224, 24%, 14%);
    --text-muted: hsl(222, 10%, 46%);
    --border-color: hsl(220, 15%, 90%);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 24px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);

    --transition: all 0.18s ease;

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-numeric: 'Poppins', 'Plus Jakarta Sans', sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

main {
    min-width: 0;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    letter-spacing: -0.01em;
}

.font-display, .hero-title, .section-title, .form-title,
.track-search-card h2, .auth-side h1, .modal-title, .card-title-display {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.stat-val, .stats-bar-val {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Inline SVG icon helper */
.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Reusable section header pattern */
.section-header {
    margin-bottom: 28px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 6px;
    max-width: 720px;
    line-height: 1.6;
}

/* Header Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand span {
    font-weight: 400;
    color: var(--text-muted);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-main);
    transition: var(--transition);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 69px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        z-index: 99;
    }

    nav.nav-open {
        max-height: 400px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 20px;
    }

    .nav-link {
        padding: 12px 14px;
        width: 100%;
    }

    .btn-nav-login {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }
}

.btn-nav-login {
    background: var(--primary);
    color: #fff !important;
    padding: 9px 20px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

.btn-nav-login:hover {
    background: var(--primary-hover);
    color: #fff !important;
}

/* Hero Section */
.hero {
    padding: 56px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 160%;
    height: 420px;
    background: radial-gradient(ellipse at center, var(--primary-light) 0%, rgba(255,255,255,0) 68%);
    pointer-events: none;
}

@media (max-width: 576px) {
    .hero::before {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
    }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid var(--primary-soft);
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 18px;
    color: var(--text-main);
}

/* Small decorative rule — institutional accent, use sparingly */
.ornament-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px 0;
}

.ornament-rule::before, .ornament-rule::after {
    content: '';
    height: 2px;
    width: 28px;
    background: var(--accent);
}

.ornament-rule.centered {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.ornament-rule span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .ornament-rule span {
        white-space: normal;
        text-align: center;
        letter-spacing: 1px;
        font-size: 0.72rem;
    }
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

.hero-columns {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.hero-columns > * {
    min-width: 0;
}

@media (max-width: 900px) {
    .hero-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-columns .hero-actions {
        justify-content: center !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

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

.btn-secondary:hover {
    background: var(--bg-main);
    color: var(--primary);
    border-color: var(--primary-soft);
}

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

.btn-danger:hover {
    background: hsl(354, 48%, 34%);
}

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

.btn-success:hover {
    background: hsl(152, 48%, 22%);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Main Forms */
.form-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background: var(--bg-main);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

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

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

/* Password field with show/hide toggle */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.password-toggle .icon {
    width: 19px;
    height: 19px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    background: var(--bg-main);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.file-upload-text strong {
    color: var(--primary);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.selected-file-info {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
    display: none;
}

/* Layout Split: Side-by-Side */
.layout-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin-top: 36px;
    margin-bottom: 56px;
}

.layout-split > * {
    min-width: 0;
}

@media (max-width: 992px) {
    .layout-split {
        grid-template-columns: 1fr;
    }
}

/* Tracker Section */
.track-search-card {
    background: var(--primary);
    color: #fff;
    border: none;
    border-top: 3px solid var(--accent);
    text-align: center;
    padding: 38px;
}

.track-search-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.track-search-card p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 24px;
}

.track-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 5px;
}

.track-input-group input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.track-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.track-input-group button {
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.track-input-group button:hover {
    background: var(--primary-light);
}

@media (max-width: 480px) {
    .track-search-card {
        padding: 24px 18px;
    }

    .track-input-group {
        flex-direction: column;
    }

    .track-input-group button {
        width: 100%;
    }
}

/* Interactive Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
    margin: 30px 0;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

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

.timeline-icon {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--border-color);
    transition: var(--transition);
    z-index: 1;
}

.timeline-item.active .timeline-icon {
    border-color: var(--primary);
    background: var(--primary);
}

.timeline-item.completed .timeline-icon {
    border-color: var(--secondary);
    background: var(--secondary);
}

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

.timeline-item.danger .timeline-icon {
    border-color: var(--danger);
    background: var(--danger);
}

.timeline-content {
    background: var(--bg-main);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-item.active .timeline-content {
    border-color: var(--primary-soft);
    background: var(--primary-light);
}

.timeline-item.success .timeline-content {
    border-color: hsl(152, 42%, 85%);
    background: var(--success-light);
}

.timeline-item.danger .timeline-content {
    border-color: hsl(354, 42%, 88%);
    background: var(--danger-light);
}

.timeline-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

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

.timeline-desc {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.badge-proses {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-tinjau {
    background: var(--info-light);
    color: var(--info);
}

.badge-ajukan {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-setujui {
    background: var(--success-light);
    color: var(--success);
}

.badge-tolak {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-ditunda {
    background: var(--warning-light);
    color: var(--warning);
}

/* Admin Dashboard CSS */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 65px);
}

.dashboard-wrapper > * {
    min-width: 0;
}

@media (max-width: 992px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: 28px 18px;
}

.sidebar-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.admin-main {
    padding: 30px 40px;
    overflow-y: auto;
    min-width: 0;
}

@media (max-width: 992px) {
    .sidebar {
        padding: 18px 16px;
    }

    .admin-main {
        padding: 20px 16px;
    }
}

/* Admin Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-soft);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--primary-light);
    color: var(--primary);
}

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

.stat-icon.total { background: var(--primary-light); color: var(--primary); }
.stat-icon.proses { background: var(--warning-light); color: var(--warning); }
.stat-icon.tinjau { background: var(--info-light); color: var(--info); }
.stat-icon.setujui { background: var(--success-light); color: var(--success); }
.stat-icon.tolak { background: var(--danger-light); color: var(--danger); }
.stat-icon.ditunda { background: var(--warning-light); color: var(--warning); }

.stat-val {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.83rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* Filters Drawer */
.filter-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
    gap: 16px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.table-wrapper {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

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

/* Pagination */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--bg-main);
    color: var(--primary);
    border-color: var(--primary-soft);
}

.pagination-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

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

.pagination-pages {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 576px) {
    .pagination-nav {
        justify-content: center;
        text-align: center;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .pagination-btn .icon {
        width: 20px;
        height: 20px;
    }

    .pagination-btn.disabled {
        opacity: 0.3;
        background: var(--bg-main);
    }
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.pagination-page:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.pagination-page.active {
    background: var(--primary);
    color: #fff;
}

.custom-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background: var(--bg-main);
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

@media (max-width: 900px) {
    .custom-table th {
        position: static;
    }
}

.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-muted);
}

.empty-state .icon {
    width: 40px;
    height: 40px;
    color: var(--border-color);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 0.92rem;
}

.custom-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.custom-table tbody tr {
    transition: var(--transition);
}

.custom-table tbody tr:hover {
    background-color: var(--bg-main);
}

.table-title-link {
    font-weight: 700;
    color: var(--primary);
}

.table-title-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-icon-view {
    background: var(--primary-light);
    color: var(--primary);
}

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

/* Modals / Action Panels */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(12px);
    transition: var(--transition);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-header {
    background: var(--bg-main);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.modal-close {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 576px) {
    .modal-header, .modal-body, .modal-footer {
        padding: 14px 16px;
    }

    .modal-footer {
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        flex: 1;
    }
}

/* Detail view styling */
.detail-item {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.detail-item:last-child {
    border: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Image preview thumbnail */
.preview-media {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin-top: 8px;
    border: 1px solid var(--border-color);
    max-height: 300px;
    object-fit: contain;
}

/* Realizations Grid */
.realizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 400px) {
    .realizations-grid {
        grid-template-columns: 1fr;
    }
}

/* Public Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stats-bar-item {
    background: #fff;
    padding: 22px 20px;
    text-align: center;
}

.stats-bar-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stats-bar-lbl {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Footer Section */
.footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding-top: 44px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-grid > * {
    min-width: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 0.86rem;
    line-height: 1.6;
    max-width: 340px;
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 18px 0;
    text-align: center;
    font-size: 0.82rem;
}

.footer span {
    color: var(--primary);
    font-weight: 700;
}

/* Auth Split Panel */
.auth-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: calc(100vh - 138px);
}

@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-side {
        display: none;
    }
}

.auth-side {
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--accent);
}

.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 20px 20px;
}

.auth-side > * {
    position: relative;
    z-index: 1;
}

.auth-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-feature-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-feature-list .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Comment Section Admin */
.tanggapan-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tanggapan-item {
    background: var(--bg-main);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tanggapan-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tanggapan-user {
    color: var(--primary);
}

.tanggapan-date {
    color: var(--text-muted);
}

.tanggapan-content {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-main);
}
