@import url('https://fonts.googleapis.com/css2?&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900');
html[data-bs-theme="dark"] {
    --background: #151A2E;
    --background-color: #151A2E;
    --text-color: #ffffff;
    --text-color-page: #ffffff;
    --text-color-2: #151A2E;
    --navbar-background: #fff;
    --navbar-text: #222;
    --border-color:#ffffff;
    --background-color-page: linear-gradient(#171920, #151A2E);
    --text-color-sidebar-hover: #151A2E;
    --border-color: #495057;
    
}
:root {
    --background: #0866ff;
    --background-color: #ffffff;
    --text-color: #0866ff;
    --text-color-page: #000000;
    --text-color-2: #0866ff;
    --navbar-background: #fff;
    --navbar-text: #222;
    --border-color:#0866ff;
    --background-color-page: linear-gradient(#f1f3ff,#cbd4ff);
    --text-color-sidebar: #fff;
    --text-color-sidebar-hover: #0866ff;

}

* {
    user-select: none; /* Ngăn chọn văn bản */
    cursor: default; /* Đặt con trỏ mặc định (không phải con trỏ nhấp nháy) */
}
html {
    background: var(--background-color-page); /* Đặt background mặc định dựa trên biến */
    transition: none !important;
}
/* loading */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color:var(--background); /* Nền mờ */
    top: 0;
    left: 0;
    z-index: 9999; /* Đảm bảo nó luôn ở trên cùng */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: none !important;
}

#loading-center {
    width: 100px; /* Kích thước vùng chứa ảnh */
    height: 100px;
    background-image: url('/img/logo.png'); /* Đường dẫn tới ảnh */
    background-size: cover; /* Đảm bảo ảnh bao phủ toàn bộ vùng */
    background-repeat: no-repeat; /* Không lặp lại ảnh */
    background-position: center; /* Căn giữa ảnh */
}

.fade-out {
    animation: fadeOut 0.5s forwards; /* Animation cho fade out */
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--background-color-page);
    transition: none !important;
}
p {
    margin-bottom: 0 !important;
}
li {
    list-style: none;
}
h4 {
    white-space: nowrap;
}
a {
    text-decoration: none;
    white-space: nowrap;
}

