.mgb-40 {
    margin-bottom: 40px;
}

.icon-services img {
    padding: 0 15px;
}

.text-green {
    color: #0dcaf0;
}

.text-lg {
    font-size: 2em !important;
    line-height: 2.5em;
}

.text-md {
    font-size: 1.0833em !important;
}

.btn-green {
    background-color: #0dcaf0 !important;
}

.btn-circle {
    border-radius: 16px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    z-index: 1;
}


/* Links inside the dropdown */

.dropdown-content a {
    color: black;
    text-decoration: none;
    display: block;
}

.card-header:first-child {
    border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.justify-content-center {
    -webkit-box-pack: center !important;
    justify-content: center !important;
}

.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
}


/* Change color of dropdown links on hover */

.dropdown-content a:hover {
    background-color: #ddd;
}


/* Show the dropdown menu on hover */

.dropdown:hover .dropdown-content {
    display: block;
}


/* Change the background color of the dropdown button when the dropdown content is shown */

.dropdown:hover .dropbtn {
    background-color: #0dcaf0;
}

@media (max-width: 991px) {
    .icon-services img {
        max-width: 150px;
    }
    .icon-services img.next {
        max-width: 50px;
    }
    .text-md-right {
        text-align: right !important;
    }
}

@media (max-width: 768px) {
    .icon-services img {
        padding: 0 4px;
        max-width: 72px;
    }
    .icon-services img.next {
        max-width: 25px;
    }
    .text-md-right {
        text-align: right !important;
    }
    .col-form-label {
        padding-top: calc(0.375rem + 1px);
        padding-bottom: calc(0.375rem + 1px);
        margin-bottom: 0;
        font-size: inherit;
        line-height: 1.6;
    }
}

.icon {
    /* position: relative; */
    display: inline-block;
}


/* Effect 1b - Ring in */

.icon:hover {
    transform: scale(1.8);
}
.sticky-top {
    z-index: 999 !important;
}
a.listproduct:hover,
a.listproduct:active {
    font-size: 150%;
}
/* Thêm class .table-sticky-first-column vào selector */
.table-responsive .table.table-sticky-first-column th:first-child,
.table-responsive .table.table-sticky-first-column td:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 2;
    /* background-color: #f8f9fa;  Đổi màu nếu cần */
}

.table-responsive .table.table-sticky-first-column th:first-child {
    border-right: 2px solid #dee2e6;
}

.table-responsive .table.table-sticky-first-column td:first-child {
    border-right: 2px solid #dee2e6;
}

h1,
h2,
h3,
h4,
h5,
h6 .panel-title {
    margin: 0;
}

/* Áp dụng cho màn hình có chiều rộng tối đa là 768px (máy tính bảng và điện thoại) */
@media screen and (max-width: 768px) {
    .table-responsive-cards thead {
        /* Ẩn tiêu đề của bảng đi */
        display: none;
    }

    .table-responsive-cards,
    .table-responsive-cards tbody,
    .table-responsive-cards tr,
    .table-responsive-cards td {
        /* Buộc các thành phần của bảng hiển thị như một khối */
        display: block;
        width: 100%;
    }

    .table-responsive-cards tr {
        /* Tạo kiểu cho mỗi dòng thành một card */
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
    }

    .table-responsive-cards td {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        text-align: right;
        border: none;
        position: relative;
    }

    .table-responsive-cards td:before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        padding-right: 15px;
        flex-shrink: 0;
        max-width: 45%;
        word-break: break-word;
    }

    .table-responsive:has(.table-responsive-cards) {
        overflow: visible;
    }

    .table-responsive-cards td .dropdown-menu {
        z-index: 1050;
    }
}

/* ==========================================================================
   Modern Topnav Quick Menu Styles (Header User Menu, Auth Buttons & Lang)
   ========================================================================== */
#header .topnav .modern-quick-menu {
    display: flex;
    align-items: center;
    height: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 10px;
}

#header .topnav .modern-quick-menu > li {
    float: none;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    list-style: none;
}

/* Auth Action Buttons (Sign In / Sign Up) */
#header .topnav .btn-topnav-signin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    line-height: 1.2;
}

#header .topnav .btn-topnav-signin:hover {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.08);
}

#header .topnav .btn-topnav-signin i {
    font-size: 13px;
    color: inherit;
}

#header .topnav .btn-topnav-signup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0284c7 0%, #0284c7 100%);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    transition: all 0.25s ease;
    line-height: 1.2;
    border: none;
}

#header .topnav .btn-topnav-signup:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5);
    transform: translateY(-1px);
    color: #ffffff !important;
}

#header .topnav .btn-topnav-signup i {
    font-size: 12px;
    color: #ffffff;
}

/* User Account Trigger Button */
#header .topnav .user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    border-radius: 24px;
    padding: 4px 12px 4px 5px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1.2;
}

#header .topnav .user-menu-btn:hover,
#header .topnav .user-menu-btn:focus,
#header .topnav .user-menu-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#header .topnav .user-avatar-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

#header .topnav .user-display-name {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

#header .topnav .dropdown-arrow,
#header .topnav .lang-arrow {
    font-size: 9px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

#header .topnav .show > .dropdown-arrow,
#header .topnav .show > .lang-arrow,
#header .topnav [aria-expanded="true"] .dropdown-arrow,
#header .topnav [aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

/* Modern Dropdown Menus */
.modern-topnav-dropdown {
    border-radius: 12px !important;
    min-width: 230px !important;
    padding: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    animation: topnavDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-top: 6px !important;
}

@keyframes topnavDropdownFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-topnav-dropdown .dropdown-user-header {
    background: #f8fafc;
    border-radius: 8px;
}

.modern-topnav-dropdown .modern-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #334155 !important;
    border-radius: 8px;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.modern-topnav-dropdown .modern-menu-item:hover {
    background: #f1f5f9;
    color: #0284c7 !important;
    transform: translateX(3px);
}

.modern-topnav-dropdown .modern-menu-item .menu-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

.modern-topnav-dropdown .modern-menu-item.modern-logout-item:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* Language Selector */
#header .topnav .btn-topnav-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    border-radius: 18px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1.2;
}

#header .topnav .btn-topnav-lang:hover,
#header .topnav .btn-topnav-lang[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.modern-topnav-dropdown.lang-dropdown-menu {
    min-width: 150px !important;
}

.modern-topnav-dropdown.lang-dropdown-menu .dropdown-item {
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 6px;
    color: #334155;
    transition: all 0.15s ease;
}

.modern-topnav-dropdown.lang-dropdown-menu .dropdown-item:hover {
    background: #f1f5f9;
    color: #0284c7;
}

.modern-topnav-dropdown.lang-dropdown-menu .dropdown-item.active-lang {
    background: #f0f9ff;
    color: #0284c7;
    font-weight: 600;
}

