/* =============================================================
   CUSTOM STYLING - Ayam Petelur BUMDesa
   ============================================================= */

/* -- Sidebar navigation item — kotak dengan background ------ */
.fi-sidebar-item-button {
    border-radius: 0.5rem !important;
    margin: 2px 8px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
}

/* Light theme — kotak abu muda */
.fi-sidebar-item-button:not(.fi-active) {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.fi-sidebar-item-button:hover:not(.fi-active) {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    transform: translateX(2px);
}

/* Active state */
.fi-sidebar-item-button.fi-active {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

/* Dark theme */
.dark .fi-sidebar-item-button:not(.fi-active) {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark .fi-sidebar-item-button:hover:not(.fi-active) {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

/* -- Sidebar group label styling ---------------------------- */
.fi-sidebar-group-label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    opacity: 0.6 !important;
    padding: 12px 20px 4px !important;
}

/* -- Brand / Logo area -------------------------------------- */
.fi-sidebar-header {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.fi-brand-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

/* -- Ornamen ayam di header sidebar ------------------------ */

/* -- Dashboard header ornamen ------------------------------ */

/* -- Kotak stats card --------------------------------------- */
.fi-wi-stats-overview-stat {
    border-left: 4px solid rgba(245, 158, 11, 0.6) !important;
    transition: transform 0.2s ease !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px) !important;
}

/* -- Table row hover ---------------------------------------- */
.fi-ta-row:hover td {
    background-color: rgba(245, 158, 11, 0.05) !important;
}

/* -- Button kembali styling --------------------------------- */
.fi-btn[wire\:click*="back"],
.fi-ac-action[data-action-name="back"] {
    transition: transform 0.15s ease !important;
}

.fi-ac-action[data-action-name="back"]:hover {
    transform: translateX(-3px) !important;
}

/* -- Login page ornamen ------------------------------------- */

/* -- Scrollbar sidebar custom ------------------------------- */
.fi-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 4px;
}

/* -- Badge navigation count --------------------------------- */
.fi-sidebar-item-badge {
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
    border-radius: 20px !important;
}

/* -- Animasi fade in halaman -------------------------------- */
.fi-main {
    animation: fadeInPage 0.3s ease;
}

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