/* ===== DAECRM Filament – Sidebar & UI polish ===== */

/* Sidebar: subtle gradient, border, shadow */
.fi-sidebar {
    border-right: 1px solid rgb(226 232 240);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.dark .fi-sidebar {
    border-right-color: rgb(51 65 85);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(180deg, rgb(30 41 59) 0%, rgb(15 23 42) 100%) !important;
}

/* Sidebar nav items – hover & active */
.fi-sidebar-item-button {
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.fi-sidebar-item-button:hover {
    background: rgb(241 245 249);
}

.dark .fi-sidebar-item-button:hover {
    background: rgb(51 65 85);
}

.fi-sidebar-item-button.fi-active {
    background: rgb(var(--primary-500) / 0.12);
    font-weight: 600;
}

.dark .fi-sidebar-item-button.fi-active {
    background: rgb(var(--primary-400) / 0.2);
}

/* Sidebar group label */
.fi-sidebar-group-button {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0.5rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(100 116 139);
}

.dark .fi-sidebar-group-button {
    color: rgb(148 163 184);
}

/* Brand / logo area */
.fi-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgb(226 232 240);
}

.dark .fi-sidebar-header {
    border-bottom-color: rgb(51 65 85);
}

/* Main content area – soft background */
.fi-main {
    background: rgb(248 250 252);
}

.dark .fi-main {
    background: rgb(15 23 42);
}

/* Page header */
.fi-header {
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
}

/* Cards / sections */
.fi-section {
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .fi-section {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Tables – header and rows */
.fi-ta-header {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.75rem;
}

/* Buttons – slight roundness */
.fi-btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fi-btn:hover {
    transform: translateY(-1px);
}

/* Form inputs */
.fi-input {
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fi-input:focus {
    box-shadow: 0 0 0 3px rgb(var(--primary-500) / 0.2);
}

/* Stats widgets on dashboard */
.fi-wi-stats-overview-stat {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dark .fi-wi-stats-overview-stat:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
