/* ================================================
   DTSS Admin - Custom Brand Styles
   Colors: Navy #00365A, Cyan #0099CC, Green #5BAD2F
   ================================================ */

/* ---- Sidebar - Light brand background ---- */
.fi-sidebar {
    background: linear-gradient(180deg, #f0f7fb 0%, #e6f2f8 100%) !important;
    border-right: 1px solid #d0e4ef !important;
}
.fi-sidebar-header {
    border-color: #d0e4ef !important;
}
.fi-sidebar-nav-groups {
    background: transparent !important;
}

/* Sidebar nav items */
.fi-sidebar-item {
    color: #00365A !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 0.5rem;
}
.fi-sidebar-item:hover {
    background: rgba(0,153,204,0.1) !important;
    color: #0099CC !important;
    transform: translateX(3px);
}
.fi-sidebar-item.fi-active {
    background: linear-gradient(135deg, #00365A, #0077a8) !important;
    color: white !important;
    border-radius: 0.5rem;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0,54,90,0.25);
}
.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: white !important;
}
.fi-sidebar-item .fi-sidebar-item-icon {
    color: #0099CC !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.fi-sidebar-item:hover .fi-sidebar-item-icon {
    color: #0077a8 !important;
}

/* Sidebar group labels */
.fi-sidebar-group-label {
    color: #5B5B5B !important;
    text-transform: uppercase;
    font-size: 0.65rem !important;
    letter-spacing: 0.08em;
}

/* Sidebar collapse button & chevrons */
.fi-sidebar-nav .fi-icon-btn,
.fi-sidebar-group-button .fi-icon-btn,
.fi-sidebar-group svg {
    color: #5B5B5B !important;
}
.fi-sidebar-nav .fi-icon-btn:hover,
.fi-sidebar-group-button:hover .fi-icon-btn {
    color: #00365A !important;
}

/* ---- Topbar - subtle brand accent ---- */
.fi-topbar {
    background: white !important;
    border-bottom: 2px solid #0099CC !important;
    box-shadow: 0 1px 3px rgba(0,54,90,0.06);
}

/* ---- Page headers ---- */
.fi-header-heading {
    color: #00365A !important;
}

/* ---- Section headers with brand color ---- */
.fi-section-header {
    border-bottom: 1px solid #f1f5f9;
}
.fi-section-header-heading {
    color: #00365A !important;
}
.fi-section-header-description {
    color: #5B5B5B !important;
}

/* ---- Entity Group Headers ---- */
.fi-ta-group-header {
    background: linear-gradient(135deg, #00365A 0%, #0099CC 100%) !important;
    border-radius: 0.5rem !important;
    margin-top: 0.75rem !important;
    padding: 0.75rem 1.25rem !important;
    box-shadow: 0 3px 10px rgba(0, 153, 204, 0.2);
    transition: all 0.2s;
}
.fi-ta-group-header:hover {
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.3) !important;
}
.fi-ta-group-header h4 {
    color: white !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}
.fi-ta-group-header p { color: rgba(255, 255, 255, 0.7) !important; }
.fi-ta-group-header .fi-icon-btn { color: white !important; }
.fi-ta-group-header svg { color: rgba(255, 255, 255, 0.65) !important; }
.fi-ta-group-header .fi-checkbox-input { border-color: rgba(255, 255, 255, 0.5) !important; }

/* ---- Table styling ---- */
.fi-ta-header-cell {
    background: #f8fafc !important;
    color: #00365A !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.7rem !important;
    letter-spacing: 0.04em;
}
.fi-ta-row { transition: background-color 0.15s; }
.fi-ta-row:hover { background-color: rgba(0, 153, 204, 0.04) !important; }

/* ---- Stats Cards ---- */
.fi-wi-stats-overview-stat {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
    border-radius: 0.75rem !important;
    border-top: 3px solid #0099CC !important;
}
.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* ---- Action Buttons ---- */
.fi-ta-actions .fi-btn-sm {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 0.5rem !important;
}

/* ---- Table Badges ---- */
.fi-ta-text .fi-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    font-weight: 600;
    border-radius: 999px;
}

/* ---- Sections ---- */
.fi-section {
    border-radius: 0.75rem !important;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
}

/* ---- Breadcrumbs ---- */
.fi-breadcrumbs a {
    color: #0099CC !important;
}
.fi-breadcrumbs a:hover {
    color: #00365A !important;
}

/* ---- Navigation badge (notifications) ---- */
.fi-sidebar-item-badge {
    background: #ef4444 !important;
    color: white !important;
}

/* ---- Widgets table headings ---- */
.fi-wi-table .fi-ta-header-cell {
    background: #f0f9ff !important;
}

/* ---- Smooth transitions everywhere ---- */
.fi-ta-cell, .fi-badge, .fi-section, .fi-modal-content {
    transition: all 0.2s ease;
}
.fi-btn, .fi-icon-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.fi-btn:hover {
    transform: translateY(-1px);
}
.fi-btn:active {
    transform: translateY(0) scale(0.98);
}
.fi-icon-btn:hover {
    transform: scale(1.1);
}
.fi-icon-btn:active {
    transform: scale(0.95);
}
.fi-ta-row {
    transition: background-color 0.2s ease;
}
.fi-link {
    transition: color 0.2s ease !important;
}

/* ---- Login page gradient ---- */
.fi-simple-layout {
    background: linear-gradient(135deg, #00365A 0%, #004d7a 30%, #0099CC 60%, #5BAD2F 100%) !important;
    background-size: 400% 400% !important;
    animation: gradientMove 15s ease infinite !important;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.fi-simple-main {
    border-radius: 1.25rem !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3) !important;
}

/* ============ DARK MODE ============ */

.dark .fi-sidebar {
    background: linear-gradient(180deg, #0c1929 0%, #060e1a 100%) !important;
    border-right-color: #1e293b !important;
}
.dark .fi-sidebar-item {
    color: #cbd5e1 !important;
}
.dark .fi-sidebar-item:hover {
    background: rgba(0,153,204,0.15) !important;
    color: white !important;
}
.dark .fi-sidebar-item.fi-active {
    background: linear-gradient(135deg, #0077a8, #0099CC) !important;
    color: white !important;
}
.dark .fi-sidebar-item .fi-sidebar-item-icon {
    color: #38bdf8 !important;
}
.dark .fi-sidebar-group-label {
    color: #64748b !important;
}

.dark .fi-topbar {
    background: #0f172a !important;
    border-bottom-color: #0099CC !important;
}

.dark .fi-section {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
.dark .fi-wi-stats-overview-stat {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    border-top-color: #0099CC !important;
}

.dark .fi-ta-header-cell {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}
.dark .fi-ta-cell { color: #e2e8f0 !important; }
.dark .fi-ta-row:hover { background-color: rgba(0, 153, 204, 0.08) !important; }

.dark .fi-ta-group-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 100%) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

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

.dark .fi-input {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
.dark .fi-select-input { background-color: #0f172a !important; }
.dark .fi-modal-content { background-color: #1e293b !important; }

.dark .fi-logo img,
.dark .fi-sidebar-header img {
    filter: brightness(1.3) contrast(1.1);
}

.dark .fi-wi-stats-overview-stat:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dark .fi-wi-table .fi-ta-header-cell {
    background: #162032 !important;
}
