/* ==========================================================================
   1. ĐỊNH NGHĨA BIẾN TOÀN CỤC & ĐỊNH DẠNG CƠ BẢN (VARIABLES & BASE)
   ========================================================================== */
:root {
    --primary-blue: #0b3a82;
    --primary-blue-light: #1a73e8;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    /* Định nghĩa các tone màu cốt lõi cho 6 danh mục lĩnh vực */
    --color-1: #1d72b8; /* Đô thị thông minh */
    --color-2: #198754; /* Du lịch thông minh */
    --color-3: #6f42c1; /* Nông nghiệp CNC */
    --color-4: #fd7e14; /* Văn hóa di sản */
    --color-5: #20c997; /* Thủy sản môi trường */
    --color-6: #d63384; /* Giáo dục nhân lực */
}
a {
     text-decoration: unset !important; 
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 14px;
    letter-spacing: -0.1px;
}
/* Bước 1: Đảm bảo toàn bộ chiều cao trình duyệt được tận dụng */
html, body {
    height: 100%;
    margin: 0;
}

/* Bước 2: Biến container chính bọc toàn bộ trang thành Flexbox theo chiều dọc */
.wrapper-layout { /* Thay class này bằng class bọc ngoài cùng trong file _Layout.cshtml của bạn */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Luôn cao bằng 100% chiều cao màn hình hiển thị */
}

/* Bước 3: Đẩy khu vực chứa nội dung (bảng dữ liệu) tự động co giãn chiếm hết không gian thừa */
.main-content {
    flex: 1 0 auto;
}

/* Bước 4: Đảm bảo footer không bị co nhỏ kích thước */
footer {
    flex-shrink: 0;
}
/* Kiểu chữ tiện ích bổ sung */
.fs-11 {
    font-size: 11px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-13 {
    font-size: 13px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.text-truncate-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   2. THANH ĐIỀU HƯỚNG TRÊN (TOP NAVBAR & CENTRAL MENU)
   ========================================================================== */
.navbar-custom {
    background-color: var(--primary-blue);
}
    /* Reset: Mặc định ẩn vạch vàng dưới chân menu */
    .navbar-custom .nav-link {
        position: relative;
        border-bottom: 3px solid transparent !important; /* Hoặc ẩn box-shadow/after tùy dự án */
    }

        /* CHỈ hiển thị vạch vàng khi hover hoặc khi menu ĐANG ACTIVE */
        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-link.active {
            color: #fff !important;
            border-bottom: 3px solid #ffc107 !important; /* Thay mã màu vàng chuẩn của bạn tại đây */
        }

    /* Loại bỏ hoàn toàn hiệu ứng răng cưa border cũ nếu có trên dropdown toggle */
    .navbar-custom .dropdown-toggle::after {
        display: none !important;
        content: none !important;
    }
/* Thiết kế menu trung tâm có hiệu ứng gạch chân động */
.custom-nav .nav-link,
.custom-main-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 4px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: color 0.2s ease-in-out;
}



    .custom-nav .nav-link.active::after,
    .custom-nav .nav-link:hover::after,
    .custom-main-nav .nav-link.active::after,
    .custom-main-nav .nav-link:hover::after {
        width: 100%;
    }


@media (max-width: 1199.98px) {
    .custom-main-nav .nav-link::after,
    .custom-nav .nav-link::after {
        display: none !important;
    }

    .custom-main-nav .nav-link.active,
    .custom-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        padding-left: 12px !important;
    }
}

/* ==========================================================================
   3. KHỐI THỐNG KÊ & THẺ TIỆN ÍCH (STAT CARDS)
   ========================================================================== */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01), 0 4px 12px rgba(0, 0, 0, 0.015);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
    }

.stat-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-title {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   4. THẺ BÀI TOÁN & DANH MỤC LĨNH VỰC FLAT TRANG CHỦ
   ========================================================================== */
.problem-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .problem-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    }

.card-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.icon-illustration-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 15px auto;
}

    .icon-illustration-box i {
        font-size: 28px;
    }

/* Nhóm màu động hệ thống danh mục */
.color-group-1 .card-number {
    background-color: var(--color-1);
}

.color-group-1 .icon-illustration-box {
    background-color: rgba(29, 114, 184, 0.08);
    color: var(--color-1);
}

.color-group-2 .card-number {
    background-color: var(--color-2);
}

