* {
    box-sizing: border-box;
    margin: 0px;
}

/* .body {
    background-color: #f4f4f4;
    font-family: "Segoe UI", Tahoma, sans-serif;
} */
/* 
.dangnhap-btn {
    width: 125px;
    transition: background 0.2s, color 0.2s;
    color: white;
} */

/* .dangnhap-btn a {
    display: block;
    background-color: #0040FF;
    color: inherit;
    outline: none;
    border: none;
    padding: 2px 9px;
    font-family: ui-serif;
    font-size: 16px;
    width: 125px;
    text-align: center;
    text-transform: uppercase;
} */

/* .dangnhap-btn a:hover {
    cursor: pointer;
    background-color: #01DF3A;
    color: red !important;
} */

/* .dangnhap-right-btn {
    width: 150px;
    transition: background 0.2s, color 0.2s;
    color: white;
} */

/* .dangnhap-right-btn a {
    display: block;
    background-color: #0040FF;
    color: inherit;
    outline: none;
    border: none;
    padding: 2px 9px;
    font-family: ui-serif;
    font-size: 16px;
    width: 150px;
    text-align: center;
    text-transform: uppercase;
} */

/* .dangnhap-right-btn a:hover {
    cursor: pointer;
    background-color: #01DF3A;
    color: red !important;
} */

/* button.clear-layout {
    outline: none;
    border: none;
} */

a.clear-layout {
    color: white !important;
    text-decoration: none;
    /* Xóa gạch chân */
}

a.clear-layout:link,
a.clear-layout:visited {
    color: inherit;
    text-decoration: none;
}

/* Trạng thái khi di chuột qua (hover) và khi đang bấm (active) */
a.clear-layout:hover,
a.clear-layout:active {
    color: white;
    text-decoration: none;
}

/* .show {
    display: block;
} */

/* .hide {
    display: none;
} */

/*  menu */
/* .menu {
    max-width: 100vw;
} */

/* .menu .menu-wrapper {
    display: flex;
    width: 100%;
    margin-top: 2px;
    flex-wrap: wrap; 
    gap: 4px; 
    padding: 4px;
    margin: 0 auto;
} */

/* .menu .menu-wrapper .item {
    width: 125px;
    height: 40px;
} */

/* .menu .menu-wrapper .item a {
    display: inline-flex;
    color: white;
    background-color: #008080;
    padding: 2px 9px;
    font-family: ui-serif;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    width: 100%;
    height: 100%;
    transition: background 0.2s, color 0.2s;
    align-items: center;
    justify-content: center;
} */

/* .menu .menu-wrapper a:hover {
    cursor: pointer;
    background-color: #0040FF;
    color: white;
} */

/* .menu .menu-wrapper .item:first-child {
}

.menu .menu-wrapper .item:last-child {
}

.menu .menu-wrapper .item:not(:first-child):not(:last-child) {
}
.menu .menu-wrapper .item {
} */

/* menu index */
/* #indexMenu {
    display: none;
} */

/* .image-wrapper {
    height: 115px;
} */

/* .panel-wrapper {
    background: #0B0B61;
    display: inline-flex;
    width: 100%;
} */

/* /menu index */

/* menu teacher */
#teacherMenu {}

/* /menu teacher */

/* .marquee-container {
    width: 80%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
} */

/* .marquee-text {
    color: white;
    font-style: italic;
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
} */

/* Định nghĩa hiệu ứng animation */
/* @keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
} */

/* Loading */
#loading_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: rgb(16 16 16 / 25%);
    z-index: 9999;
    overflow: hidden;
}

.loader {
    border: 21px solid #f3f3f3;
    border-radius: 50%;
    border-top: 21px solid #28a745;
    width: 80px;
    height: 80px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

.cl_alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.cl_alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    z-index: 9999;
}

.cl_alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    z-index: 9999;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* /Loading */

.title h2 {
    text-align: center;
    text-transform: uppercase;
    margin-top:10px;
}


