:root {
    --primary: #1a3a5c;      /* Deep Navy Blue */
    --primary-dark: #122a45;  /* Darker Navy */
    --primary-light: #2c5f8a; /* Lighter Navy */
    --accent: #c9a84c;       /* Gold */
    --accent-light: #e0c878;  /* Light Gold */
    --dark: #1a2733;          /* Dark sidebar */
    --sidebar-width: 260px;
    --success: #2e7d32;
    --danger: #c62828;
    --warning: #e65100;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6f8;
    color: #333;
}

/* Login */
.login-page {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8a 50%, #c9a84c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h3 {
    color: #1a3a5c;
    font-weight: bold;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a2733 0%, #1a3a5c 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    background: rgba(0,0,0,0.2);
}

.sidebar-header h4 {
    margin: 0;
    font-weight: bold;
    color: #c9a84c;
    letter-spacing: 1px;
}

.sidebar-header small {
    color: #a0b4c8;
    font-size: 11px;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #c0d0e0;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(201, 168, 76, 0.15);
    color: white;
    border-left: 3px solid #c9a84c;
}

.sidebar-menu a.active {
    background: rgba(201, 168, 76, 0.25);
    color: white;
    border-left: 3px solid #c9a84c;
}

.sidebar-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #c9a84c;
}

.sidebar-menu hr {
    border-color: rgba(255,255,255,0.15);
    margin: 15px 20px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 20px;
}

.topbar {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #c9a84c;
}

/* Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border-top: 4px solid #c9a84c;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stats-card .icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.stats-card .number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #1a3a5c;
}

.stats-card .label {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icon-blue { background: #e8f0fe; color: #1a3a5c; }
.icon-green { background: #e6f4ea; color: #34a853; }
.icon-yellow { background: #fef7e0; color: #c9a84c; }
.icon-red { background: #fce8e6; color: #ea4335; }

/* Tables */
.table-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.table-card .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.table th {
    background: #1a3a5c;
    border-top: none;
    font-weight: 600;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 15px;
}

.table td {
    vertical-align: middle;
    font-size: 14px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f8f9fb;
}

.table-hover > tbody > tr:hover {
    background-color: #eef2f7;
}

/* Badges */
.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Forms */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 700px;
    border-top: 4px solid #c9a84c;
}

.form-label {
    font-weight: 600;
    color: #1a3a5c;
    font-size: 13px;
}

.form-control, .form-select {
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

/* Buttons */
.btn-action {
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
}

.btn-primary {
    background: #1a3a5c;
    border-color: #1a3a5c;
}

.btn-primary:hover {
    background: #122a45;
    border-color: #122a45;
}

.btn-success {
    background: #2e7d32;
    border-color: #2e7d32;
}

.btn-warning {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #1a3a5c;
}

.btn-danger {
    background: #c62828;
    border-color: #c62828;
}

/* Links */
a {
    color: #1a3a5c;
}

a:hover {
    color: #c9a84c;
}

/* Pagination */
.pagination .page-link {
    color: #1a3a5c;
    border: 1px solid #d0d5dd;
}

.pagination .page-item.active .page-link {
    background: #1a3a5c;
    border-color: #1a3a5c;
    color: white;
}

.pagination .page-link:hover {
    background: #eef2f7;
    color: #1a3a5c;
}

/* Alerts */
.alert-success {
    background: #e6f4ea;
    border-left: 4px solid #2e7d32;
    color: #2e7d32;
}

.alert-danger {
    background: #fce8e6;
    border-left: 4px solid #c62828;
    color: #c62828;
}

/* Modal */
.modal-header {
    background: #1a3a5c;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
}