/* ============================================
   VN PRO - Premium Professional Theme
   Complete Filament UI Transformation
   ============================================ */

/* ═══════════════════════════════════
   1. GLOBAL FOUNDATION
   ═══════════════════════════════════ */

/* Smooth page transition */
.fi-page {
    animation: vnPageIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vnPageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content area background */
.fi-main {
    background: #f4f6fb !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.35);
}


/* ═══════════════════════════════════
   2. TOP BAR
   ═══════════════════════════════════ */
.fi-topbar {
    background: white !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}


/* ═══════════════════════════════════
   3. STATS OVERVIEW WIDGETS
   ═══════════════════════════════════ */
.fi-wi-stats-overview {
    gap: 16px !important;
}

.fi-wi-stats-overview-stat {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 20px !important;
    position: relative;
    overflow: hidden;
}

.fi-wi-stats-overview-stat::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.04;
    transform: translate(30%, -30%);
    pointer-events: none;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

/* Stat value - bigger and bolder */
.fi-wi-stats-overview-stat-value {
    font-size: 2rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
}

/* Stat label */
.fi-wi-stats-overview-stat-label {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    opacity: 0.7;
}

/* Stat description */
.fi-wi-stats-overview-stat-description {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
}

/* Mini chart inside stat */
.fi-wi-stats-overview-stat-chart {
    height: 40px !important;
    margin-top: 8px !important;
}

/* Color dots on stats */
.fi-wi-stats-overview-stat[class*="success"]::after {
    background: #10b981;
}

.fi-wi-stats-overview-stat[class*="primary"]::after {
    background: #667eea;
}

.fi-wi-stats-overview-stat[class*="warning"]::after {
    background: #f59e0b;
}

.fi-wi-stats-overview-stat[class*="info"]::after {
    background: #06b6d4;
}

.fi-wi-stats-overview-stat[class*="danger"]::after {
    background: #ef4444;
}


/* ═══════════════════════════════════
   4. SECTIONS & CARDS
   ═══════════════════════════════════ */
.fi-section {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
}

.fi-section-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    padding: 16px 20px !important;
}

.fi-section-header-heading {
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: #1f2937 !important;
}

/* Chart widget */
.fi-wi-chart {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    padding: 16px !important;
}

.fi-wi-chart-heading {
    font-weight: 800 !important;
    color: #374151 !important;
}


/* ═══════════════════════════════════
   5. TABLES - Professional
   ═══════════════════════════════════ */
