/* header */
.navbar-nav.mr-lg-4.w-100 h3 {
    margin-top: 8px;
}

.navbar-nav.mr-lg-4.w-100 h3 a {
    font-size: 24px;
    text-shadow: 1px 1px 2px black;
    color: white;
    text-decoration: none;
}

/* login */

.navbar .navbar-brand-wrapper .navbar-brand-inner-wrapper .navbar-brand img {
    width: 110px;
    max-width: 100%;
    margin: auto;
    vertical-align: middle;
}

.brand-logo {
    text-align: center;
}

.brand-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-top img {
    height: 15px;
}

.auth .brand-logo {
    margin-bottom: 1rem;
}

.auth .brand-logo img {
    width: 60px;
}

.brand-top h3 {
    margin: 0;
    font-size: 20px !important;
}

.brand-text {
    margin-top: 10px;
}

.brand-text h2 {
    margin-top: 5px;
}

.auth .brand-text h2 {
    font-size: 22px;
    font-weight: 700;
}

/* ===================
Dashboard
=================== */
/* KPI CARD */
/* ===== KPI CARD ===== */
.kpi-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 12px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
}

.kpi-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* ICON */
.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TITLE */
.kpi-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
}

/* VALUE */
.kpi-value {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* COLOR THEMES WITH GRADIENT */
.kpi-blue {
    background: linear-gradient(135deg, #e0f0ff, #ffffff);
    border-left: 4px solid #3b82f6;
}

.kpi-blue .kpi-icon {
    background: #3b82f6;
    color: #fff;
}

.kpi-blue .kpi-value {
    color: #3b82f6;
}

.kpi-green {
    background: linear-gradient(135deg, #e6fdf3, #ffffff);
    border-left: 4px solid #10b981;
}

.kpi-green .kpi-icon {
    background: #10b981;
    color: #fff;
}

.kpi-green .kpi-value {
    color: #10b981;
}

.kpi-purple {
    background: linear-gradient(135deg, #f3ebff, #ffffff);
    border-left: 4px solid #8b5cf6;
}

.kpi-purple .kpi-icon {
    background: #8b5cf6;
    color: #fff;
}

.kpi-purple .kpi-value {
    color: #8b5cf6;
}

.kpi-orange {
    background: linear-gradient(135deg, #fff4e6, #ffffff);
    border-left: 4px solid #f97316;
}

.kpi-orange .kpi-icon {
    background: #f97316;
    color: #fff;
}

.kpi-orange .kpi-value {
    color: #f97316;
}

.kpi-warning {
    background: linear-gradient(135deg, #fffdeb, #ffffff);
    border-left: 4px solid #fbbf24;
}

.kpi-warning .kpi-icon {
    background: #fbbf24;
    color: #fff;
}

.kpi-warning .kpi-value {
    color: #fbbf24;
}

.kpi-red {
    background: linear-gradient(135deg, #ffeaea, #ffffff);
    border-left: 4px solid #ef4444;
}

.kpi-red .kpi-icon {
    background: #ef4444;
    color: #fff;
}

.kpi-red .kpi-value {
    color: #ef4444;
}

/* RESPONSIVE */
@media (max-width:992px) {
    .kpi-card {
        margin-bottom: 15px;
    }
}

@media (max-width:768px) {
    .kpi-value {
        font-size: 24px;
    }

    .kpi-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/*==================
Modal
================= */
/* Đảm bảo khi modal mở, toàn bộ các thành phần khác không được phép cuộn */
body.modal-open,
body.swal2-shown {
    overflow: hidden !important;
    position: fixed;
    /* Thêm dòng này nếu overflow: hidden vẫn không ăn */
    width: 100%;
}

body.swal2-shown {
    position: fixed;
    width: 100%;
}

.modal-open nav.navbar {
    padding-right: 15px !important;
}

.swal2-shown nav.navbar {
    padding-right: 0px !important;
}

#formSinhVien .form-group {
    margin-bottom: 10px !important;
}

/* Alert Sweet */
div:where(.swal2-icon) {
    width: 3em !important;
    height: 3em !important;
    margin: 2em auto .6em !important;
}

.swal2-html-container {
    text-align: left;
    font-size: 16px;
}

/* Modal */
#modalDetail .nav-tabs .nav-link {
    font-weight: 600;
}

#modalDetail .nav-tabs .nav-link.active {
    background: #f7f9ff;
    border-bottom: 3px solid #4B49AC;
}

.star-rating {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 2px;
}

.progress-score {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-score-bar {
    height: 100%;
    background: #4B49AC;
}

/* Table */
table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable td:last-child,
table.table-bordered.dataTable td:last-child {
    border-right-width: 1px !important;
}

.schedule-card {

    background: #fff;
    border-radius: 10px;
    padding: 15px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    border-left: 4px solid #007bff;

    transition: all .2s;

}

.schedule-card .badge {
    padding: 0 !important;
}

.schedule-card:hover {

    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

}

.schedule-date {
    font-weight: 600;
    color: #333;

}

.schedule-time {
    display: inline;
    color: #555;
    width: 45% !important;
    float: left;
}

.schedule-room {

    color: #555;

}

/* lịch đã qua */
.past-class {
    opacity: 0.6;
    /* Làm mờ đi */
    background-color: #f8f9fa;
    /* Nền xám nhạt */
    filter: grayscale(80%);
    /* Giảm độ rực rỡ của màu sắc */
    border-left: 5px solid #6c757d;
    /* Viền xám */
    pointer-events: none;
}

/* lịch hôm nay */
.today-class {

    border-left: 4px solid #28a745;
    background: #fbe786;

}




/* lỊCH HỌC HÔM NAY */
.widget-lichhoc {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0px 0;
    overflow: hidden;
    font-size: 14px;
}

.widget-lichhoc a {
    text-decoration: none;
}

.widget-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background: #f8f9fc;
}

.widget-body {
    padding: 10px 12px;
}

.widget-subtitle {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4CAF50;
}

.schedule-item {
    display: flex;
    padding: 8px 5px;
    border-left: 3px solid #239cf3;
    background: #d4f3f2;
    margin-bottom: 6px;
}

.schedule-item:hover {
    background: #f8f9ff;
}

.schedule-now {
    border-left: 3px solid #ff4d4f;
    background: #fff3f3;
}

.schedule-item .schedule-time {
    display: inline;
    color: #555;
    width: 25% !important;
    float: left;
    font-weight: 600;
    color: #4B49AC;
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-weight: 600;
    font-size: 12px;
}

.schedule-meta {
    font-size: 11px;
    color: #777;
}

.time-end {
    float: right;
    font-size: 12px;
    font-weight: 600;
    color: red;
}

.schedule-tomorrow .schedule-time {
    color: #28a745;
}

.no-class {
    text-align: center;
    color: #888;
    padding: 10px;
}

.blink-now {
    font-size: 9px;
    margin-left: 5px;
    animation: blinker 1.2s linear infinite;
}

#thongbaolich .nav.sub-menu {
    padding: 0.25rem 0 0.6rem 0.55rem !important;
}

/* Tab lớp học phần*/
.modal-body.body-tab-detail {
    max-height: 485px;
}

div#tab_chitiethocphan {
    max-height: 380px;
    overflow-y: scroll;
    overflow-x: hidden;
}

div#tab_danhsachsinhvien #tableDanhsachSVLopTC_wrapper {
    max-height: 380px;
}

span.note-hocphan {
    font-size: 14px;
}

/* Đánh giá khảo sát --> Sinh viên */
.intro {
    font-size: 0.9em;
    margin-bottom: 20px;
}

.rating-scale {
    display: flex;
    justify-content: space-around;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    text-align: center;
}

.rating-item {
    flex: 1;
    font-size: 0.85em;
}

.rating-number {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    border: 1px solid #000;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin: 0 auto 5px;
}

/* Rating 1 - đỏ */
.rating-item:nth-child(1) .rating-number {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Rating 2 - cam */
.rating-item:nth-child(2) .rating-number {
    background: #fd7e14;
    border-color: #fd7e14;
    color: #fff;
}

/* Rating 3 - vàng */
.rating-item:nth-child(3) .rating-number {
    background: #ffc107;
    border-color: #ffc107;
    color: #333;
}

/* Rating 4 - xanh lá */
.rating-item:nth-child(4) .rating-number {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* Rating 5 - xanh đậm */
.rating-item:nth-child(5) .rating-number {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.rating-1 .rating-number {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.rating-2 .rating-number {
    background: #fd7e14 !important;
    border-color: #fd7e14 !important;
    color: #fff !important;
}

.rating-3 .rating-number {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #333 !important;
}

.rating-4 .rating-number {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.rating-5 .rating-number {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

td.start-point {
    font-size: 0.75em;
}

/* Table */
#tableSinhVien a,
#tableGiangVien a {
    text-decoration: none;
    border: 1px solid;
    padding: 2px 5px;
    border-radius: 4px;
}

#tableLopTinChi a {
    text-decoration: none;
}

.btn i {
    font-size: 1rem !important;
}

/* Câu hỏi */
.column-count-item {
    column-count: 2;
    margin-top: 10px !important;
}

.item-check {
    margin-top: 0 !important;
}

select#filter_nhom {
    width: 70% !important;
}

.label_filter {
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.4rem;
    vertical-align: top;
    margin-bottom: .5rem;
}

.form-control-filter {
    margin-bottom: 20px;
    margin-top: 1px;
    margin-right: 1px;
}

/* KPI sinh viên */
/* CARD CHÍNH */
.card.shadow-sm {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TIÊU ĐỀ CARD */
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.2rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* STATISTIC CARDS */
.stat-card {
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-primary {
    background-color: #f0f4ff;
    color: #3b5de7;
}

.stat-success {
    background-color: #e6f9f0;
    color: #28a745;
}

.stat-danger {
    background-color: #fff0f0;
    color: #dc3545;
}

.stat-percent-progress {
    background-color: #a6e8ef;
    color: #0a376e;
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ICON STATISTIC */
.stat-icon i {
    font-size: 2.2rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* TABLE */
.table-responsive {
    margin-top: 1.5rem;
}

#tbllichhoc {
    overflow: hidden;
}

#tbllichhoc th {
    background-color: #f5f6fa;
    font-weight: 600;
    color: #34495e;
    text-align: center;
}

#tbllichhoc td {
    vertical-align: middle;
}

#tbllichhoc tr:hover {
    background-color: #f1f3f6;
}

#tbllichhoc .badge {
    color: #f1ff16;
    padding: 0.35em 0.65em !important;
}

/* TIẾN ĐỘ KHẢO SÁT */
.progress {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}


/* Thống kê khảo sát */
.stat-dashboard .stat-card {
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    padding: 20px;
}

.stat-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
    opacity: .8;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-top: 4px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 26px;
}

/* color styles */

.stat-primary {
    border-left: 5px solid #4B49AC;
}

.stat-primary .stat-title {
    color: #4B49AC;
}

.stat-primary .stat-icon {
    background: #e1e1ed;
    color: #4B49AC;
}

.stat-success {
    border-left: 5px solid #28a745;
}

.stat-success .stat-title {
    color: #28a745;
}

.stat-success .stat-icon {
    background: #e1e1ed;
    color: #28a745;
}

.stat-danger {
    border-left: 5px solid #dc3545;
}

.stat-danger .stat-title {
    color: #dc3545;
}

.stat-danger .stat-icon {
    background: #f7e6e6;
    color: #dc3545;
}


.stat-percent-progress {
    border-left: 5px solid #3d0fcb;
}

.stat-percent-progress .stat-title {
    color: #04408b;
}

.stat-percent-progress .stat-icon {
    background: #91c0f1;
    color: #343232;
}

.stat-mini .mini-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all .25s ease;
    height: 100%;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mini-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: .75;
    margin-bottom: 6px;
}

.mini-number {
    font-size: 28px;
    font-weight: 700;
}

.mini-number.small {
    font-size: 16px;
    font-weight: 600;
}

.mini-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 36px;
    opacity: .15;
}

/* COLORS */

.mini-primary {
    border-left: 4px solid #4B49AC;
}

.mini-primary .mini-title {
    color: #4B49AC;
}

.mini-success {
    border-left: 4px solid #28a745;
}

.mini-success .mini-title {
    color: #28a745;
}

.mini-danger {
    border-left: 4px solid #dc3545;
}

.mini-danger .mini-title {
    color: #dc3545;
}

.mini-info {
    border-left: 4px solid #17a2b8;
}

.mini-info .mini-title {
    color: #17a2b8;
}

.tab-pane.fade.show.active {
    margin-bottom: 20px;
}

/* Table permission */
/* table */

.permission-table {
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.permission-table th {
    background: #f8f9fa;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border: 1px solid #e5e5e5;
}

.permission-table td {
    border: 1px solid #eee;
    padding: 10px;
}

/* tên quyền */

.perm-name {
    text-align: left;
    font-weight: 500;
    width: 280px;
}

/* cell */

.perm-cell {
    text-align: center;
}

/* hover */

.permission-table tbody tr:hover {
    background: #f5f9ff;
}

/* checkbox */

.permission-table input[type=checkbox] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0d6efd;
}

/* role colors */

.role-superadmin {
    color: #dc3545;
}

.role-admin_dt {
    color: #0d6efd;
}

.role-admin_hc {
    color: #198754;
}

.role-giangvien {
    color: #6f42c1;
}

.role-sinhvien {
    color: #fd7e14;
}

/* sticky header */

.permission-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* responsive */

.tbl-danhsachsinhvien {
    max-height: 390px;
    overflow-y: scroll;
}

.status-radio {
    display: flex;
    gap: 20px;
    align-items: center;
}
.status-radio .form-check .form-check-label {
margin-left: 0.3rem;
}
.status-radio .form-check {
    margin-bottom: 0;
    padding-left: 1.5em;
    margin-top: 0px;
}

#tableLopTinChi .badge {
    color: #FFF;
    border-radius: 4px;
}

.dataTables_wrapper .dataTable .btn {
    padding: 0.1rem 0.3rem !important;
    vertical-align: top;
}

.dataTables_wrapper .dataTable tbody tr td {
    padding: 0.7rem 0.5rem !important;
}
.no-bottom-card {
    margin-bottom: 0 !important;
}
.alert {
    padding: 0.7rem 1rem !important;
}

