/* ============================================
   AI ADMIN - PROFESSIONAL THEME
   Filament 3 Compatible
   ============================================ */

/* ============================================
   BODY & ROOT
   ============================================ */
body,
.fi-body {
    background-color: #f1f5f9 !important;
}

/* ============================================
   SIDEBAR - Dark Teal
   ============================================ */
aside.fi-sidebar,
.fi-sidebar.fi-main-sidebar,
.fi-main-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    background-color: #1e293b !important;
    border-right: none !important;
}

/* Sidebar Header Container */
.fi-sidebar-header-ctn {
    background-color: transparent !important;
}

/* Sidebar Header */
.fi-sidebar-header {
    padding: 1.25rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: transparent !important;
}

/* Logo/Brand - White text */
.fi-sidebar .fi-logo,
.fi-sidebar .fi-logo *,
.fi-sidebar-header a,
.fi-sidebar-header span,
.fi-logo span,
.fi-logo {
    color: #ffffff !important;
}

/* Navigation Container */
.fi-sidebar-nav {
    padding: 0.75rem !important;
    background-color: transparent !important;
}

/* Navigation Groups */
.fi-sidebar-nav-groups {
    background-color: transparent !important;
}

.fi-sidebar-group {
    background-color: transparent !important;
}

/* Group Button/Label */
.fi-sidebar-group-btn {
    color: rgba(255, 255, 255, 0.5) !important;
}

.fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.fi-sidebar-group-btn svg,
.fi-sidebar-group-collapse-btn svg {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Group Items Container */
.fi-sidebar-group-items {
    background-color: transparent !important;
}

/* Sidebar Items */
.fi-sidebar-item {
    background-color: transparent !important;
}

.fi-sidebar-item-btn {
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    margin: 2px 0 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    background-color: transparent !important;
    transition: all 0.2s ease !important;
}

.fi-sidebar-item-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Active Sidebar Item - White Background */
.fi-sidebar-item.fi-active .fi-sidebar-item-btn,
li.fi-sidebar-item.fi-active .fi-sidebar-item-btn,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: #ffffff !important;
    color: #134e4a !important;
    font-weight: 600 !important;
}

/* Sidebar Item Icon */
.fi-sidebar-item-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #134e4a !important;
}

/* Sidebar Item Label */
.fi-sidebar-item-label {
    color: inherit !important;
}

/* ============================================
   TENANT MENU (Company Selector)
   ============================================ */
.fi-sidebar-nav-tenant-menu-ctn {
    background-color: transparent !important;
}

.fi-tenant-menu-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
}

.fi-tenant-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================
   TOP BAR
   ============================================ */
.fi-topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.fi-main,
main.fi-main {
    background-color: #f1f5f9 !important;
}

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

/* ============================================
   ADMIN PANEL - Layout & No Scroll
   ============================================ */
body.fi-panel-admin {
    overflow-x: hidden !important;
}

body.fi-panel-admin .fi-layout {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body.fi-panel-admin .fi-main,
body.fi-panel-admin main.fi-main {
    padding: 0.75rem 1rem !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

body.fi-panel-admin .fi-main-ctn {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

body.fi-panel-admin .fi-page {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Tables scroll within their own container */
body.fi-panel-admin .fi-ta {
    overflow-x: auto !important;
    max-width: 100% !important;
}

body.fi-panel-admin .fi-ta-table {
    min-width: 0 !important;
}

/* Form sections fit within page */
body.fi-panel-admin .fi-fo {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Relation managers */
body.fi-panel-admin .fi-re {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ============================================
   SECTIONS/CARDS
   ============================================ */
.fi-section,
section.fi-section {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}

.fi-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.fi-section-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1rem 1.5rem !important;
    background-color: #ffffff !important;
}

.fi-section-header-heading {
    color: #1e293b !important;
    font-weight: 600 !important;
}

.fi-section-content,
.fi-section-content-ctn {
    padding: 1.5rem !important;
    background-color: #ffffff !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.fi-btn {
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Primary Button - Orange Gradient */
.fi-btn.fi-color-primary,
button.fi-btn.fi-color-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3) !important;
}

.fi-btn.fi-color-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* ============================================
   TABLES
   ============================================ */
.fi-ta-table {
    background-color: #ffffff !important;
}

.fi-ta-header-cell {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fi-ta-row {
    border-color: #f1f5f9 !important;
}

.fi-ta-row:hover {
    background-color: #f8fafc !important;
}

.fi-ta-cell {
    color: #334155 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* ============================================
   FORMS
   ============================================ */
.fi-input,
.fi-select,
.fi-textarea,
input.fi-input,
select.fi-select,
textarea.fi-textarea {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    color: #1e293b !important;
}

.fi-input:focus,
.fi-select:focus,
.fi-textarea:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1) !important;
    outline: none !important;
}

.fi-fo-field-wrp label,
.fi-fo-field-wrp-label {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* ============================================
   WIDGETS - Stats
   ============================================ */
.fi-wi-stats-overview {
    gap: 1rem !important;
}

.fi-wi-stats-overview-stat {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    padding: 1.25rem !important;
}

.fi-wi-stats-overview-stat:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.fi-wi-stats-overview-stat-value {
    color: #1e293b !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}

.fi-wi-stats-overview-stat-label {
    color: #64748b !important;
    font-size: 0.875rem !important;
}

/* ============================================
   BADGES
   ============================================ */
.fi-badge {
    border-radius: 9999px !important;
    font-weight: 500 !important;
}

/* ============================================
   MODALS
   ============================================ */
.fi-modal-window {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.fi-modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.fi-notification {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   PAGINATION
   ============================================ */
.fi-pagination-item-btn {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    color: #475569 !important;
}

.fi-pagination-item-btn:hover {
    background-color: #f8fafc !important;
    border-color: #06b6d4 !important;
    color: #06b6d4 !important;
}

.fi-pagination-item-btn.fi-active {
    background-color: #06b6d4 !important;
    border-color: #06b6d4 !important;
    color: #ffffff !important;
}

/* ============================================
   TABS
   ============================================ */
.fi-tabs-tab {
    color: #64748b !important;
}

.fi-tabs-tab:hover {
    color: #1e293b !important;
}

.fi-tabs-tab[aria-selected="true"] {
    color: #06b6d4 !important;
    border-color: #06b6d4 !important;
}

/* ============================================
   DROPDOWN
   ============================================ */
.fi-dropdown-list {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.fi-dropdown-list-item-btn {
    color: #475569 !important;
}

.fi-dropdown-list-item-btn:hover {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

/* ============================================
   HEADERS
   ============================================ */
.fi-header-heading {
    color: #1e293b !important;
    font-weight: 700 !important;
}

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

/* ============================================
   TOGGLE
   ============================================ */
.fi-toggle-on {
    background-color: #06b6d4 !important;
}

/* ============================================
   LOADING
   ============================================ */
.fi-loading-indicator {
    color: #06b6d4 !important;
}

/* ============================================
   ICON BUTTONS
   ============================================ */
.fi-icon-btn {
    color: #64748b !important;
}

.fi-icon-btn:hover {
    color: #1e293b !important;
    background-color: #f1f5f9 !important;
}

/* ============================================
   AVATAR
   ============================================ */
.fi-avatar {
    border: 2px solid #e2e8f0 !important;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.fi-breadcrumbs-item {
    color: #64748b !important;
}

.fi-breadcrumbs-item-separator {
    color: #cbd5e1 !important;
}