.fi-ta {
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.fi-ta-header {
    background: #f8f9fb !important;
}

.fi-ta-header-cell {
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #6b7280 !important;
    padding: 14px 16px !important;
}

.fi-ta-row {
    transition: background 0.15s ease !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.fi-ta-row:hover {
    background: rgba(102, 126, 234, 0.02) !important;
}

.fi-ta-row:last-child {
    border-bottom: none !important;
}

.fi-ta-cell {
    padding: 14px 16px !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

/* Staggered row animation */
.fi-ta-row {
    animation: vnRowIn 0.3s ease-out both;
}

.fi-ta-row:nth-child(1) {
    animation-delay: 0.02s;
}

.fi-ta-row:nth-child(2) {
    animation-delay: 0.04s;
}

.fi-ta-row:nth-child(3) {
    animation-delay: 0.06s;
}

.fi-ta-row:nth-child(4) {
    animation-delay: 0.08s;
}

.fi-ta-row:nth-child(5) {
    animation-delay: 0.1s;
}

@keyframes vnRowIn {
    from {
        opacity: 0;
        transform: translateX(6px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ═══════════════════════════════════
   6. BADGES - Modern Style
   ═══════════════════════════════════ */
.fi-badge {
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    letter-spacing: 0.2px !important;
}


/* ═══════════════════════════════════
   7. BUTTONS - Premium Feel
   ═══════════════════════════════════ */
.fi-btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fi-btn:hover {
    transform: translateY(-1px) !important;
}

.fi-btn-primary,
.fi-btn[wire\:click] {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
}

.fi-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3) !important;
}


/* ═══════════════════════════════════
   8. FORMS - Clean Inputs
   ═══════════════════════════════════ */
.fi-input-wrp {
    border-radius: 12px !important;
    border: 2px solid #e5e7eb !important;
    transition: all 0.2s ease !important;
    overflow: hidden;
}

.fi-input-wrp:focus-within {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.fi-select-wrp {
    border-radius: 12px !important;
}


/* ═══════════════════════════════════
   9. MODALS - Polished
   ═══════════════════════════════════ */
.fi-modal-window {
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
    animation: vnModalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vnModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fi-modal-close-btn {
    border-radius: 10px !important;
}


/* ═══════════════════════════════════
   10. NOTIFICATIONS
   ═══════════════════════════════════ */
.fi-no {
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    animation: vnNotifIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vnNotifIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ═══════════════════════════════════
   11. PAGINATION
   ═══════════════════════════════════ */
.fi-pagination {
    gap: 4px !important;
}

.fi-pagination-item {
    border-radius: 10px !important;
    font-weight: 700 !important;
}


/* ═══════════════════════════════════
   12. HEADER & PAGE TITLE
   ═══════════════════════════════════ */
.fi-header {
    animation: vnHeaderIn 0.4s ease-out 0.05s both;
}

@keyframes vnHeaderIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fi-header-heading {
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    color: #111827 !important;
}

.fi-header-subheading {
    color: #6b7280 !important;
    font-weight: 600 !important;
}


/* ═══════════════════════════════════
   13. TABS
   ═══════════════════════════════════ */
.fi-tabs {
    border-radius: 14px !important;
    background: #f4f6fb !important;
    padding: 4px !important;
}

.fi-tabs-item {
    border-radius: 10px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.fi-tabs-item-active {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}


/* ═══════════════════════════════════
   14. EMPTY STATE
   ═══════════════════════════════════ */
.fi-ta-empty-state {
    padding: 48px !important;
}

.fi-ta-empty-state-icon {
    color: #d1d5db !important;
    margin-bottom: 8px !important;
}

.fi-ta-empty-state-heading {
    font-weight: 800 !important;
    color: #374151 !important;
}

.fi-ta-empty-state-description {
    color: #9ca3af !important;
}


/* ═══════════════════════════════════
   15. AVATAR
   ═══════════════════════════════════ */
.fi-avatar {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}


/* ═══════════════════════════════════
   16. DROPDOWN MENUS
   ═══════════════════════════════════ */
.fi-dropdown-panel {
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    animation: vnDropIn 0.2s ease-out both;
}

@keyframes vnDropIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fi-dropdown-list-item {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 0.15s ease !important;
}

.fi-dropdown-list-item:hover {
    background: rgba(102, 126, 234, 0.06) !important;
}


/* ═══════════════════════════════════
   17. BREADCRUMBS
   ═══════════════════════════════════ */
.fi-breadcrumbs {
    font-weight: 600 !important;
}


/* ═══════════════════════════════════
   18. WIDGET SPECIFIC - Network Pulse
   ═══════════════════════════════════ */
.vn-network-pulse {
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.vn-server-node {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35) !important;
}

.vn-server-pulse {
    border-color: #667eea !important;
}


/* ═══════════════════════════════════
   19. WIDGET SPECIFIC - Welcome
   ═══════════════════════════════════ */
.vn-welcome-banner {
    border-radius: 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25) !important;
}


/* ═══════════════════════════════════
   20. LOADING STATES
   ═══════════════════════════════════ */
.fi-loading-indicator {
    animation: vnPulse 1.5s ease-in-out infinite;
}

@keyframes vnPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}


/* ═══════════════════════════════════
   21. TOGGLE & CHECKBOX
   ═══════════════════════════════════ */
.fi-toggle-input:checked {
    background-color: #667eea !important;
}

.fi-checkbox-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}