/* ============================================
   PREMIUM HOUSEKEEPING & CMS LAYOUT
   Beautiful Admin Panel Design
   ============================================ */

/* Filament Admin Panel Overrides */
.fi-sidebar,
[class*="fi-sidebar"] {
    background: var(--theme-surface) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 2px solid var(--theme-border) !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3) !important;
}

.fi-sidebar-nav,
[class*="fi-sidebar-nav"] {
    padding: 1.5rem !important;
}

.fi-sidebar-nav-item,
[class*="fi-sidebar-nav-item"] {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid transparent !important;
}

.fi-sidebar-nav-item:hover,
[class*="fi-sidebar-nav-item"]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--theme-border) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.fi-sidebar-nav-item.active,
[class*="fi-sidebar-nav-item"].active {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 20px var(--theme-glow) !important;
    color: white !important;
}

/* Main Content Area */
.fi-main,
[class*="fi-main"] {
    background: var(--theme-darker) !important;
    min-height: 100vh !important;
}

.fi-header,
[class*="fi-header"] {
    background: var(--theme-surface) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 2px solid var(--theme-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    padding: 1.5rem 2rem !important;
}

/* Cards & Panels */
.fi-section,
[class*="fi-section"],
.fi-card,
[class*="fi-card"] {
    background: var(--theme-surface) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--theme-glow) !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.fi-section:hover,
.fi-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--theme-glow) !important;
    transform: translateY(-2px) !important;
}

/* Buttons in Housekeeping */
.fi-btn,
[class*="fi-btn"],
button[type="submit"],
button[type="button"] {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    color: white !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--theme-glow) !important;
    position: relative !important;
    overflow: hidden !important;
}

.fi-btn:hover,
button:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 25px var(--theme-glow) !important;
}

.fi-btn:active,
button:active:not(:disabled) {
    transform: translateY(0) !important;
}

.fi-btn-primary,
button[type="submit"] {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
}

.fi-btn-danger,
button.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.fi-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--theme-border) !important;
}

/* Tables */
.fi-ta-table,
[class*="fi-ta-table"],
table {
    background: var(--theme-surface) !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    border: 2px solid var(--theme-border) !important;
}

.fi-ta-table thead,
table thead {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
}

.fi-ta-table th,
table th {
    padding: 1rem !important;
    font-weight: 700 !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.875rem !important;
}

.fi-ta-table td,
table td {
    padding: 1rem !important;
    border-bottom: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
    transition: background 0.2s ease !important;
}

.fi-ta-table tbody tr:hover,
table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.fi-ta-table tbody tr:last-child td,
table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Forms */
.fi-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    color: var(--theme-text) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.fi-input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1), 0 0 20px var(--theme-glow) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.fi-label,
label {
    color: var(--theme-text) !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Modals & Dialogs */
.fi-modal,
[class*="fi-modal"],
.fi-dialog,
[class*="fi-dialog"] {
    background: var(--theme-surface) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--theme-glow) !important;
    padding: 2rem !important;
}

.fi-modal-header,
[class*="fi-modal-header"] {
    border-bottom: 2px solid var(--theme-border) !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.fi-modal-title,
[class*="fi-modal-title"] {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Breadcrumbs */
.fi-breadcrumbs,
[class*="fi-breadcrumbs"] {
    margin-bottom: 1.5rem !important;
}

.fi-breadcrumbs-item,
[class*="fi-breadcrumbs-item"] {
    color: var(--theme-text-muted) !important;
}

.fi-breadcrumbs-item.active,
[class*="fi-breadcrumbs-item"].active {
    color: var(--theme-primary) !important;
    font-weight: 600 !important;
}

/* Stats & Widgets */
.fi-stats-overview,
[class*="fi-stats"],
.fi-widget,
[class*="fi-widget"] {
    background: var(--theme-surface) !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.fi-stats-overview:hover,
.fi-widget:hover {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--theme-glow) !important;
    transform: translateY(-3px) !important;
}

.fi-stats-overview-stat-label,
[class*="fi-stats-label"] {
    color: var(--theme-text-muted) !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.fi-stats-overview-stat-value,
[class*="fi-stats-value"] {
    font-size: 2rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badges & Tags */
.fi-badge,
[class*="fi-badge"],
.badge {
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.fi-badge-primary,
.badge-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
    color: white !important;
}

.fi-badge-success,
.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.fi-badge-danger,
.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
}

/* Action Buttons */
.fi-action,
[class*="fi-action"] {
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.fi-action:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05) !important;
}

/* Dropdowns */
.fi-dropdown,
[class*="fi-dropdown"] {
    background: var(--theme-surface) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--theme-glow) !important;
    padding: 0.5rem !important;
}

.fi-dropdown-item,
[class*="fi-dropdown-item"] {
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    color: var(--theme-text) !important;
}

.fi-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(5px) !important;
}