.main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: none !important;
}
.wrapper {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

.d-flex {
    display: flex;
    width: 100%;
}
/* Scroll bar */
/* Kích thước scroll bar */
::-webkit-scrollbar {
    width: 0px; /* Độ rộng thanh cuộn */
    height: 0px; /* Độ cao thanh cuộn ngang */
}

/* Màu nền của thanh cuộn */
::-webkit-scrollbar-track {
    background: transparent; 
}

/* Màu của thanh cuộn */
::-webkit-scrollbar-thumb {
    background: transparent; /* Gradient màu */
    border-radius: 10px; /* Bo tròn góc */
}

/* Khi hover vào thanh cuộn */
::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Sidebar */

.sidebar-toggle {
    width: 260px;
    min-width: 260px;
    min-height: 100vh;
    background-color: var(--background);
    display: flex;
    transition: 0.3s ease-in-out;
    flex-direction: column;
    z-index: 999;
}
    
.sidebar-toggle.collapsed {
    width: 66px;
    min-width: 66px;
}
/* Toggler button */
.toggler-btn {
    background-color: transparent;
    cursor: pointer;
    border: none;
    
}
.toggler-btn i {
    font-size: 1.5rem;
    color: var(--background);
}

/* Nav bar */
.navbar {
    padding: 0.75rem 0.75rem;
}
/* sidebar nav */
.sidebar-nav {
    flex: 1 1 auto;
}
.sidebar-nav .sidebar-item {
    position: relative;
    white-space: nowrap;
}

/* sidebar link */
.sidebar-link {
    padding: .500rem 1.500rem;
    color: var(--text-color-sidebar);
    position: relative;
    display: flex; /* Căn chỉnh icon và văn bản theo hàng ngang */
    align-items: center; /* Đảm bảo icon và văn bản căn giữa theo chiều dọc */
    margin: 0 6px;
    height: 50px;
    border-radius: 8px;
}
.sidebar-link i {
    min-width: 24px; /* Đảm bảo icon có cùng kích thước để đồng đều */
    text-align: center; /* Đảm bảo icon được căn giữa */
    font-size: 1.25rem; /* Đảm bảo kích thước đồng đều của các icon */
}
.sidebar-toggle.collapsed .sidebar-link:hover{
    color: var(--text-color-sidebar-hover);
    border-radius: 8px;
}
.sidebar-toggle.collapsed .sidebar-link.has-dropdown:hover{
    background-color: #fff;
    color: var(--text-color-sidebar-hover);
    border-radius: 8px;
}

.sidebar-toggle .sidebar-link:hover{
    background-color: #fff;
    color: var(--text-color-sidebar-hover);
    border-radius: 8px;
}


.sidebar-link[data-bs-toggle="collapse"]::after {
    font-family: "Font Awesome 6 Free";  /* Sử dụng Font Awesome */
    font-weight: 900;
    content: "\f106"; /* Unicode của icon mũi tên lên */
    position: absolute;
    right: 1.5rem;
    transform: rotate(0deg); /* Mặc định không xoay */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform-origin: center; /* Đảm bảo xoay quanh tâm */
}

.sidebar-link[data-bs-toggle="collapse"][aria-expanded="true"]::after {
    transform: rotate(180deg); /* Xoay đúng 180 độ */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.sidebar-toggle.collapsed .sidebar-link[data-bs-toggle="collapse"]::after {
    opacity: 0; /* Hiển thị icon thay vì ẩn */
    transition: opacity 0.3s ease-in-out;
}


.dropdown-menu .nav-item .nav-link {
    padding: 9px 15px;
}
.sidebar.collapsed .dropdown-menu .nav-item .nav-link {
    padding: 7px 15px;
}
.sidebar-nav .dropdown-menu {
    height: 0;
    overflow: visible !important;
    list-style: none;
    padding-left: 8px;
    margin: 0px;
}
.sidebar-nav .sidebar-item .sidebar-link {
    display: flex;
    gap: 12px; /* Khoảng cách giữa biểu tượng và văn bản */
    align-items: center; /* Căn giữa icon và text theo chiều dọc */
    padding: 10px 14px;
    border-radius: 8px;

}
.sidebar-link span {
    display: inline-block;
    width: max-content;
}

/* Khi sidebar bị thu nhỏ */
.sidebar-toggle.collapsed .sidebar-link span {
    display: inline-block;
    width: 0;  /* Ẩn chữ bằng cách thu hẹp width */
    white-space: nowrap; /* Đảm bảo chữ không bị xuống dòng */
    overflow: hidden;
    transition: width 0.3s ease-in-out;
}
.sidebar-toggle .sidebar-link span {
    display: inline-block;
    width: 210px; /* Hoặc giá trị phù hợp với chữ dài nhất */
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s ease-in-out;
}
.sidebar-toggle.collapsed .sidebar-item .sidebar-link{
    margin-left: 6px;
}


.sidebar-dropdown .sidebar-item {
    padding-left: 22px; /* Mặc định thụt vào 12px */
}
.sidebar-toggle.collapsed .sidebar-dropdown .sidebar-item {
    padding-left: 0px; /* Mặc định thụt vào 12px */
}

/* Khi hover, item con sẽ thụt vào nhiều hơn */
.sidebar-dropdown .sidebar-item:hover {
    padding-left: 30px; /* Thụt vào sâu hơn khi hover */
}
/* Logo img */
.sidebar-logo img{
    width: 100%;
    height: 100%;
}
.sidebar-logo {
    padding: 8px;
    text-align: center;
    align-items: center;
}
/* Khi sidebar thu nhỏ và hover vào các mục có dropdown */
/* -------------------- */
/* Khi sidebar bị thu nhỏ */
/* Ẩn text mặc định của sidebar link */

/* -------------------- */
/* Cho các mục có dropdown (giữ nguyên hiệu ứng hiện dropdown) */







/* Khi hover vào item có dropdown, dropdown sẽ mở từ trái qua phải */
/* Khi sidebar bị thu nhỏ */
.sidebar-toggle.collapsed .sidebar-item.has-dropdown .sidebar-dropdown {
    display: block !important;
    position: absolute;
    left: 66px;
    top: 0;
    background-color: var(--background);
    padding: 10px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 100;
    width: 0px;  /* Bắt đầu với chiều rộng bằng 0 */
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.3s ease-out, opacity 0.1s ease-in;
}

/* Khi hover vào item, mở rộng dropdown */
.sidebar-toggle.collapsed .sidebar-item.has-dropdown:hover .sidebar-dropdown {
    width: 236px; /* Chiều rộng tối đa */
    opacity: 1;
    pointer-events: auto;
}

/* Giữ chữ luôn hiển thị ngay lập tức */
.sidebar-toggle.collapsed .sidebar-item.has-dropdown:hover .sidebar-dropdown * {
    opacity: 1;
    transition: none;
}




/* Đảm bảo dropdown nằm gần mục cha */
.sidebar-toggle.collapsed .sidebar-item.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Đảm bảo dropdown nằm ngay cạnh mục cha */
.sidebar-toggle.collapsed .sidebar-item.has-dropdown:hover {
    width: 260px; /* Giống như các mục không có dropdown */
}
/* -------------------- */
.sidebar-toggle .sidebar-item.no-dropdown {
    width: 260px;
    transition: width 0.3s ease-in-out;
}
/* Cho các item không có dropdown (ví dụ: Trang Chủ) */
.sidebar-toggle.collapsed .sidebar-item.no-dropdown {
    width: 66px;
    transition: width 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    /* background-color: var(--background); */


}
.sidebar-toggle.collapsed .sidebar-item .sidebar-dropdown{
    width: 300px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}
.sidebar-toggle.collapsed .sidebar-item.no-dropdown .sidebar-link:hover {
    background-color: none;
    border: 3px solid var(--background);
}
/* Khi hover, mở rộng item để hiển thị background và text */
.sidebar-toggle.collapsed .sidebar-item.no-dropdown:hover {
    width: 300px;
}

/* Ẩn text mặc định của item không có dropdown */
.sidebar-toggle.collapsed .sidebar-item.no-dropdown .sidebar-link span {
    opacity: 1;
    pointer-events: none;
}

/* Khi hover, hiển thị và căn giữa text cho item không có dropdown */
.sidebar-toggle.collapsed .sidebar-item.no-dropdown:hover .sidebar-link span {
    flex: 1;              /* Chiếm hết không gian còn lại */
    text-align: center;   /* Căn giữa nội dung */
    opacity: 1 !important;
}

/* Đối với item không có dropdown, icon và text chuyển sang màu trắng khi hover */
.sidebar-toggle.collapsed .sidebar-item.no-dropdown:hover .sidebar-link i{
    pointer-events: auto;
    color:var(--text-color-sidebar-hover);
}
.sidebar-toggle.collapsed .sidebar-item.no-dropdown:hover .sidebar-link span {
    pointer-events: auto;
    color:var(--text-color-sidebar-hover);
    font-size: 18px;
    font-weight: 600;
}
/* Top-navbar */

.top-navbar, .wrapper {
    overflow: visible !important;
}
.top-navbar {
    position: fixed;
    left: 260px;
    right: 0;
    width: calc(100% - 260px);
    height: 60px;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    transition: 0.3s ease-in-out;
    border-bottom: 1px solid #ddd;
    gap: 10px;
    overflow: visible !important; /* Đảm bảo dropdown không bị che */
    z-index: 1000;
}
.sidebar-toggle.collapsed ~ .top-navbar {
    left: 66px;
    width: calc(100% - 66px);
}

.side-menu-bt-sidebar {
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 8px; /* Khoảng cách giữa các item */
    width: 100%; /* Đảm bảo nó chiếm hết chiều rộng */
}

.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sidebar-toggle.collapsed ~ .navbar-custom {
    margin-right: 0px;
}

.nav-menus {
    display: flex;
    list-style: none;
    margin: 0 5px;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 12px;
}
.sidebar-toggle.collapsed ~ .nav-menus {
    display: flex;
    list-style: none;
    margin: 0;
}
.sidebar-toggle ~ .nav-menus {
    display: flex;
    list-style: none;
    margin: 0;
}

.profile-nav {
    position: relative;
    top: 2px;
    padding: 0px 6px;
    overflow: visible !important;
    cursor: pointer;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--background);
    list-style: none;
    padding: 10px;
    border-radius: 5px;
    width: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.profile-dropdown.show {
    display: block;

}

.profile-dropdown li {
    width: 100%; /* Mỗi mục chiếm toàn bộ chiều rộng */
}
.profile-dropdown a {
    display: block; /* Đảm bảo link chiếm toàn bộ diện tích của li */
    width: 100%; /* Chiếm hết chiều rộng */
    text-align: center; /* Căn giữa chữ */
    padding: 5px 10px; /* Tăng kích thước click */
    text-decoration: none; /* Bỏ gạch chân */
    color: white; /* Đổi màu chữ */
    transition: 0.3s ease-in-out;
    
}
.profile-dropdown a:hover {
    border-radius: 8px;
    color: var(--text-color-2);
    transition: 0.3s ease-in-out;
    background-color: #ffffff;
}
.profile-nav:hover .profile-dropdown {
    display:block;  
    border-radius: 8px;
    list-style: none;
    transition: 0.3s ease-in-out;

}

.wallet {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 8px;
    border: solid 2px var(--text-color);
    color: var(--text-color);
    transition: 0.2s ease;
}
/* toggler-btn */
.toggler-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.toggler-btn i {
    padding-top: 3px;
    font-size: 26px;
    color: var(--text-color);
    
}
.profile-media i {
    font-size: 28px; /* Kích thước icon */
    color: var(--text-color);
    
}
.site-mode {
    margin: 0;
}

#toggle-mode {
    background: none !important;  /* Xóa nền */
    border: 2px solid var(--text-color);
    box-shadow: none !important;  /* Xóa bóng đổ */
    padding: 2px 6px 0px 6px;  /* Điều chỉnh khoảng cách nếu cần */
    cursor: pointer;  /* Giữ hiệu ứng con trỏ */
    border-radius: 8px;
    color: var(--text-color);
}
/* Content Web */
.alert.bg-body.text-body.border {
    border-width: 2px !important;
    border-color: var(--border-color) !important;
}
.alert.bg-body.text-body.border p{
    font-size: 14px;
}
.alert.bg-body.text-body.border ul li{
    font-size: 14px;
    text-decoration:double;
}
/* note */
.note-head{
    margin: 8px;
    border-radius: 8px;
    border-width: 2px !important;
    border-color: var(--border-color) !important;
}
.note {
    border-left: 5px solid #007bff;
    padding : 4px 4px 4px 16px;
    margin: 10px 16px ;
}
.note a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.note a:hover {
    text-decoration: underline;
}

/* table */
.table-content {
    margin: 8px;
    
}
table {
    width: 100%;
    height: auto;
    border-collapse: collapse;
    table-layout: fixed;
    overflow-x: auto;
}
th, td {
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    padding: 12px;
    overflow: hidden;
}
th {
    background-color: var(--background);
    color: var(--text-color-sidebar);
    font-size: 16px;
    text-align: center;
}
.product-name {
    text-align: left;
}
.col-product-name{
    display: flex;
    align-items: center;
}
.col-product-name img, .product-name img{
    margin-right: 8px;
}
.table-content th:nth-child(1),
.table-content td:nth-child(1) {
    width: 60%; /* Cột "Tài khoản" */
}
.table-content th:nth-child(2),
.table-content td:nth-child(2),
.table-content th:nth-child(3),
.table-content td:nth-child(3),
.table-content th:nth-child(4),
.table-content td:nth-child(4),
.table-content th:nth-child(5),
.table-content td:nth-child(5)
{
    width: 10%; /* Cột "Tài khoản" */
}
/* PAYMENT */
.card {
    margin-bottom: 16px;
}
.card .table{
    border-radius: 0px;
    margin-bottom: 0 !important;
    height: auto;
}
.card-title {
    margin: 0;
    padding: 8;
}
/* moda pay float */
.float-left {
    float: left !important;
}
.float-right {
    float: right !important;
}


/* Tổng thể trang */
/* payment */
/* payment */
/* payment */
/* payment */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
}

