:root {
--primary-green: #28a745;
--dark-green: #1e7e34;
--light-green: #d4edda;
--primary-orange: #fd7e14;
--dark-orange: #e8590c;
--light-orange: #fff3cd;

/* Thêm các biến cho mobile navigation */
    --primary-color: #28a745;
    --secondary-color: #fd7e14;
    --accent-color: #fd7e14;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
}
.navbar-custom {
background-color: var(--primary-green);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-brand {
color: white !important;
font-weight: bold;
font-size: 1.5rem;
}
.nav-tabs-custom {
background-color: white;
border-bottom: 2px solid #dee2e6;
padding: 0 1rem;
}
.nav-tabs-custom .nav-link {
border: none;
color: #6c757d;
font-weight: 500;
padding: 1rem 1.5rem;
border-bottom: 3px solid transparent;
}
.nav-tabs-custom .nav-link.active {
color: var(--primary-orange);
border-bottom-color: var(--primary-orange);
background-color: transparent;
}
.nav-tabs-custom .nav-link:hover {
color: var(--primary-orange);
border-bottom-color: var(--light-orange);
}
.card-custom {
border: 1px solid var(--light-green);
border-radius: 0.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.card-header-custom {
background-color: var(--dark-green);
color: white;
font-weight: 600;
border-bottom: none;
}
.stats-card {
background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
color: white;
border-radius: 0.75rem;
padding: 1.5rem;
margin-bottom: 1rem;
}
.stats-number {
font-size: 2.5rem;
font-weight: bold;
margin-bottom: 0.5rem;
}
.stats-label {
font-size: 0.9rem;
opacity: 0.9;
}
.filter-section {
background-color: white;
border-radius: 0.5rem;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-primary-custom {
background-color: var(--primary-green);
border-color: var(--primary-green);
color: white;
}
.btn-primary-custom:hover {
background-color: var(--dark-green);
border-color: var(--dark-green);
}
.btn-orange {
background-color: var(--primary-orange);
border-color: var(--primary-orange);
color: white;
}
.btn-orange:hover {
background-color: var(--dark-orange);
border-color: var(--dark-orange);
color: white;
}
.chart-container {
height: 400px;
width: 100%;
}
.footer-custom {
background-color: #343a40;
color: white;
padding: 2rem 0;
margin-top: 3rem;
}
.dropdown-toggle::after {
color: var(--primary-green);
}

.bg-gradient-primary {
    background: linear-gradient(90deg, #2563eb 0%, #22c55e 100%);
    color: #fff;
}

.improvement-square {
    min-height: 260px;
    transition: box-shadow 0.2s;
}
.improvement-square:hover {
    box-shadow: 0 0 0 4px #e0e7ff;
    background: #f8fafc;
}

.table th, .table td {
    vertical-align: middle;
    border: none;
}
.table thead th {
    font-size: 1rem;
    background: #f8fafc;
}
.table tbody tr td {
    font-size: 0.98rem;
    background-clip: padding-box;
}

.rounded-circle {
    aspect-ratio: 1/1;
}

.text-orange {
    color: #d97706 !important; /* Cam đậm, dễ đọc trên nền trắng */
}

.card-header-custom.bg-primary {
    background: #2563eb !important; /* Xanh đậm */
    color: #fff !important;
}
.card-header-custom.bg-orange {
    background: #fd7e14 !important; /* Cam Bootstrap */
    color: #fff !important;
}
.card-header-custom.bg-dark {
    background: #222 !important; /* Đen */
    color: #fff !important;
}

.text-purple { color: #8b5cf6 !important; }


/* Tạo khoảng cách cho các list items */
ul li, ol li {
    margin-bottom: 12px !important;
}

/* Tạo khoảng cách cho các đoạn văn */
p {
    margin-bottom: 12px !important;
}

/* Tạo khoảng cách cho các phần tử trong card body */
.card-body > * {
    margin-bottom: 10px;
}

.card-body > *:last-child {
    margin-bottom: 0;
}

/* Tạo khoảng cách cho các span và div trong danh sách */
.list-unstyled li > span,
.list-unstyled li > div {
    display: block;
    margin-bottom: 6px;
}

/* Khoảng cách cho các phần tử text-muted */
.text-muted {
    line-height: 1.6 !important;
    margin-bottom: 8px;
}

/* Khoảng cách cho các badge và button */
.badge, .btn {
    margin-bottom: 6px;
    margin-right: 6px;
}

/* Khoảng cách cho các phần tử trong improvement-square */
.improvement-square ul li {
    margin-bottom: 12px !important;
}

.improvement-square .fw-semibold {
    margin-bottom: 6px;
    display: block;
}

/* Khoảng cách cho các phần trong tab content */
.tab-pane .row > div {
    margin-bottom: 20px;
}

/* Khoảng cách cho các tiêu đề */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 16px !important;
    margin-top: 20px !important;
}

h1:first-child, h2:first-child, h3:first-child, 
h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0 !important;
}

/* Khoảng cách cho các border box */
.border.rounded-3, .border.rounded-4 {
    margin-bottom: 16px;
}

/* Line height cho toàn bộ nội dung */
body {
    line-height: 1.7 !important;
}

/* Khoảng cách đặc biệt cho các phần quan trọng */
.fw-bold, .fw-semibold {
    margin-bottom: 8px;
    display: block;
}

/* Khoảng cách cho các icon với text */
i + span, i + div {
    margin-left: 4px;
}


/* Mobile Navigation Styles */
.mobile-menu-header {
    padding: 1rem 0;
    background: var(--primary-green);
}

.mobile-menu-toggle {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.mobile-menu-toggle:focus {
   box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    color: white;
}

.mobile-nav-menu {
     background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    overflow: hidden;
}

.mobile-nav-item {
    border: none !important;
    padding: 1rem 1.25rem;
    text-align: left;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.mobile-nav-item:hover {
     background: #f8f9fa;
    color: var(--primary-green);
}

.mobile-nav-item.active {
     background: var(--primary-green);
    color: white;
}

.mobile-nav-item.active:hover {
    background: var(--primary-green);
    color: white;
}

.mobile-nav-item i {
   width: 20px;
    text-align: center;
}

/* Responsive adjustments - Sửa lại */
@media (max-width: 991.98px) {
    .nav-tabs-custom {
        position: sticky;
        top: 0;
        z-index: 1020;
        background: var(--primary-green);
        border-bottom: none;
        padding: 0;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ẩn desktop tabs trên mobile */
    .nav-tabs-custom .nav-tabs {
        display: none !important;
    }
}

/* Desktop tabs styling */
@media (min-width: 992px) {
    .nav-tabs-custom {
        background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border-bottom: 2px solid #dee2e6;
        padding: 0 1rem;
    }
    
    .nav-tabs .nav-link {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
        padding: 1rem 1.5rem;
        margin: 0 0.25rem;
        border-radius: 8px 8px 0 0;
        transition: all 0.3s ease;
        border-bottom: 3px solid transparent;
    }
    
    .nav-tabs .nav-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        border-bottom-color: var(--light-orange);
    }
    
    .nav-tabs .nav-link.active {
        background: white;
        color: var(--primary-orange);
        border-bottom: 3px solid var(--primary-orange);
    }
    
    /* Ẩn mobile menu trên desktop */
    .mobile-menu-header,
    .mobile-nav-menu {
        display: none !important;
    }
}