.color-group-2 .icon-illustration-box {
    background-color: rgba(25, 135, 84, 0.08);
    color: var(--color-2);
}

.color-group-3 .card-number {
    background-color: var(--color-3);
}

.color-group-3 .icon-illustration-box {
    background-color: rgba(111, 66, 193, 0.08);
    color: var(--color-3);
}

.color-group-4 .card-number {
    background-color: var(--color-4);
}

.color-group-4 .icon-illustration-box {
    background-color: rgba(253, 126, 20, 0.08);
    color: var(--color-4);
}

.color-group-5 .card-number {
    background-color: var(--color-5);
}

.color-group-5 .icon-illustration-box {
    background-color: rgba(32, 201, 151, 0.08);
    color: var(--color-5);
}

.color-group-6 .card-number {
    background-color: var(--color-6);
}

.color-group-6 .icon-illustration-box {
    background-color: rgba(214, 51, 132, 0.08);
    color: var(--color-6);
}

/* ==========================================================================
   5. NÂNG CAO: THIẾT KẾ CHO TRANG CÁ NHÂN (PROFILE DASHBOARD)
   ========================================================================== */
/* Cột trái cố định vị trí thông minh khi cuộn màn hình */
.sticky-profile-card {
    position: sticky;
    top: 85px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01), 0 4px 12px rgba(0,0,0,0.01);
    z-index: 10;
}

/* Định dạng Nhãn vai trò nổi bật */
.role-badge {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.role-enterprise {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.role-scientist {
    background-color: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.role-others {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Tag nhãn lĩnh vực phẳng */
.field-tag {
    font-weight: 500;
    background-color: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

    .field-tag:hover {
        background-color: #e2e8f0;
        color: #1e293b;
    }

/* Hệ thống Tab phẳng trang cá nhân */
.profile-tabs {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

    .profile-tabs .nav-link {
        border: none;
        color: var(--text-muted);
        font-weight: 600;
        padding: 14px 20px;
        border-bottom: 3px solid transparent;
        transition: all 0.2s ease;
    }

        .profile-tabs .nav-link:hover {
            color: var(--primary-blue);
            background-color: #f8fafc;
        }

        .profile-tabs .nav-link.active {
            color: var(--primary-blue);
            border-bottom-color: var(--primary-blue);
            background: #ffffff;
        }

/* Thẻ bài toán được gợi ý cùng lĩnh vực */
.suggested-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

    .suggested-item-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    }

/* Bảng phẳng hiển thị danh sách giải pháp */
.custom-dashboard-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01), 0 4px 12px rgba(0,0,0,0.015);
    overflow: hidden;
}

.table-modern thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.table-modern tbody td {
    padding: 14px 16px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Trạng thái phê duyệt giải pháp */
.status-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

    .status-badge.approved {
        background-color: #dcfce7;
        color: #15803d;
        border: 1px solid #bbf7d0;
    }

    .status-badge.pending {
        background-color: #fef3c7;
        color: #a16207;
        border: 1px solid #fde68a;
    }

/* ==========================================================================
   6. CÁC THÀNH PHẦN NÚT VÀ BIỂU MẪU (BUTTONS & FORMS)
   ========================================================================== */
.btn-view-detail {
    background-color: rgba(26, 115, 232, 0.06) !important;
    color: var(--primary-blue-light) !important;
    border: 1px solid rgba(26, 115, 232, 0.12) !important;
    font-weight: 600;
    transition: all 0.2s ease-in-out !important;
}

    .btn-view-detail:hover {
        background-color: var(--primary-blue-light) !important;
        color: #ffffff !important;
        border-color: var(--primary-blue-light) !important;
        box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
    }

    .btn-view-detail i {
        transition: transform 0.2s ease;
    }

    .btn-view-detail:hover i {
        transform: translateX(3px);
    }

/* Form lựa chọn vai trò phía Sidebar bên phải / Modals */
.role-selector-box label {
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .role-selector-box label:hover {
        background-color: #f8f9fa;
    }

.role-selector-box .btn-check:checked + label {
    background-color: rgba(11, 58, 130, 0.05) !important;
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    font-weight: 600;
}



/* Tổng thể khối sidebar */
#problem-detail-sidebar {
    background-color: #ffffff;
}

    /* Thiết kế chữ tiêu đề phân khu */
    #problem-detail-sidebar .sidebar-section-title {
        color: #1e293b;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin-top: 4px;
    }

    /* Các hàng dữ liệu */
    #problem-detail-sidebar .info-item {
        line-height: 1.6;
    }

    #problem-detail-sidebar .info-label {
        color: #64748b;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        #problem-detail-sidebar .info-label i {
            width: 16px;
            text-align: center;
            color: #94a3b8;
        }

    #problem-detail-sidebar .info-value {
        color: #334155;
    }

    /* Tách dòng dữ liệu dài */
    #problem-detail-sidebar .info-item-stacked .info-value {
    }

    /* Định dạng lại Badge phẳng mịn (Subtle Badges) */
    #problem-detail-sidebar .custom-badge {
        padding: 4px 10px;
        font-weight: 600;
        border-radius: 6px;
        border: 1px solid transparent;
        line-height: 1.2;
    }

    #problem-detail-sidebar .badge-status-calling {
        background-color: #e0f7fa;
        color: #006064;
        border-color: #b2ebf2;
    }

    #problem-detail-sidebar .badge-priority-high {
        background-color: #fee2e2;
        color: #b91c1c;
        border-color: #fca5a5;
    }

    /* =========================================
         CSS ĐƯỜNG TIẾN TRÌNH TIMELINE ĐỒNG BỘ
         ========================================= */
    #problem-detail-sidebar .modern-timeline {
        position: relative;
        padding-left: 24px;
        margin-left: 8px;
    }

        /* Trục dọc nét mảnh mờ */
        #problem-detail-sidebar .modern-timeline::before {
            content: '';
            position: absolute;
            top: 12px;
            bottom: 12px;
            left: 0;
            width: 2px;
            background-color: #e2e8f0;
            z-index: 1;
        }

    #problem-detail-sidebar .timeline-block {
        position: relative;
    }

    /* Chấm nút số tròn */
    #problem-detail-sidebar .timeline-node {
        position: absolute;
        left: -33px; /* Căn chuẩn giữa trục dọc */
        top: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: #f8fafc;
        border: 1px solid #cbd5e1;
        color: #64748b;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        transition: all 0.2s ease-in-out;
    }

    /* Chữ hiển thị tiến trình */
    #problem-detail-sidebar .node-title {
        display: block;
        line-height: 1.3;
    }

    #problem-detail-sidebar .node-date {
        display: block;
        margin-top: 2px;
    }

    /* Bước hoàn thành (Done) */
    #problem-detail-sidebar .timeline-block.step-done .timeline-node {
        background-color: #22c55e;
        border-color: #22c55e;
        color: #ffffff;
    }

    /* Bước đang kích hoạt hiện tại (Active) */
    #problem-detail-sidebar .timeline-block.step-active .timeline-node {
        background-color: #ffffff;
        border-color: #1a73e8;
        color: #1a73e8;
        border-width: 2px;
        box-shadow: 0 0 0 3.5px rgba(26, 115, 232, 0.15);
    }