.container-payment {
    display: flex; /* Sử dụng Flexbox để căn giữa */
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    min-height: 100%; /* Đảm bảo chiều cao tối thiểu bao phủ toàn bộ container */
    margin: 0px auto;
    max-width: 1200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.container-payment .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    width: 100%; /* Đảm bảo hàng chiếm toàn bộ chiều ngang */
    height: 100%; /* Đảm bảo hàng chiếm toàn bộ chiều cao container */
}

.left {
    flex: 1 1 auto; /* Tự động điều chỉnh chiều rộng dựa trên nội dung */
    padding: 20px;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right {
    flex: 1 1 auto; /* Tự động điều chỉnh chiều rộng dựa trên nội dung */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-box {
    background-color: var(--background);
    color: var(--text-color-sidebar);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal;
}

.entry {
    padding: 16px;
    font-size: 16px;
    border-bottom: 2px solid var(--background-color);
    text-align: center;
}

.info-box .entry {
    margin-bottom: 15px;
}

.info-box .entry p {
    font-size: 14px;
    line-height: 1.5;
}

.receipt {
    text-align: center;
    width: 100%;
    margin-top: 8px;
}

.qr-code {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Đặt kích thước cố định cho QR Code trên màn hình lớn */


.payment-cta,
.payment-cta a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
    padding-bottom: 6px;
}

#transactionTable tbody tr {
    height: auto; /* Điều chỉnh chiều cao dựa trên nội dung */
    font-size: 14px;
}

#transactionTable th {
    text-align: center;
}

