:root {
    /* ------------------------------------------------------------
       BREEZE THEME: Modern Professional Light Aesthetic
       ------------------------------------------------------------ */

    /* Core Palette: Clean & Trustworthy */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --bg-surface: #ffffff;
    /* Pure White */
    --bg-sidebar: #ffffff;

    /* Primary Accents: Fresh Teal / Royal Blue */
    --primary-color: #0f766e;
    /* Teal 700 */
    --primary-hover: #115e59;
    /* Teal 800 */
    --primary-light: #ccfbf1;
    /* Teal 100 */
    --primary-border: #99f6e4;
    /* Teal 200 */

    /* Secondary / Neutrals */
    --secondary-color: #64748b;
    /* Slate 500 */
    --text-main: #1e293b;
    /* Slate 800 - High Contrast */
    --text-muted: #64748b;
    /* Slate 500 */
    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Typography */
    --font-main: 'Outfit', 'Segoe UI', sans-serif;

    /* Metrics & Effects */
    --sidebar-width: 260px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;

    /* Soft Shadows for Depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* ------------------------------------------------------------
   Global Resets & Typography
   ------------------------------------------------------------ */
body {
    background-color: var(--bg-body);
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ------------------------------------------------------------
   Layout Components (Cards, Panels)
   ------------------------------------------------------------ */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
}

.card-body {
    padding: 1.5rem;
}

/* ------------------------------------------------------------
   Sidebar (Clean White Left Panel)
   ------------------------------------------------------------ */
.sidebar {
    width: var(--sidebar-width) !important;
    --bs-offcanvas-width: var(--sidebar-width);
    /* Override Bootstrap Default */
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    z-index: 1030;
    /* Below Backdrop (1040) */
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.35rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.sidebar .nav-link:hover i {
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link.active i {
    color: var(--primary-color);
}

.sidebar hr {
    border-color: var(--border-color);
    opacity: 0.7;
}

/* ------------------------------------------------------------
   Top Navigation
   ------------------------------------------------------------ */
.top-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1020;
    /* Below Sidebar and Backdrop */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

/* ------------------------------------------------------------
   Layout Structure
   ------------------------------------------------------------ */
.main-content {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    background: rgba(248, 250, 252, 0.95);
    /* More opaque, no filter to avoid stacking context issues */
    transition: margin-left 0.3s ease;
}

@media (min-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        display: flex !important;
        transform: none !important;
        visibility: visible !important;
    }

    .main-content,
    .top-navbar {
        margin-left: var(--sidebar-width) !important;
        width: calc(100% - var(--sidebar-width)) !important;
    }

    .sidebar .offcanvas-header {
        display: none !important;
    }
}

/* ------------------------------------------------------------
   Components: Buttons & Forms
   ------------------------------------------------------------ */
/* Primary Action Button */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.2);
    /* Teal tint shadow */
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(15, 118, 110, 0.3);
}

.form-control,
.form-select {
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
    background-color: #fff;
}

.form-label {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.input-group-text {
    background-color: #f1f5f9;
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */
.table {
    border-color: var(--border-color);
}

.table thead th {
    background-color: #f8fafc;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody td {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    vertical-align: middle;
    color: var(--text-main);
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* ------------------------------------------------------------
   Login Page Specific
   ------------------------------------------------------------ */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Gentle, professional gradient fallback */
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

/* Minimal geometric decoration - retained as overlay */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    z-index: 10;
}

.login-card .card-body {
    padding: 2.5rem;
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.transition-all {
    transition: all 0.3s ease;
}