/* Khung bao ngoài tạo khoảng cách dãn cách vừa phải */
.problem-status-steps-container {
    margin-top: 8px;
    margin-bottom: 12px;
    width: 100%;
}

/* Wrapper dàn hàng ngang các mũi tên, loại bỏ khoảng hở mặc định */
.chevron-steps-wrapper {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Định dạng chung cho từng khối mũi tên */
.chevron-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 12px 8px 20px;
    font-weight: 600;
    min-height: 32px;
    white-space: nowrap;
    /* Kỹ thuật clip-path tạo hình mũi tên đuôi cá xếp chồng liền mạch */
    clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%, 10px 50%);
}

    /* Mũi tên đầu tiên không có phần khuyết đuôi cá ở phía sau */
    .chevron-step:first-child {
        padding-left: 12px;
        clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%);
    }

    /* Mũi tên cuối cùng không có đầu nhọn nhô ra phía trước */
    .chevron-step:last-child {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10px 50%);
    }

    /* Nội dung text và icon căn giữa */
    .chevron-step .step-text {
        display: inline-flex;
        align-items: center;
        z-index: 2;
    }

    .chevron-step i {
    }

    /* -----------------------------------------
                  MÀU SẮC ĐỊNH DẠNG TỪNG TRẠNG THÁI PHẲNG (FLAT UI)
                  ----------------------------------------- */

    /* Trạng thái 1: Đã hoàn thành -> Màu xanh lá mờ, chữ đậm xanh */
    .chevron-step.step-completed {
        background-color: #dcfce7;
        color: #15803d;
    }

    /* Trạng thái 2: Đang thực hiện hiện tại -> Màu xanh dương đậm làm điểm nhấn nổi bật */
    .chevron-step.step-active {
        background-color: #1a73e8;
        color: #ffffff;
    }

    /* Trạng thái 3 & 4: Chưa tới -> Màu xám mờ tinh tế */
    .chevron-step.step-upcoming {
        background-color: #f1f5f9;
        color: #64748b;
    }
