/* ==================== VARIABEL ==================== */
:root {
    --bs-primary: #6f42c1;
    --bs-primary-rgb: 111, 66, 193;
}

/* ==================== BASE ==================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body .section {
    margin-top: 70px;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #5a3396;
    border-color: #5a3396;
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

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

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

.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* ==================== FRONTEND NAVBAR ==================== */
.frontend-navbar .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar-brand small {
    font-size: 0.7rem;
}

/* ==================== FRONTEND HERO SECTION ==================== */
.frontend-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.frontend-hero-content {
    position: relative;
    z-index: 1;
}

/* ==================== FRONTEND SECTIONS ==================== */
/* Section Title */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--bs-primary);
    border-radius: 3px;
}

/* Icon Box */
.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s;
}

.card:hover .icon-box {
    background: var(--bs-primary);
}

.card:hover .icon-box i {
    color: white !important;
}

/* Step Number */
.step-number {
    width: 50px;
    height: 50px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

/* Timeline Date */
.timeline-date {
    background: rgba(111, 66, 193, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 0.9rem;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--bs-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
}

/* Footer */
.footer {
    background-color: #212529;
}

/* ==================== DASHBOARD HERO SECTION (Khusus Dashboard) ==================== */
.dashboard-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.dashboard-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(111, 66, 193, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 201, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dashboard-hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.dashboard-hero-probability {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #a78bfa;
}

/* ==================== DASHBOARD SIDEBAR ==================== */
.sidebar {
    min-height: 100vh;
    background-color: #1e1e2d;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar .nav-link {
    color: #a2a3b7;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(111, 66, 193, 0.1);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--bs-primary);
    border-left: 4px solid #a78bfa;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-heading {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* ==================== DASHBOARD NAVBAR ==================== */
.dashboard-navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    background-color: #f5f5f9;
    min-height: 100vh;
    width: calc(100% - 260px);
}

/* ==================== SIDEBAR BACKDROP ==================== */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    display: none;
}

.sidebar-backdrop.show {
    display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 767.98px) {
    body {
        padding-top: 0;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px !important;
        height: 100vh;
        min-height: 100vh;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        width: 100%;
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) {
    .sidebar {
        height: 100vh;
        position: sticky;
        top: 0;
    }
}

.sidebar .nav-link {
    color: #a2a3b7;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sidebar .nav-link .badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 0.35em 0.6em;
}