.fi-sidebar {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.dark .fi-sidebar {
    background-color: rgb(24, 24, 27) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5),
    0 4px 12px 0px rgba(255, 255, 255, 0.02) !important;
}

.fi-sidebar nav a {
    border-radius: 10px !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    transition: all 0.2s ease-in-out !important;
}

.fi-sidebar nav a:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
    transform: translateX(4px);
}

.dark .fi-sidebar nav a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.fi-sidebar-item-active a {
    background: linear-gradient(135deg, rgb(var(--primary-600)), rgb(var(--primary-500))) !important;
    color: white !important;
    box-shadow: 0 4px 12px -2px rgba(var(--primary-500), 0.3) !important;
}

.fi-sidebar-item-active a svg {
    color: white !important;
}

.fi-sidebar-nav::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: transparent;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.0);
    border-radius: 100px !important;
    transition: background-color 0.3s ease;
}

.dark .fi-sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.0);
}

.fi-sidebar-nav:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

.dark .fi-sidebar-nav:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.dark .fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.fi-tenant-menu {
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease-in-out !important;
}

.fi-tenant-menu button {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    background-color: rgba(0, 0, 0, 0.01) !important;
}

.dark .fi-tenant-menu button {
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(255, 255, 255, 0.01) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.fi-tenant-menu button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -1px rgba(0, 0, 0, 0.08) !important;
}

.dark .fi-tenant-menu button:hover {
    box-shadow: 0 6px 16px -1px rgba(0, 0, 0, 0.4) !important;
}

.fi-tenant-menu-options,
div[class*="fi-dropdown-panel"] {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.dark div[class*="fi-dropdown-panel"] {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6),
    0 10px 10px -5px rgba(0, 0, 0, 0.4) !important;
}
.fiwa-processing {
    text-align: center;
    padding: 32px;
    animation: fiwaCardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fiwa-processing-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    animation: fiwaIconPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.15s;
}

.fiwa-processing-glow {
    position: absolute;
    inset: -8px;
    border-radius: 9999px;
    background: radial-gradient(
        circle,
        color-mix(in srgb, #3b82f6 28%, transparent) 0%,
        transparent 70%
    );
    animation: fiwaProcessingGlow 1.8s ease-in-out infinite;
}

.dark .fiwa-processing-glow {
    background: radial-gradient(
        circle,
        color-mix(in srgb, #60a5fa 32%, transparent) 0%,
        transparent 70%
    );
}

.fiwa-spinner-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    color: #3b82f6;
    animation: fiwaSpinnerRotate 1.1s linear infinite;
}

.dark .fiwa-spinner-svg {
    color: #60a5fa;
}

.fiwa-spinner-track {
    opacity: 0.22;
}

.fiwa-spinner-arc {
    stroke-dasharray: 42 21;
    stroke-dashoffset: 0;
    transform-origin: center;
    animation: fiwaSpinnerDash 1.1s ease-in-out infinite;
}

.fiwa-processing-heading {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 24px;
    letter-spacing: -0.025em;
    animation: fiwaStatSlideUp 0.4s ease both 0.45s;
}

.dark .fiwa-processing-heading {
    color: #f3f4f6;
}

.fiwa-processing-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.fiwa-processing-stats .fiwa-stat-animated {
    animation: fiwaStatSlideUp 0.4s ease both 0.6s;
}

.fiwa-processing-subtext {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    animation: fiwaStatSlideUp 0.4s ease both 0.75s;
}

.dark .fiwa-processing-subtext {
    color: #9ca3af;
}

@keyframes fiwaSpinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fiwaSpinnerDash {
    0% {
        stroke-dasharray: 1 62;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 42 21;
        stroke-dashoffset: -12;
    }

    100% {
        stroke-dasharray: 1 62;
        stroke-dashoffset: -63;
    }
}

@keyframes fiwaProcessingGlow {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Menu builder: keep drag handles compact even if theme utilities miss */
.fi-menu-builder-handle svg,
.fi-menu-builder-item-row svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
}

.fi-menu-builder-handle {
    width: 2rem;
    height: 2rem;
}

.fi-menu-builder-item-row {
    min-height: 2.75rem;
}