/* Table */
.table-wrapper {
    padding-left: 8px;
    padding-right: 8px;
}

table.table-list {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid lightgray;
}
table.table-list thead tr{
    text-align: center;
    color: white;

}
table.table-list thead tr th {
    position: sticky;
    top: 0; /* Dính vào đầu trang khi cuộn */
    background-color: #0040FF; /* Màu nền cho tiêu đề để không bị trong suốt */
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}
table.table-list th,td {
    border: 1px solid lightgray;
    padding: 3px 4px;
}

table.table-list tbody tr:hover {
    background-color: rgb(231, 231, 231);
    cursor: pointer;
}
table.table-list tr th:first-child {
    width: 40px;
    text-align: center;
}

table.table-list tr td:first-child {
    width: 40px;
    text-align: center;
}

table.table-list tr td:last-child {
    width: 80px;
    text-align: center;
}
.row--active{
    background-color: rgb(231, 231, 231);
    color: red;
}
.pagination {
    margin-top: 20px;
    justify-content: right;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #337ab7;
}

.pagination a.active {
    background-color: #337ab7;
    color: white;
    border-color: #337ab7;
}

.pagination a:hover {
    background-color: #eee;
}

/* Thêm màu sắc cho icon để dễ phân biệt */
.icon-edit {
    color: blue;
    text-decoration: none;
}

.icon-delete {
    color: red;
    text-decoration: none;
}

.icon-status-on {
    color: green;
}

.icon-status-off {
    color: grey;
}
.back{
    text-align: left;
    margin-top: 10px;
    margin-left: 10px;
}
.back a {
    color: #0052cc;
    text-decoration: none;
}
.back a:hover {
    text-decoration: underline;
}

/* /Table */

.panel{
    display: inline-flex;
    margin: 10px;
}
.frm-panel{
    display: inline-flex;
    align-items: center;
    /* flex-direction: column; */
}
.frm-panel .item-wrapper {
    margin-bottom: 4px;
    /* width: 500px; */
}
.frm-panel .item-wrapper label{
     /* width: 100px; */
}
button:hover{
    cursor: pointer;
}
button.cle-primary{
    font-family: 'Times New Roman', Times, serif;
    border: 1px solid blue;
    background-color: blue;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
}
button.cle-primary:hover{
    border: 1px solid blue;
    background-color: white;
    color: blue;
}
.content-wrapper{
    margin: 20px auto;
    width: 85%;
}

/* image */
.image-frame {
    /* Đặt kích thước cố định theo yêu cầu */
    width: 120px;
    height: 160px; 

    /* Quan trọng: Cắt bỏ phần hình ảnh thừa ra ngoài khung */
    overflow: hidden;

    /* Tùy chọn: Thêm viền để dễ hình dung khung */
    /* border: 2px solid #333; */
    border: 1px solid #ccc;
    border-radius: 5%; /* Để làm hình tròn */
    /* Tùy chọn: Đặt màu nền phòng trường hợp ảnh không tải được */
    background-color: #f0f0f0;
}
/* Thẻ hình ảnh (Image) */
.image-frame img {
    /* Quan trọng: Cho phép ảnh chiếm toàn bộ kích thước của khung chứa */
    width: 100%;
    height: 100%;

    /* Tuyệt đối quan trọng: Thuộc tính đảm bảo ảnh không bị móp méo
       - 'cover': Thu phóng ảnh để nó lấp đầy khung, giữ nguyên tỷ lệ.
                  Phần ảnh thừa sẽ bị cắt (nhờ vào overflow: hidden của .image-frame).
       - 'contain' (Tùy chọn khác): Giữ nguyên tỷ lệ, nhưng ảnh sẽ nằm gọn trong khung,
                                   tạo ra khoảng trống nếu tỷ lệ không khớp. */
    object-fit: cover; 
    
    /* Tùy chọn: Căn giữa hình ảnh (nếu dùng object-fit: contain) */
    object-position: center; /* Đảm bảo hình ảnh được căn giữa trong khung */
}
