:root {
    --primary-color: #006a4e; /* Bangladesh flag deep green */
    --primary-hover: #00523c;
    --secondary-color: #f42a41; /* Bangladesh flag red */
    --secondary-hover: #d02033;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-green: #003628;
    --text-muted: #6c757d;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', 'AdorshoLipi', sans-serif;
    background-color: var(--light-bg);
    color: #212529;
}

/* Custom colors and buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: 0 4px 12px rgba(0, 106, 78, 0.25) !important;
}

.btn-danger {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transition: all 0.3s ease;
}
.btn-danger:hover, .btn-danger:focus {
    background-color: var(--secondary-hover) !important;
    border-color: var(--secondary-hover) !important;
    box-shadow: 0 4px 12px rgba(244, 42, 65, 0.25) !important;
}

.bg-primary-green {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-primary-green {
    color: var(--primary-color) !important;
}

/* Header & Navigation */
.navbar-custom {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--white) !important;
}
.navbar-custom .nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

.navbar-brand img {
    height: 35px;
    margin-right: 10px;
}

/* Sidebar for dashboard */
.sidebar {
    background-color: var(--white);
    min-height: calc(100vh - 56px);
    box-shadow: var(--card-shadow);
}
.sidebar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 10px;
    transition: all 0.2s ease;
}
.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background-color: rgba(0, 106, 78, 0.1);
    color: var(--primary-color);
}

/* Dashboard Cards */
.card-stat {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.card-stat .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Login Page Styling */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
}
.login-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: var(--white);
}
.login-card-header {
    background-color: var(--white);
    border-bottom: none;
    text-align: center;
    padding: 40px 40px 10px 40px;
}
.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 106, 78, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 32px;
    color: var(--primary-color);
}

/* Tables */
.table-responsive {
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
.table thead th {
    border-top: none;
    background-color: rgba(0, 106, 78, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: none;
}
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Impersonate Banner */
.impersonate-banner {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    z-index: 1050;
    position: relative;
}

/* Profile image styling */
.profile-img-container {
    position: relative;
    display: inline-block;
}
.profile-img-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.profile-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 1px solid white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}
