/* WiseBiz Admin Skin v2 — SaaS premium, CSS directo sin build */

/* ═══════════════════════════════════════════════════════════════
   App background
═══════════════════════════════════════════════════════════════ */

.fi-body {
    background:
        radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.18), transparent 28rem),
        radial-gradient(circle at 92% 16%, rgba(20, 184, 166, 0.16), transparent 26rem),
        linear-gradient(135deg, #f8fafc 0%, #eef6ff 42%, #f8fafc 100%) !important;
}

.dark .fi-body {
    background:
        radial-gradient(circle at 18% 8%, rgba(59, 130, 246, 0.24), transparent 30rem),
        radial-gradient(circle at 88% 14%, rgba(45, 212, 191, 0.18), transparent 28rem),
        linear-gradient(135deg, #020617 0%, #0f172a 52%, #020617 100%) !important;
}

/* Main app canvas */
.fi-main {
    padding-top: 2rem !important;
}

.fi-main-ctn {
    background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════
   Sidebar premium
═══════════════════════════════════════════════════════════════ */

.fi-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)) !important;
    border-right: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow: 24px 0 60px rgba(15, 23, 42, 0.10) !important;
    backdrop-filter: blur(22px);
}

.dark .fi-sidebar {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94)) !important;
    border-right-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.42) !important;
}

.fi-sidebar-header {
    min-height: 6.4rem !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    background:
        radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.12), transparent 12rem),
        transparent !important;
}

.fi-logo {
    filter: drop-shadow(0 12px 22px rgba(37, 99, 235, 0.16));
}

/* Sidebar nav group */
.fi-sidebar-group {
    padding-top: 0.35rem;
}

.fi-sidebar-group-label {
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    padding-inline: 1.1rem !important;
    margin-top: 0.8rem !important;
}

.dark .fi-sidebar-group-label {
    color: #94a3b8 !important;
}

/* Sidebar item */
.fi-sidebar-item-button {
    position: relative;
    min-height: 2.85rem !important;
    margin-inline: 0.7rem !important;
    border-radius: 1.15rem !important;
    border-left: 0 !important;
    color: #334155 !important;
    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease !important;
}

.fi-sidebar-item-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    pointer-events: none;
}

.fi-sidebar-item-button:hover {
    transform: translateX(4px);
    background: rgba(37, 99, 235, 0.08) !important;
    color: #1d4ed8 !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-button,
.fi-sidebar-item-button[aria-current="page"] {
    background:
        linear-gradient(135deg, #2563eb 0%, #0ea5e9 52%, #14b8a6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26) !important;
    transform: translateX(3px);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item-button[aria-current="page"] .fi-sidebar-item-icon,
.fi-sidebar-item-button[aria-current="page"] .fi-sidebar-item-label {
    color: #ffffff !important;
}

.fi-sidebar-item-icon {
    color: #94a3b8 !important;
}

.fi-sidebar-item-button:hover .fi-sidebar-item-icon {
    color: #2563eb !important;
}

.fi-sidebar-item-label {
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
}

/* Sidebar badges */
.fi-sidebar-item-badge {
    border-radius: 999px !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.10);
}

/* ═══════════════════════════════════════════════════════════════
   Topbar
═══════════════════════════════════════════════════════════════ */

.fi-topbar > nav {
    height: 4.3rem !important;
    background: rgba(255, 255, 255, 0.74) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07) !important;
    backdrop-filter: blur(22px);
}

.dark .fi-topbar > nav {
    background: rgba(2, 6, 23, 0.72) !important;
    border-bottom-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32) !important;
}

/* User avatar */
.fi-avatar {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

/* ═══════════════════════════════════════════════════════════════
   Page header
═══════════════════════════════════════════════════════════════ */

.fi-header {
    margin-bottom: 1.6rem !important;
}

.fi-header-heading {
    color: #020617 !important;
    font-size: clamp(1.75rem, 2.2vw, 2.55rem) !important;
    font-weight: 950 !important;
    letter-spacing: -0.06em !important;
}

.dark .fi-header-heading {
    color: #f8fafc !important;
}

.fi-header-subheading {
    color: #64748b !important;
    font-weight: 600 !important;
}

.dark .fi-header-subheading {
    color: #94a3b8 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Cards / widgets / sections
═══════════════════════════════════════════════════════════════ */

.fi-section,
.fi-wi-widget,
.fi-ta,
.fi-in-entry-wrp {
    border-radius: 1.45rem !important;
}

.fi-section,
.fi-wi-widget,
.fi-ta {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease !important;
}

.fi-section:hover,
.fi-wi-widget:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.22) !important;
    box-shadow:
        0 30px 72px rgba(15, 23, 42, 0.105),
        inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.dark .fi-section,
.dark .fi-wi-widget,
.dark .fi-ta {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82)) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Stats widgets */
.fi-wi-stats-overview-stat {
    border-radius: 1.45rem !important;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.13), transparent 12rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 32px 80px rgba(37, 99, 235, 0.14) !important;
}

