:root {
    --primary-color: #0a4226; /* Dark Green */
    --primary-dark: #052b18;
    --secondary-color: #c0c0c0; /* Silver/Diamond Gray */
    --bg-color: #f4f6f8;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--primary-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.brand {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.brand h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.brand span {
    font-size: 0.9rem;
    color: #99cbb4;
}

.nav-menu {
    list-style: none;
    padding: 1.5rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nav-menu li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-right: 4px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu li.active a, .nav-menu li a:hover {
    background-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    color: var(--secondary-color);
}

.logout-item {
    margin-top: auto;
    border-top: 1px solid rgba(192, 192, 192, 0.1);
}

.btn-logout {
    color: #ff6b6b !important;
}

.btn-logout:hover {
    background-color: rgba(255, 107, 107, 0.1) !important;
    border-right-color: #ff6b6b !important;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background-color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-color);
}

.topbar h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.content-area {
    padding: 2rem;
    flex-grow: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-right: 5px solid var(--secondary-color);
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Data Table */
.recent-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recent-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.data-table th, .data-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.success {
    background-color: #e1efe6;
    color: var(--primary-color);
}

.badge.warning {
    background-color: #fff3cd;
    color: #856404;
}
