
/* 🎨 Global Reset & Body - Matching Theme */
* {
    box-sizing: border-box; 
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Soft Blue Theme Background */
    background-color: #e9f1ff; 
    color: #343a40;
    font-size: 15px;
    line-height: 1.6;
}

/* 🖼️ Header - Using Primary Blue */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    /* Primary blue color from the theme */
    background-color: #0a58ca;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; 
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}
.header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}
.header-right { display: flex; align-items: center; }

/* ☰ Menu Button - Using a slightly darker primary blue */
.menu-btn {
    font-size: 16px;
    cursor: pointer;
    color: white;
    /* Darker blue for button contrast (Matching button:hover) */
    background-color: #084298; 
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    transition: background-color 0.2s, transform 0.1s;
    font-weight: 600;
}
.menu-btn:hover { 
    background-color: #052c65; /* Even darker on hover */
    transform: translateY(-1px);
}

/* 🧭 Sidebar - Dark blue/gray contrast */
.sidebar {
    width: 240px; 
    background-color: #343a40; /* Keeping dark sidebar for contrast */
    color: #f8f9fa;
    height: 100vh;
    position: fixed;
    top: 60px; 
    left: -240px;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    padding-top: 20px;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.sidebar.active { left: 0; }
.sidebar h2 { 
    text-align: center; 
    margin-bottom: 25px; 
    font-size: 20px; 
    color: #adb5bd; 
    padding: 0 15px;
}
.sidebar a {
    display: block;
    color: #ced4da;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0 3px 3px 0;
}
.sidebar a:hover { 
    background-color: #495057; 
    border-left: 4px solid #0a58ca; /* Primary blue indicator */
    color: white;
}

/* 📄 Content */
.content {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
}
.content.shift { margin-left: 240px; }

/* 📦 Cards */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    /* Using soft blue for subtle card border */
    border: 1px solid #c9d6ff; 
}

/* 📊 Tables */
.table-container { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden; 
}
th, td {
    border: none;
    border-bottom: 1px solid #c9d6ff; /* Soft blue table divider */
    padding: 10px 12px;
    word-wrap: break-word;
    text-align: left;
}
th {
    /* Primary blue for table header */
    background-color: #0a58ca; 
    color: white;
    position: sticky;
    top: 0;
    font-weight: 600;
    z-index: 1;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
tr:nth-child(even) { background-color: #f6faff; } /* Very light blue stripe */
tr:nth-child(odd) { background-color: #ffffff; }
tr:hover { background-color: #e9f1ff; } /* Soft blue hover */

/* 🖋️ Headings */
h3 { 
    margin-top: 25px; 
    margin-bottom: 15px;
    color: #0a58ca; /* Primary blue for main section headings */
    font-size: 20px; 
    border-bottom: 2px solid #c9d6ff; /* Soft blue separator */
    padding-bottom: 5px;
}
h4 { 
    margin-top: 15px; 
    margin-bottom: 10px; 
    font-size: 16px; 
    color: #343a40; 
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
    .sidebar { width: 200px; left: -200px; top: 60px; }
    .content.shift { margin-left: 200px; }
    
    .header { 
        height: 50px; 
        padding: 0 10px;
    }
    .header h1 { 
        font-size: 18px; 
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis; 
        max-width: 60%; 
    }
    .menu-btn { 
        font-size: 14px; 
        padding: 6px 10px;
    }

    th, td { padding: 8px 10px; font-size: 13px; }
    h3 { font-size: 18px; }
    h4 { font-size: 14px; }
    .card { padding: 15px; }
}
