:root {
    --admin-primary: #124C80;
    --admin-secondary: #5DA4C3;
    --admin-accent: #209f84;
    --admin-bg: #f4f6f9;
    --admin-sidebar-bg: #ffffff;
    --admin-sidebar-text: #5e6278;
    --admin-sidebar-active: #f1faff;
    --admin-sidebar-hover: #f3f6f9;
    --admin-text-main: #3f4254;
    --admin-text-muted: #b5b5c3;
    --admin-card-bg: #ffffff;
    --admin-border: #f1f1f2;
    --admin-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Sidebar Styling - Dark & Sleek */
#sidebar {
    width: 265px;
    height: 100vh;
    background: var(--admin-sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu ul {
    list-style: none;
}

.menu-label {
    padding: 10px 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #494b74;
    letter-spacing: 1px;
}

.sidebar-menu li a {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 4px 15px;
    border-radius: 8px;
}

.sidebar-menu li a i {
    font-size: 1.1rem;
    margin-right: 14px;
    width: 24px;
    text-align: center;
    transition: transform 0.2s;
}

.sidebar-menu li a:hover {
    background: var(--admin-sidebar-hover);
    color: var(--admin-primary);
}

.sidebar-menu li.active a {
    background: var(--admin-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(18, 76, 128, 0.3);
}

.sidebar-menu li.active a i {
    color: #fff;
}

/* Main Content Area */
#content {
    margin-left: 265px;
    padding: 30px 40px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 40px;
    margin: -30px -40px 30px -40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.page-title h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #181c32;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--admin-primary);
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--admin-shadow);
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-light-primary { background: #e1f0ff; color: var(--admin-primary); }
.bg-light-success { background: #c9f7f5; color: var(--admin-accent); }
.bg-light-warning { background: #fff4de; color: #ffa800; }
.bg-light-danger { background: #ffe2e5; color: #f64e60; }

.stat-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.stat-info p {
    color: var(--admin-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Glass & Section Cards */
.section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--admin-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--admin-border);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--admin-primary);
    margin-bottom: 4px;
}

.card-header p {
    color: var(--admin-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--admin-border);
}

td {
    padding: 15px;
    font-size: 0.9rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--admin-border);
}

tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.btn-admin {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--admin-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #0d3b66; box-shadow: 0 4px 10px rgba(18, 76, 128, 0.2);
}

.btn-light {
    background: #f3f6f9;
    color: #7e8299;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #3f4254;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e1e3ea;
    background: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--admin-primary);
    outline: none;
    background: #f3f6f9;
}

/* Login Page Aesthetic */
.login-wraper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    position: relative;
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--admin-primary);
    margin-bottom: 10px;
}

/* Layout Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 12px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 12px;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive */
@media (max-width: 991px) {
    #sidebar { left: -265px; }
    #sidebar.show { left: 0; }
    #content { margin-left: 0; padding: 20px; }
    .top-nav { padding: 15px 20px; }
}