/* Tabs */
.fi-tabs,
[class*="fi-tabs"] {
    border-bottom: 2px solid var(--theme-border) !important;
    margin-bottom: 2rem !important;
}

.fi-tabs-item,
[class*="fi-tabs-item"] {
    padding: 0.75rem 1.5rem !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    color: var(--theme-text-muted) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.fi-tabs-item:hover {
    color: var(--theme-text) !important;
}

.fi-tabs-item.active {
    border-bottom-color: var(--theme-primary) !important;
    color: var(--theme-primary) !important;
}

/* Alerts & Notifications */
.fi-alert,
[class*="fi-alert"],
.alert {
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem !important;
    border: 2px solid !important;
    margin-bottom: 1rem !important;
}

.fi-alert-success,
.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.fi-alert-danger,
.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.fi-alert-warning,
.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.fi-alert-info,
.alert-info {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* Pagination */
.fi-pagination,
[class*="fi-pagination"] {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 2rem !important;
}

.fi-pagination-item,
[class*="fi-pagination-item"] {
    min-width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 0.75rem !important;
    color: var(--theme-text) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.fi-pagination-item:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--theme-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.fi-pagination-item.active {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
    border-color: var(--theme-primary) !important;
    color: white !important;
    box-shadow: 0 0 20px var(--theme-glow) !important;
}

.fi-pagination-item.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

/* Search & Filters */
.fi-search,
[class*="fi-search"] {
    position: relative !important;
}

.fi-search-input,
[class*="fi-search-input"] {
    padding-left: 3rem !important;
}

.fi-search-icon,
[class*="fi-search-icon"] {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.6 !important;
}

/* Loading States */
.fi-loading,
[class*="fi-loading"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 4rem !important;
}

.fi-loading-spinner,
[class*="fi-loading-spinner"] {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid rgba(255, 255, 255, 0.1) !important;
    border-top-color: var(--theme-primary) !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .fi-sidebar {
        transform: translateX(-100%) !important;
    }

    .fi-sidebar.open {
        transform: translateX(0) !important;
    }
}

/* Custom Scrollbar for Housekeeping */
.fi-main::-webkit-scrollbar,
[class*="fi-main"]::-webkit-scrollbar {
    width: 12px !important;
}

.fi-main::-webkit-scrollbar-track,
[class*="fi-main"]::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
}

.fi-main::-webkit-scrollbar-thumb,
[class*="fi-main"]::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
    border-radius: 10px !important;
}

.fi-main::-webkit-scrollbar-thumb:hover,
[class*="fi-main"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-primary) 100%) !important;
}

/* Dashboard Overview */
.fi-dashboard,
[class*="fi-dashboard"] {
    padding: 2rem !important;
}

.fi-dashboard-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}

/* Resource Lists */
.fi-resource-list,
[class*="fi-resource-list"] {
    background: var(--theme-surface) !important;
    border-radius: 1.25rem !important;
    border: 2px solid var(--theme-border) !important;
    overflow: hidden !important;
}

/* Action Groups */
.fi-action-group,
[class*="fi-action-group"] {
    display: flex !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

/* Empty States */
.fi-empty-state,
[class*="fi-empty-state"] {
    text-align: center !important;
    padding: 4rem 2rem !important;
    color: var(--theme-text-muted) !important;
}

.fi-empty-state-icon,
[class*="fi-empty-state-icon"] {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 1.5rem !important;
    opacity: 0.5 !important;
}

.fi-empty-state-title,
[class*="fi-empty-state-title"] {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: var(--theme-text) !important;
}

/* Tooltips */
.fi-tooltip,
[class*="fi-tooltip"] {
    background: var(--theme-surface) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    color: var(--theme-text) !important;
    font-size: 0.875rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--theme-glow) !important;
}