/* Định dạng chung bọc ngoài */
#problem-media-container {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
}

    #problem-media-container .gallery-title {
        font-weight: 700;
        color: #334155;
        letter-spacing: -0.2px;
    }

    /* Thiết lập độ co giãn khoảng cách vừa vặn */
    #problem-media-container .mb-2.5 {
        margin-bottom: 10px !important;
    }

    #problem-media-container .mt-2 {
        margin-top: 8px !important;
    }

        #problem-media-container .mt-2.5 {
            margin-top: 10px !important;
        }

/* Lưới phụ chứa 2 ảnh nhỏ nằm ngang sát nhau */
.gallery-sub-grid {
    display: flex;
    gap: 8px;
}

    .gallery-sub-grid .gallery-item-card {
        flex: 1;
    }

/* Định dạng từng thẻ ảnh Premium */
.gallery-item-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}



.gallery-sub-grid .image-wrapper {
    height: 85px;
}

/* Khung bọc ảnh xử lý hiệu ứng zoom */
.image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

/* Hiệu ứng zoom điện ảnh nhẹ nhàng khi rê chuột */
.gallery-item-card:hover img {
    transform: scale(1.04);
}

/* LỚP PHỦ KÍNH MỜ TRÊN THẺ CHÍNH (Glassmorphism Overlay) */
.card-glass-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
}

    .card-glass-overlay .image-title {
        font-weight: 700;
        color: #1e293b;
        margin: 0;
        line-height: 1.2;
    }

    .card-glass-overlay .badge {
        font-weight: 700;
        padding: 2px 5px;
    }

/* LỚP PHỦ TỐI GIẢN CHO THẺ NHỎ */
.card-simple-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    z-index: 2;
}

    .card-simple-overlay .image-sub-title {
        font-weight: 600;
        color: #ffffff;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* CHẤM TRÒN THỜI GIAN THỰC TINH TẾ */
.status-indicator-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.footer-note {
    color: #64748b;
    font-weight: 500;
}
/* 1. Thiết lập chung hệ thống */
body {
    background-color: #f8fafc;
}
.fs-12 {
    font-size: 12px !important;
}


.tracking-tight {
    letter-spacing: -0.5px;
}

.text-truncate-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 2. Cấu trúc lại các khối Thống kê (Stat Cards) */
.modern-stat-card {
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01), 0 4px 12px rgba(0, 0, 0, 0.015);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .modern-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }

.modern-stat-title {
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-stat-value {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 6px 0;
}

.modern-stat-trend {
    font-weight: 600;
}

/* 3. Tinh chỉnh Thẻ chứa Bảng và nội dung Table */
.custom-table-card {
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01), 0 4px 12px rgba(0, 0, 0, 0.015);
    overflow: hidden;
}

