/* =============================================
   JEJAMA WEB 2025 - Main Stylesheet
   Tema: Orange
   ============================================= */

/* --- Base --- */
body {
    font-family: Arial, sans-serif;
    background-color: #fff8f0;
}

a {
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 350px;
    background-color: #fff0e0;
    border-right: 1px solid #f7d9b0;
    padding-top: 1rem;
    overflow-y: auto;
    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 1rem;
}

.sidebar .logo img {
    max-width: 120px;
    height: auto;
}

/* --- Navigation --- */
.nav-link {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* --- Accordion Animation --- */

/* Tombol: transisi warna & indent saat hover/aktif */
.accordion-button {
    background-color: #fff0e0;
    color: #7a3300;
    font-weight: 500;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                padding-left 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #ffd9a8;
    color: #5a2200;
    padding-left: 1.4rem;
    box-shadow: inset 0 -2px 0 rgba(224, 112, 0, 0.3);
}

.accordion-button:hover {
    background-color: #ffe5c2;
    color: #5a2200;
    padding-left: 1.4rem;
}

/* Override warna & timing ikon panah Bootstrap */
.accordion-button::after {
    filter: invert(28%) sepia(80%) saturate(800%) hue-rotate(10deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s ease;
}

/* Link dalam accordion */
.accordion-body a {
    color: #a04500;
}

.accordion-body a:hover {
    color: #3d1500;
}

/* Sub-menu item: fade + geser ke kanan saat accordion terbuka */
.accordion-body .nav-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.accordion-collapse.show .nav-item {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger — tiap item muncul sedikit lebih telat dari sebelumnya */
.accordion-collapse.show .nav-item:nth-child(1)    { transition-delay: 0.04s; }
.accordion-collapse.show .nav-item:nth-child(2)    { transition-delay: 0.08s; }
.accordion-collapse.show .nav-item:nth-child(3)    { transition-delay: 0.12s; }
.accordion-collapse.show .nav-item:nth-child(4)    { transition-delay: 0.16s; }
.accordion-collapse.show .nav-item:nth-child(5)    { transition-delay: 0.20s; }
.accordion-collapse.show .nav-item:nth-child(6)    { transition-delay: 0.24s; }
.accordion-collapse.show .nav-item:nth-child(7)    { transition-delay: 0.28s; }
.accordion-collapse.show .nav-item:nth-child(8)    { transition-delay: 0.32s; }
.accordion-collapse.show .nav-item:nth-child(9)    { transition-delay: 0.36s; }
.accordion-collapse.show .nav-item:nth-child(10)   { transition-delay: 0.40s; }
.accordion-collapse.show .nav-item:nth-child(n+11) { transition-delay: 0.44s; }

/* Hover item di sidebar */
.accordion-body .nav-link:hover {
    background-color: #ffd9a8;
    border-radius: 6px;
    padding-left: 1rem;
    color: #3d1500;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

/* --- Content Area --- */
.content {
    margin-left: 360px;
    padding: 20px;
}

/* --- Card --- */
.card-header {
    background-color: #ffd9a8;
    color: #5a2200;
    font-weight: 600;
}

/* --- Logo Image --- */
.logo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e07000;
}

/* --- Popup / Modal --- */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Floating Action Button (FAB) --- */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e07000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 2000;
}

.fab:hover {
    background: #b85c00;
}

.fab-icon {
    font-size: 20px;
    margin-right: 8px;
}