:root {
    --primary-color: #4361ee;
    --primary-gradient-start: rgb(238, 67, 67);
    --primary-gradient-end: rgb(183, 9, 82);
    --accent-blue: #2b6cb0;
    --pendaftar-color: #3a0ca3;
    --dokumen-color: #38a169;
    --biodata-color: #3182ce;
    --primary-bg: #f8f9fa;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --hover-bg: #e9ecef;
    --card-bg: #ffffff;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --navbar-height: 70px;
}

body {
    padding-top: var(--navbar-height);
    background-color: #e9ecef;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: var(--card-shadow);
    color: white;
}

.navbar-top .brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    margin-left: 15px;
}

.navbar-top .navbar-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-left: 10px;
}

.navbar-top img {
    height: 40px;
    border-radius: 8px;
}

.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    height: calc(100% - var(--navbar-height));
    width: 250px;
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    z-index: 1000;
    transform: translateX(-100%);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar .nav-link {
    color: var(--text-secondary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px 10px;
}

.sidebar .nav-link:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

.sidebar-brand {
    display: none;
}

.sidebar-toggler {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 8px;
}

.sidebar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.content {
    max-width: 100%;
    border-radius: var(--border-radius);
    padding: 15px 5px 0px 5px;
    margin-bottom: 20px;
}

.overlay {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

.sidebar.active~.overlay {
    display: block;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3251d4;
    border-color: #3251d4;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

.btn-success {
    background-color: var(--dokumen-color);
    border-color: var(--dokumen-color);
    border-radius: 8px;
}

.btn-success:hover {
    background-color: #2f855a;
    border-color: #2f855a;
    box-shadow: 0 4px 10px rgba(56, 161, 105, 0.2);
}

.btn-danger {
    background-color: #e53e3e;
    border-color: #e53e3e;
    border-radius: 8px;
}

.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.2);
}

.btn-warning {
    background-color: #ed8936;
    border-color: #ed8936;
    color: #ffffff;
    border-radius: 8px;
}

.btn-warning:hover {
    background-color: #dd6b20;
    border-color: #dd6b20;
    box-shadow: 0 4px 10px rgba(237, 137, 54, 0.2);
}

.btn-info {
    background-color: var(--biodata-color);
    border-color: var(--biodata-color);
    border-radius: 8px;
}

.btn-info:hover {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
    box-shadow: 0 4px 10px rgba(49, 130, 206, 0.2);
}

.btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    border-radius: 8px;
}

.btn-secondary:hover {
    background-color: #4a5568;
    border-color: #4a5568;
    box-shadow: 0 4px 10px rgba(107, 114, 128, 0.2);
}