.fi-wi-stats-overview-stat-label {
    color: #64748b !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
}

.fi-wi-stats-overview-stat-value {
    color: #020617 !important;
    font-size: 2rem !important;
    font-weight: 950 !important;
    letter-spacing: -0.06em !important;
}

.dark .fi-wi-stats-overview-stat-value {
    color: #f8fafc !important;
}

/* Dashboard custom cards fallback */
.fi-page .grid > div,
.fi-page .rounded-xl,
.fi-page .rounded-2xl {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

/* ═══════════════════════════════════════════════════════════════
   Tables
═══════════════════════════════════════════════════════════════ */

.fi-ta {
    overflow: hidden !important;
}

.fi-ta-header {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.88)) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.dark .fi-ta-header {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.86)) !important;
}

.fi-ta-header-cell-label {
    color: #0f172a !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
}

.dark .fi-ta-header-cell-label {
    color: #f8fafc !important;
}

.fi-ta-row {
    transition: background 140ms ease, transform 140ms ease !important;
}

.fi-ta-row:hover {
    background: rgba(37, 99, 235, 0.045) !important;
}

.dark .fi-ta-row:hover {
    background: rgba(59, 130, 246, 0.09) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Buttons / actions
═══════════════════════════════════════════════════════════════ */

.fi-btn {
    border-radius: 1rem !important;
    font-weight: 850 !important;
    letter-spacing: -0.015em !important;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        filter 150ms ease !important;
}

.fi-btn:hover {
    transform: translateY(-1px);
}

.fi-btn-color-primary {
    background:
        linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #14b8a6 100%) !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26) !important;
}

.fi-btn-color-primary:hover {
    filter: saturate(1.1) brightness(1.02);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Forms / inputs
═══════════════════════════════════════════════════════════════ */

.fi-input-wrp,
.fi-select-input,
.fi-fo-textarea,
.fi-checkbox-input {
    border-radius: 1rem !important;
}

.fi-input-wrp {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

.fi-input-wrp:focus-within {
    border-color: rgba(37, 99, 235, 0.44) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11) !important;
}

.dark .fi-input-wrp {
    background: rgba(15, 23, 42, 0.78) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Badges / pills
═══════════════════════════════════════════════════════════════ */

.fi-badge {
    border-radius: 999px !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* ═══════════════════════════════════════════════════════════════
   Dropdowns / modals
═══════════════════════════════════════════════════════════════ */

.fi-dropdown-panel,
.fi-modal-window {
    border-radius: 1.55rem !important;
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22) !important;
    overflow: hidden !important;
}

.dark .fi-dropdown-panel,
.dark .fi-modal-window {
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Strong custom dashboard polish
   Esto apunta a vistas custom que usan Tailwind/Blade.
═══════════════════════════════════════════════════════════════ */

.fi-page .bg-white {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.90)) !important;
}

.fi-page .border,
.fi-page .border-slate-100,
.fi-page .border-slate-200 {
    border-color: rgba(148, 163, 184, 0.20) !important;
}

.fi-page .shadow,
.fi-page .shadow-sm,
.fi-page .shadow-md,
.fi-page .shadow-lg,
.fi-page .shadow-xl {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08) !important;
}

.fi-page .rounded-xl {
    border-radius: 1.25rem !important;
}

.fi-page .rounded-2xl {
    border-radius: 1.5rem !important;
}

.fi-page .grid > .bg-white,
.fi-page .grid > div[class*="bg-white"] {
    position: relative;
    overflow: hidden;
}

.fi-page .grid > .bg-white::after,
.fi-page .grid > div[class*="bg-white"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 12rem);
    pointer-events: none;
}

.fi-page .grid > .bg-white:hover,
.fi-page .grid > div[class*="bg-white"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 32px 78px rgba(37, 99, 235, 0.13) !important;
}

/* Dashboard tables in custom Blade */
.fi-page table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.fi-page thead {
    background: rgba(248, 250, 252, 0.88) !important;
}

.fi-page th {
    color: #0f172a !important;
    font-weight: 950 !important;
    letter-spacing: -0.02em !important;
}

.fi-page tbody tr {
    transition: background 140ms ease !important;
}

.fi-page tbody tr:hover {
    background: rgba(37, 99, 235, 0.045) !important;
}

/* Make page action buttons feel premium */
.fi-page a,
.fi-page button {
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .fi-main {
        padding-inline: 0.85rem !important;
        padding-top: 1rem !important;
    }

    .fi-sidebar-item-button {
        margin-inline: 0.45rem !important;
    }
}