.container-payment label {
    padding-bottom: 16px;
}

#transactionTable_wrapper label {
    padding-bottom: 16px;
}

.table-light th {
    background-color: var(--background);
    color: var(--text-color-sidebar);
}
/* change-passord */
.change-password-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Căn giữa theo chiều dọc */
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;            /* Đặt chiều rộng cố định phù hợp */
    margin: 20px auto;          /* Căn giữa theo chiều ngang */
    color: var(--text-color);
}

.change-password-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.change-password-container label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.change-password-container input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.change-password-container button {
    width: 100%;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary:hover {
    /* background: #0056b3;  */
    border-color: #0056b3;    
    color: #ffffff;            /* Màu chữ */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.error {
    color: red;
    margin-top: 10px;
}

.success {
    color: green;
    margin-top: 10px;
}


/* tuong tac tiktok */

.modal-header{
    background-color: var(--background);
    color: var(--text-color-sidebar);
    display: flex;
    justify-content: space-between;
}
/* tuong tac tiktok */
/* Container tổng */
.buff-container {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
  
  /* Header dịch vụ */
.service-header {
display: flex;
align-items: center;
justify-content:center;
gap: 10px;
margin-bottom: 20px;
}

.service-header img {
max-width: 40px;
}

.service-header h2 {
font-size: 24px;
color:var(--text-color);
margin: 0;
}
/* Nút chuyển đổi dịch vụ */
.buff-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin: 20px;
justify-content:center;
}

.buff-buttons button {
flex: 1 1 auto;
max-width: 200px;
font-size: 16px;
padding: 10px 20px;
border: none;
border-radius: 4px;
background: #0d6efd;
color: #fff;
cursor: pointer;
transition: background 0.3s ease;
}

/* .buff-buttons button:hover {
background: #0b5ed7;
} */

/* Nội dung dịch vụ */
.buff-content {
padding: 20px;
border-radius: 8px;
border: 1px solid var(--text-color);
}

.buff-slide {
display: none; /* Slide sẽ được hiển thị thông qua JS (thêm class active) */
padding: 20px;
border-radius: 8px;
padding-bottom: 0;
}

.buff-slide.active {
display: block;
}

.buff-slide h2 {
    text-align: center;
    color: var(--text-color);
  }
.buff-slide button{
display: block;
margin: 40px auto; /* 20px margin trên dưới, auto bên trái và phải */
}

/* Inputs */
.buff-slide input[type="text"],
.buff-slide input[type="number"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
}

/* Radio button (sử dụng form-check của Bootstrap) */
.form-check {
display: flex;
align-items: center;       /* Căn giữa theo chiều dọc */
justify-content: flex-start; /* Căn về bên trái */
}

.form-check-input {
margin-top: 0;             /* Loại bỏ margin mặc định */
margin-bottom: 0;
vertical-align: middle;    /* Căn giữa theo dòng */
}

.form-check-label {
margin-left: 0.5rem;       /* Khoảng cách giữa input và label */
vertical-align: middle;
}




/* Form group lưu ý */
.form-group {
margin-top: 20px;
}

.form-group .form-label {
font-size: 16px;
margin-bottom: 10px;
display: block;
}
.alert-primary img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
/* Alert lưu ý */
.alert {
padding: 15px;
border-radius: 4px;
font-size: 14px;
}

.alert-primary {
color: var(--text-color);
margin-bottom: 0;
}

/* Danh sách lưu ý */
.ul1 li{
    list-style-type: disc; /* Hiển thị dấu bullet dạng tròn */
}
.form-label {
    color: var(--text-color);
}
.form-check-label {
    color: var(--text-color);
}
/* help */
.contact-admin {
    text-align: center;
    margin-top: 20px;
}
.contact-items {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.contact-box {
    width: 200px;
    height: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: transform 0.3s;
    border: 2px solid var(--text-color);
}
.contact-box:hover {
    transform: translateY(-5px);
}
.contact-box img {
    max-width: 50px;
    max-height: 50px;
}
/* profile */
.profile-box {
    text-align: center;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 10px;
    border-radius: 8px;
}



.pro-content {
    margin-top: 20px;
    padding: 10px;
}

.pro-content .d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-icon {
    margin-right: 10px;
}

.eml {
    text-align: center;
}

.card-block {
    margin-bottom: 20px;
}

.card-body {
    padding: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
}

.form-control {
    padding: 10px;
    border-radius: 5px;
}

.card-footer {
    text-align: right;
    padding: 10px;
}
h2.mb-2.mt-3{
    font-size: 16px;
}
h4.mb-2.mt-3 {
    font-size: 18px;
}
/* input-read-mail */
/* 1. Ẩn #mailBoxContent ban đầu */
#mailBoxContent {
    display: none;
}

/* Khi muốn hiện, JS chỉ cần làm: document.getElementById('mailBoxContent').style.display = 'block'; */

/* 2. Wrapper ngoài cùng (lần lượt thẻ .d-flex bên trong #mailBoxContent) */
#mailBoxContent > .d-flex.w-100.justify-content-center > .d-flex {
    max-width: 1268px;
    width: 100%;
    height: 680px;
    border: 2px solid var(--border-color);
    /* chỉ bo 2 góc bên trái */
    border-radius: 8px;
    overflow: hidden;
}