.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.table {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead {
    background-color: var(--hover-bg);
    color: var(--primary-color);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: var(--hover-bg);
}

.badge {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: #ffffff;
}

.badge.bg-success {
    background-color: var(--dokumen-color) !important;
}

.badge.bg-danger {
    background-color: #e53e3e !important;
}

.badge.bg-warning {
    background-color: #ed8936 !important;
    color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.welcome-header {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    padding: 2rem 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.main-title,
.sub-title {
    color: white !important;
}

.main-title {
    font-weight: 700;
    font-size: 2.2rem;
}

.sub-title {
    font-weight: 400;
    opacity: 0.9;
    font-size: 1.2rem;
}

.stats-container {
    justify-content: center;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.card-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.pendaftar .card-icon {
    background-color: rgba(58, 12, 163, 0.15);
    color: var(--pendaftar-color);
}

.dokumen .card-icon {
    background-color: rgba(56, 161, 105, 0.15);
    color: var(--dokumen-color);
}

.biodata .card-icon {
    background-color: rgba(49, 130, 206, 0.15);
    color: var(--biodata-color);
}

.card-content {
    flex-grow: 1;
}

.card-content h5 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.pendaftar .stat-value {
    color: var(--pendaftar-color);
}

.dokumen .stat-value {
    color: var(--dokumen-color);
}

.biodata .stat-value {
    color: var(--biodata-color);
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-title {
        font-size: 1.8rem;
    }

    .sub-title {
        font-size: 1rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .welcome-header {
        border-radius: 0 0 20px 20px;
        padding: 1.5rem 0;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .main-title {
        font-size: 1.5rem;
    }

    .sub-title {
        font-size: 0.9rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .navbar-top img {
        height: 30px;
    }

    .navbar-top {
        padding: 0 20px;
    }
}

html,
body {
    height: 100%;
}

/* CSS untuk navbar agar menempel di bawah */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    z-index: 1000;
}

.nav-item {
    flex-grow: 1;
    text-align: center;
}

.nav-link {
    padding: 5px 0;
}

.nav-link.active {
    color: #007bff;
    /* Warna biru untuk icon aktif */
}

/* Dashboard - Hero Section */
.dashboard-wrapper {
    padding: 5px 0 40px 0;
    min-height: 100vh;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-info {
    position: relative;
    z-index: 1;
}

.hero-avatar-container {
    position: relative;
    z-index: 1;
}

.hero-avatar {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

/* Timeline Stepper */
.timeline-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline-toggle-btn {
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
}

.timeline-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.timeline-toggle-btn i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 10px;
}

.timeline-steps::before {
    content: "";
    position: absolute;
    top: 31px;
    /* 10px padding + 21px (half of 42px icon) */
    left: 5%;
    right: 5%;
    height: 2px;
    background: #f1f5f9;
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    border: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    color: #94a3b8;
}

.timeline-step.completed .step-icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.timeline-step.active .step-icon {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.step-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Menu Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-gradient-end);
}

.action-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Icon Variations */
.icon-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.icon-amber {
    background: #fffbeb;
    color: #f59e0b;
}

.icon-green {
    background: #ecfdf5;
    color: #10b981;
}

.icon-rose {
    background: #fff1f2;
    color: #f43f5e;
}

.icon-indigo {
    background: #eef2ff;
    color: #6366f1;
}

.icon-cyan {
    background: #ecfeff;
    color: #0891b2;
}

.icon-slate {
    background: #f8fafc;
    color: #64748b;
}

.action-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.action-status {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 600;
}

/* Info Box */
.info-box {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border-left: 5px solid var(--primary-gradient-end);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.info-box-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    /* Prevent shrinking */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-gradient-end-rgb), 0.1);
    color: var(--primary-gradient-end);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .info-box-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        flex-direction: row;
        text-align: left;
        padding: 1.2rem;
        gap: 15px;
        margin-bottom: 15px;
        border-radius: 0 0 25px 25px;
        margin-top: -15px;
        align-items: center;
    }

    .hero-avatar {
        width: 65px;
        height: 65px;
        border-radius: 15px;
        flex-shrink: 0;
    }

    .hero-info {
        text-align: left;
        flex: 1;
    }

    .hero-info h3 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    .hero-info .d-flex {
        justify-content: flex-start !important;
        flex-wrap: wrap;
        gap: 5px !important;
    }

    .hero-info .badge {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
    }

    .timeline-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 10px;
        padding-bottom: 5px;
        margin-top: 15px;
        padding-left: 0;
        overflow-x: visible;
    }

    .timeline-steps::-webkit-scrollbar {
        display: none;
    }

    .timeline-steps::before {
        display: none;
    }

    .timeline-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        flex: 1;
    }

    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin: 0 auto 5px;
    }

    .step-label {
        font-size: 0.55rem;
    }

    .action-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .action-card {
        padding: 1rem 0.5rem;
        border-radius: 15px;
        min-height: 110px;
    }

    .action-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .action-label {
        font-size: 0.7rem;
    }

    .action-status {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
}

/* Component: Upload & Payment Cards */
.upload-card,
.billing-card,
.status-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 25px !important;
    overflow: hidden;
}

.upload-card:hover,
.billing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Component: Upload Zone */
.upload-zone {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
    border-radius: 1rem !important;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background-color: #f8fbff !important;
}

.upload-zone input[type="file"] {
    cursor: pointer;
}

/* Component: Document Icons */
.doc-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Component: Billing Info */
.bank-info {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.amount-box {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border: 1px solid #feb2b2;
    border-radius: 20px;
    padding: 1.5rem;
}

/* Utility: Progress Compact */
.progress-compact {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-compact .progress-bar {
    border-radius: 10px;
}

/* Profile Floating Actions */
.profile-actions-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Default posisi FAB di kanan bawah */
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* State saat menjadi Sticky Bar (Tengah) */
.profile-actions-wrapper.is-editing {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
}

.fab-edit {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4) !important;
    padding: 0 !important;
}

.fab-edit i {
    font-size: 1.5rem;
    margin: 0 !important;
}

.sticky-action-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    gap: 12px;
    min-width: 300px;
}

@media (max-width: 768px) {
    .profile-actions-wrapper {
        bottom: 25px;
        right: 20px;
    }
    
    .profile-actions-wrapper.is-editing {
        width: 90%;
        bottom: 20px;
    }
    
    .sticky-action-bar {
        min-width: unset;
        width: 100%;
        justify-content: center;
    }
}