:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent: #ffd700;
    --text: #1b1b1b;
    --text-light: #757575;
    --bg-sidebar: #122613;
    --bg-body: #f8f9fa;
    --surface: #ffffff;
    --border: #e0e0e0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-body);
    font-family: "Inter", sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    height: 100vh;
    background-color: var(--bg-sidebar);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--accent);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 25px !important;
    margin: 5px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.nav-link.active {
    background-color: var(--primary);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Main Content area */
.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Card Styling - Premium Feel */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
    background-color: var(--surface);
}

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

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    font-weight: 700;
}

/* Dashboard Stat Cards */
.stat-card {
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.05;
    color: var(--primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
    color: var(--primary-dark);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table Styling */
.table {
    vertical-align: middle;
}

.table thead th {
    border-bottom: 2px solid var(--border);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

/* Badge Styling */
.badge-custom {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 25px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Form Styling */
.form-control {
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    border-color: var(--border);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.1);
}

/* Top Navigation Bar */
.top-nav {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    margin-top: -40px;
    margin-left: -40px;
    margin-right: -40px;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar.active {
        transform: translateX(0);
    }
}