/* 3. Cột danh sách email */
#emailList {
    width: 35%;
    border-right: 2px solid var(--border-color);
    height: 680px;
    overflow-y: auto;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
      
}

/* 4. Cột nội dung email */
#emailContent {
    width: 65%;
    padding: 16px;
    max-height: 680px;
    overflow-y: auto;
}

/* 5. Khoảng cách và style cho các item trong list-group */
#emailList.list-group .list-group-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}
#emailList.list-group .list-group-item:hover {
    background-color: var(--background-color);
    color: var(--text-color);
}
  
  /* 6. Đảm bảo text overflow trong item */
#emailList.list-group .list-group-item > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
  #emailList.list-group .list-group-item > div:last-child {
    margin-bottom: 0;
}
.list-group .gap-3 .p-2{
    border-top-right-radius: 0px;
}
#readMailInput{
    border: 2px solid #0866ff;
}
#package_cb{
    border: 2px solid #0866ff;
}
@media (max-width: 768px) {
    .navbar-custom {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Đẩy hai phần sang hai bên */
        width: 100%;
        margin-right: 0px;
        transition: 0;
    }
    .sidebar-toggle.collapsed {
        width: 0;
        min-width: 0;
        overflow: hidden;
        transition: width 0.3s ease-in-out;
    }

    /* Khi không có class .collapsed, sidebar mở */
    .sidebar-toggle {
        width: 260px;
        min-width: 260px;
    }
    .sidebar-toggle.collapsed ~ .top-navbar {
        left: 0;
    }
    .sidebar-toggle ~ .top-navbar {
        left: 260px;
        width: calc(100% - 260px);
    }
    
    .top-navbar {
        width: auto !important; /* Ép buộc chiều rộng đầy đủ */
        left: 0;
    }
    
    
    .sidebar-toggle.collapsed .sidebar-link span {
        pointer-events: auto !important;
    }
    
    
    .sidebar-toggle .sidebar-item .sidebar-link {
        opacity: 1;
        visibility: visible;
        max-height: 50px; /* Đặt chiều cao phù hợp */
    }
    
    .sidebar-toggle .sidebar-link {
        opacity: 1;
        visibility: visible;
        height: 50px; /* Điều chỉnh chiều cao tùy vào nội dung */
        transform: translateX(0);
    }
    .table-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .table-content th,
    .table-content td {
        padding: 8px; /* Giảm padding cho gọn */
        font-size: 14px; /* Giảm kích thước chữ */
    }

    /* Giúp bảng cuộn ngang thay vì bị vỡ */
    .table-wrapper {
        overflow-x: auto;
    }
    .table-content th:nth-child(1),
    .table-content td:nth-child(1) {
        width: 40%; /* Cột "Tài khoản" */
    }
    .table-content th:nth-child(2),
    .table-content td:nth-child(2),
    .table-content th:nth-child(3),
    .table-content td:nth-child(3),
    .table-content th:nth-child(4),
    .table-content td:nth-child(4),
    .table-content th:nth-child(5),
    .table-content td:nth-child(5)
    {
        width: 15%; /* Cột "Tài khoản" */
    }
    .buff-buttons {
        flex-direction: column;
    }
      .buff-buttons button {
        width: 100%;
    }
    .container-payment {
        margin: 10px;
        max-width: 100%; /* Đảm bảo bố cục không bị vượt quá chiều ngang */
    }
    
    .container-payment .row {
        flex-direction: column; /* Xếp chồng các cột lên nhau */
        height: auto; /* Đặt chiều cao tự động để phù hợp với nội dung */
    }
    
    .left, .right {
        flex: 1 1 auto; /* Tự động điều chỉnh chiều rộng và chiều cao */
        padding: 15px;
        border-right: none; /* Bỏ viền phải */
        border-bottom: 1px solid #eaeaea; /* Thêm viền dưới cho phần left */
    }
    
    /* Đảm bảo QR Code ở trên, thông tin ở dưới */
    .right {
        order: 1;
        display: flex;
        justify-content: center;
    }
    
    .left {
        order: 2;
        margin-top: 15px; /* Thêm khoảng cách giữa thông tin và QR Code */
    }
    
    /* Điều chỉnh kích thước QR Code cho phù hợp với màn hình nhỏ */
    .qr-code img {
        width: 100%;
        max-width: 300px; /* Điều chỉnh kích thước theo ý muốn */
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    /* Điều chỉnh text và khoảng cách của phần thông tin */
    .info-box {
        text-align: left; /* Canh trái cho thông tin */
        padding: 10px;
    }
    
    /* Điều chỉnh footer (nút Quay Lại) nằm dưới cùng */
    .copyrights {
        text-align: center;
        margin-bottom: 0; /* Đảm bảo không có khoảng cách dưới */
        padding-bottom: 0; /* Đặt padding dưới cùng là 0 */
    }
}