:root {
    --primary-color: #0d47a1;
    --secondary-color: #1e88e5;
    --text-color: #333;
    --white: #ffffff;
    --bg-light: #f4f6f9;
    --sidebar-width: 250px;
}

/* RESET & CORE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9 !important;
    /* Force Light Grey */
    display: flex;
    min-height: 100vh;
    color: #333;
}

/* Remove potential overlays */
.overlay,
.modal-backdrop,
.backdrop {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #0d47a1 !important;
    /* Force Blue */
    color: #ffffff !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border-left: 4px solid #1e88e5;
    /* Secondary Blue */
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer a {
    color: #ffcdd2;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f4f6f9 !important;
    /* Force Background */
    position: relative;
    z-index: 1;
    /* Ensure content is clickable */
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: transparent;
}

.header-bar h2 {
    color: #444;
}

.card {
    background: #ffffff !important;
    /* Force White Card */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: white;
    padding: 10px;
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    color: #0d47a1;
    font-weight: 600;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    background-color: #0d47a1;
    color: white;
}

.btn:hover {
    background-color: #082e6b;
}

/* Login Page Specific */
body.login-body {
    background-color: #e3f2fd !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    background: #ffffff !important;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}