/*
 * White-sidebar theme for the Al-Ihsan CMS admin panel: the sidebar and
 * topbar stay white, active/hover nav items tint indigo/purple, and the
 * content area behind the white cards gets a light gray backdrop so
 * sections read as distinct "app chrome" from the page content.
 */

.fi-sidebar {
    background-color: #ffffff;
    box-shadow: 1px 0 0 0 rgba(0, 0, 0, 0.06);
}

.fi-main {
    background-color: #f3f4f6;
}

/* Scrollable, but no visible scrollbar track/thumb */
.fi-sidebar-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    gap: 1.25rem;
}

.fi-sidebar-nav::-webkit-scrollbar {
    display: none;
}

/* Tighter vertical rhythm so the menu doesn't feel spread out */
.fi-sidebar-nav-groups {
    gap: 1.25rem;
}

.fi-sidebar-group-items {
    gap: 0.125rem;
}

.fi-sidebar-item-button {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.fi-sidebar-group-button {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* Slightly smaller icons to match the tighter spacing */
.fi-sidebar-item-icon,
.fi-sidebar-group-icon {
    height: 1.15rem;
    width: 1.15rem;
}

.fi-sidebar-header {
    background-color: #ffffff;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
    justify-content: center;
}

/* The sidebar-collapse/expand buttons move to the topbar instead (see below) —
   the sidebar header is left holding only the centered logo. */
.fi-sidebar-header .fi-icon-btn {
    display: none !important;
}

/* The topbar's own sidebar toggle buttons ship mobile-only by default
   (lg:hidden) since desktop normally uses the sidebar-header button instead;
   override that utility class (NOT !important — Alpine's x-show toggles an
   inline display style on these same buttons, which must keep winning) to
   show them at desktop widths too, now that the sidebar-header button is gone. */
@media (min-width: 1024px) {
    .fi-topbar-open-sidebar-btn.lg\:hidden,
    .fi-topbar-close-sidebar-btn.lg\:hidden {
        display: flex;
    }
}

/* User info now lives in the sidebar's fixed footer card (see
   resources/views/filament/partials/sidebar-user-card.blade.php) instead of
   the topbar's avatar dropdown — the topbar keeps only notifications, global
   search, and the sidebar toggle. */
.fi-topbar .fi-user-menu {
    display: none !important;
}

.fi-sidebar-user-card {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    flex-shrink: 0;
}

.fi-sidebar-user-card-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.fi-sidebar-user-card-text {
    flex: 1 1 0%;
    min-width: 0;
}

.fi-sidebar-user-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-sidebar-user-card-role {
    font-size: 0.6875rem;
    color: #6b7280;
    text-transform: capitalize;
}

.fi-sidebar-user-card-settings {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: #6b7280;
    transition: background-color 150ms ease, color 150ms ease;
}

.fi-sidebar-user-card-settings svg {
    width: 1.15rem;
    height: 1.15rem;
}

.fi-sidebar-user-card-settings:hover {
    background-color: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}

.fi-sidebar-user-card-logout-btn {
    margin-top: 0.625rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.08);
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.fi-sidebar-user-card-logout-btn svg {
    width: 1rem;
    height: 1rem;
}

.fi-sidebar-user-card-logout-btn:hover {
    background-color: rgba(220, 38, 38, 0.14);
}

/* Group labels ("Halaman", "Navigasi Website") */
.fi-sidebar-group-label {
    color: #6366f1;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fi-sidebar-group-icon {
    color: #818cf8;
}

.fi-sidebar-group-collapse-button {
    color: #9ca3af;
}

.fi-sidebar-group-button:hover .fi-sidebar-group-collapse-button {
    color: #4f46e5;
}

/* Nav items */
.fi-sidebar-item-button:hover {
    background-color: rgba(79, 70, 229, 0.08);
}

.fi-sidebar-item-button:hover .fi-sidebar-item-label {
    color: #4f46e5;
}

.fi-sidebar-item-button:hover .fi-sidebar-item-icon {
    color: #4f46e5;
}

.fi-sidebar-item-label {
    color: #374151;
}

.fi-sidebar-item-icon {
    color: #9ca3af;
}

.fi-sidebar-item-grouped-border > div:first-child,
.fi-sidebar-item-grouped-border > div:nth-child(2) {
    background-color: rgba(0, 0, 0, 0.08);
}

.fi-sidebar-item-grouped-border > div:last-child {
    background-color: #9ca3af;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-button,
.fi-sidebar-item-button.fi-active {
    background-color: rgba(99, 102, 241, 0.12);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label {
    color: #4f46e5;
    font-weight: 600;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #4f46e5;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-grouped-border > div:last-child {
    background-color: #6366f1;
}

/* Modern touches on the light content area: a bit more lift on cards */
.fi-wi-stats-overview-stat,
.fi-section,
.fi-ta-ctn {
    transition: box-shadow 150ms ease, transform 150ms ease;
}

.fi-wi-stats-overview-stat:hover {
    box-shadow: 0 8px 20px -6px rgba(30, 27, 75, 0.18);
    transform: translateY(-1px);
}

.fi-topbar {
    box-shadow: 0 1px 0 0 rgba(30, 27, 75, 0.08);
}

/* ==========================================================
 * Split login page (resources/views/filament/pages/auth/login.blade.php)
 * Written as plain CSS rather than Tailwind utilities: Filament's
 * compiled theme.css is pre-purged from Filament's OWN views, so
 * utility classes that only appear on our custom page (e.g. w-1/2,
 * lg:flex) are silently absent from the bundle and do nothing.
 * ========================================================== */
.auth-split {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.auth-split-left {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 3rem;
    background: linear-gradient(155deg, #ffffff 0%, #f3e8ff 35%, #ddd6fe 60%, #f9a8d4 100%);
}

.auth-blob {
    position: absolute;
    pointer-events: none;
    border-radius: 9999px;
    filter: blur(64px);
}

.auth-blob-1 {
    top: -6rem;
    right: -6rem;
    height: 24rem;
    width: 24rem;
    background-color: rgba(217, 70, 239, 0.3);
}

.auth-blob-2 {
    bottom: -8rem;
    left: -4rem;
    height: 20rem;
    width: 20rem;
    background-color: rgba(167, 139, 250, 0.4);
}

.auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-brand-logo {
    height: 4rem;
    width: 4rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.auth-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}

.auth-brand-sub {
    font-size: 0.875rem;
    color: #4b5563;
}

.auth-quote-ctn {
    position: relative;
}

.auth-quote {
    max-width: 28rem;
}

.auth-quote-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

.auth-quote-by {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.auth-copyright {
    position: relative;
    font-size: 0.75rem;
    color: #6b7280;
}

.auth-form-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #030712;
}

.auth-form-subheading {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-split-right {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 2rem 1.5rem;
    flex: 1;
}

.auth-form-ctn {
    width: 100%;
    max-width: 24rem;
}

.auth-form-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-form-logo {
    display: none;
    height: 3.5rem;
    width: 3.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 1023px) {
    .auth-form-logo {
        display: block;
    }
}

.auth-guide-link {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.75);
    color: #4b5563;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 150ms ease, color 150ms ease;
}

.auth-guide-link:hover {
    background-color: #fff;
    color: #4f46e5;
}

.auth-guide-icon {
    height: 1.35rem;
    width: 1.35rem;
}

@media (min-width: 1024px) {
    .auth-split {
        flex-direction: row;
    }

    .auth-split-left {
        display: flex;
        width: 50%;
    }

    .auth-split-right {
        width: 50%;
    }

    .auth-form-header {
        align-items: flex-start;
        text-align: left;
    }
}
