/* Windows 11 Modern Fluent Design Variables */
:root {
    --fluent-bg: #f3f3f3;
    --fluent-card-bg: rgba(255, 255, 255, 0.85);
    --fluent-text: #1a1a1a;
    --fluent-text-muted: #5c5c5c;
    --fluent-border: rgba(0, 0, 0, 0.08);
    --fluent-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    --fluent-hover-bg: rgba(0, 0, 0, 0.04);
    --fluent-sidebar-bg: rgba(255, 255, 255, 0.75);
    --fluent-sidebar-text: #202020;
    --fluent-sidebar-active: #0067b8;
    --fluent-sidebar-active-bg: rgba(0, 103, 184, 0.1);
}

/* 3-Color Mode Switch Override: DARK MODE */
[data-theme="dark"] {
    --fluent-bg: #202020;
    --fluent-card-bg: rgba(32, 32, 32, 0.75);
    --fluent-text: #ffffff;
    --fluent-text-muted: #adadad;
    --fluent-border: rgba(255, 255, 255, 0.08);
    --fluent-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --fluent-hover-bg: rgba(255, 255, 255, 0.06);
    --fluent-sidebar-bg: rgba(24, 24, 24, 0.8);
    --fluent-sidebar-text: #ffffff;
    --fluent-sidebar-active: #60cdff;
    --fluent-sidebar-active-bg: rgba(96, 205, 255, 0.15);
}

/* 3-Color Mode Switch Override: DEPED BLUE MODE */
[data-theme="deped"] {
    --fluent-bg: #092237;
    --fluent-card-bg: rgba(13, 60, 97, 0.85);
    --fluent-text: #ffffff;
    --fluent-text-muted: #b8cce0;
    --fluent-border: rgba(255, 255, 255, 0.12);
    --fluent-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --fluent-hover-bg: rgba(255, 255, 255, 0.08);
    --fluent-sidebar-bg: rgba(9, 34, 55, 0.9);
    --fluent-sidebar-text: #ffffff;
    --fluent-sidebar-active: #ffc107;
    --fluent-sidebar-active-bg: rgba(255, 193, 7, 0.2);
}

/* Base Body Styles */
body {
    background-color: var(--fluent-bg) !important;
    color: var(--fluent-text) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Floating Card / Container Design */
.card, .form-card, .analytics-card, .lifecycle-container, .top-header {
    background: var(--fluent-card-bg) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--fluent-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--fluent-shadow) !important;
    color: var(--fluent-text) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

/* Elevated Floated Icons & Cards */
.card:hover, .analytics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.icon-box {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px !important;
}

/* Floating Navigation Sidebar Windows 11 Styling */
.sidebar {
    background: var(--fluent-sidebar-bg) !important;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-right: 1px solid var(--fluent-border) !important;
}

.sidebar-brand span {
    color: var(--fluent-sidebar-text) !important;
}

.sidebar-nav .nav-link {
    color: var(--fluent-sidebar-text) !important;
    border-radius: 8px;
    margin: 2px 12px;
    padding: 0.6rem 1rem !important;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--fluent-hover-bg) !important;
}

.sidebar-nav .nav-link.active {
    color: var(--fluent-sidebar-active) !important;
    background-color: var(--fluent-sidebar-active-bg) !important;
    font-weight: 600;
}

/* Form Fields & Controls */
.form-control, .form-select {
    background-color: var(--fluent-card-bg) !important;
    color: var(--fluent-text) !important;
    border: 1px solid var(--fluent-border) !important;
    border-radius: 8px !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--fluent-sidebar-active) !important;
    box-shadow: 0 0 0 3px var(--fluent-sidebar-active-bg) !important;
}

.table {
    color: var(--fluent-text) !important;
}

.table-light {
    background-color: var(--fluent-hover-bg) !important;
    color: var(--fluent-text) !important;
}