.table-modern thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.table-modern tbody td {
    padding: 13px 16px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* 4. Định dạng các Nhãn Trạng thái & Lĩnh vực phẳng */
.badge-status {
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

    .badge-status.blue {
        background-color: #e0f2fe;
        color: #0369a1;
    }

    .badge-status.orange {
        background-color: #ffedd5;
        color: #c2410c;
    }

    .badge-status.gray {
        background-color: #f1f5f9;
        color: #475569;
    }

.badge-field {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

    .badge-field.environment {
        background-color: #f0fdf4;
        color: #16a34a;
    }

    .badge-field.traffic {
        background-color: #eff6ff;
        color: #2563eb;
    }

    .badge-field.health {
        background-color: #fff1f2;
        color: #e11d48;
    }

    .badge-field.tourism {
        background-color: #fdf2f8;
        color: #db2777;
    }

    .badge-field.agriculture {
        background-color: #fefce8;
        color: #ca8a04;
    }

    .badge-field.aquatic {
        background-color: #ecfeff;
        color: #0891b2;
    }

/* 1. Thiết lập chung hệ thống */
body {
    background-color: #f8fafc;
}

.fs-12 {
    font-size: 12px !important;
}

.tracking-tight {
    letter-spacing: -0.5px;
}

.text-truncate-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 2. Cấu trúc lại các khối Thống kê (Stat Cards) */
.modern-stat-card {
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01), 0 4px 12px rgba(0, 0, 0, 0.015);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .modern-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }

.modern-stat-title {
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-stat-value {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 6px 0;
}

.modern-stat-trend {
    font-weight: 600;
}

/* 3. Tinh chỉnh Thẻ chứa Bảng và nội dung Table */
.custom-table-card {
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01), 0 4px 12px rgba(0, 0, 0, 0.015);
    overflow: hidden;
}

.table-modern thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.table-modern tbody td {
    padding: 13px 16px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* 4. Định dạng các Nhãn Trạng thái & Lĩnh vực phẳng */
.badge-status {
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

    .badge-status.blue {
        background-color: #e0f2fe;
        color: #0369a1;
    }

    .badge-status.orange {
        background-color: #ffedd5;
        color: #c2410c;
    }

    .badge-status.gray {
        background-color: #f1f5f9;
        color: #475569;
    }

.badge-field {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

    .badge-field.environment {
        background-color: #f0fdf4;
        color: #16a34a;
    }

    .badge-field.traffic {
        background-color: #eff6ff;
        color: #2563eb;
    }

    .badge-field.health {
        background-color: #fff1f2;
        color: #e11d48;
    }

    .badge-field.tourism {
        background-color: #fdf2f8;
        color: #db2777;
    }

    .badge-field.agriculture {
        background-color: #fefce8;
        color: #ca8a04;
    }

    .badge-field.aquatic {
        background-color: #ecfeff;
        color: #0891b2;
    }
.hover-text-primary {
    transition: color 0.2s ease-in-out;
}

    .hover-text-primary:hover {
        color: #1a73e8 !important; /* Đổi sang màu xanh công nghệ khi hover */
        text-decoration: underline !important;
    }

.tracking-wider {
    letter-spacing: 0.5px;
}

.extra-small {
}
.premium-cta-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 115, 232, 0.15);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .premium-cta-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, #1a73e8, #00d2ff);
    }

    .premium-cta-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(26, 115, 232, 0.12);
        border-color: rgba(26, 115, 232, 0.3);
    }

.btn-gradient-glow {
    background: linear-gradient(135deg, #1a73e8 0%, #0d6efd 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

    .btn-gradient-glow:hover {
        background: linear-gradient(135deg, #155cb8 0%, #0b5ed7 100%);
        box-shadow: 0 6px 18px rgba(26, 115, 232, 0.35);
        transform: scale(1.02);
    }

.pulse-icon {
    animation: softPulse 2s infinite;
}

@keyframes softPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Định dạng lại thanh chứa tab */
.custom-nav-tabs {
    background-color: #f8f9fa;
    padding: 6px 6px 0 6px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #dee2e6 !important;
}
    /* Định dạng chung cho tất cả các tab link */
    .custom-nav-tabs .nav-link {
        color: #6c757d !important;
        font-weight: 500;
        font-size: 13.5px;
        padding: 8px 16px;
        border: 1px solid transparent;
        border-radius: 6px 6px 0 0;
        transition: all 0.2s ease-in-out;
        margin-bottom: -2px;
    }

        .custom-nav-tabs .nav-link:hover {
            color: #0d6efd !important;
            background-color: rgba(13, 110, 253, 0.05);
            border-color: transparent;
        }

        .custom-nav-tabs .nav-link.active {
            color: #0d6efd !important;
            font-weight: 600 !important;
            background-color: #ffffff !important;
            border-color: #dee2e6 #dee2e6 #ffffff !important;
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
        }

        .custom-nav-tabs .nav-link .badge-count {
            font-size: 11px;
            padding: 2px 6px;
            background-color: #e9ecef;
            color: #495057;
            border-radius: 10px;
            margin-left: 4px;
        }

        .custom-nav-tabs .nav-link.active .badge-count {
            background-color: #e7f1ff;
            color: #0d6efd;
        }
.object-fit-cover {
    object-fit: cover;
}

.max-height-250 {
    max-height: 250px;
}

.remove-image-btn:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}