/* Responsive styles */
@media (max-width: 1200px) {
    .tab-item {
        padding: 10px 12px;
        min-width: auto;
    }
}

@media (max-width: 992px) {
    .title-content-container {
        margin-bottom: 20px;
        justify-content: center;
    }

    .custom-tabs {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .custom-tabs {
        flex-wrap: wrap;
    }

    .tab-item {
        flex: 1 0 calc(33.33% - 8px);
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .card-header-menu {
        padding: 15px;
    }

    .tab-item {
        flex: 1 0 calc(50% - 8px);
        padding: 10px 8px;
    }

    .tab-text {
        font-size: 12px;
    }
    .custom-tabs {
        flex-direction: column;
        width: 100%
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .ct-address-card {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: none;
        margin-top: -30px;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .social-buttons {
        display: flex;
        flex-direction: column;
    }

    .social-button {
        width: 100%;
        margin-right: 0;
    }
}
@media (max-width: 991.9px) {
    .sidebar {
        margin-left: -250px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        width: 250px;
        transition: all 0.3s;
    }
    .sidebar.active {
        margin-left: 10px;
    }
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
        opacity: 0;
        transition: all 0.5s ease-in-out;
    }

    .overlay.active {
        display: block;
        opacity: 1;
    }
    .h-container {
        height: calc(100vh - 95.5px);
    }
    .card-header-menu {
        flex-direction: column;
    }
    .main-table {
        height: auto!important;
    }
    .footer-table {
        position: fixed;
        bottom: 10px;
        left: 10px;
        right: 10px;
        z-index: 1000;
    }
    .bottom-paginate {
        border-radius: 0 0 10px 10px;
    }
}

@media (max-width: 991.98px) {
    .scroll-y,
    .hover-scroll-y,
    .hover-scroll-overlay-y {
        overflow-y: auto;
    }
}

@media (min-width: 992px) {
.sidebar-admin {
    position: relative;
    transition: all 0.5s ease; /* Transition cho tất cả thuộc tính */
}

.sidebar-admin .menu-title, .sidebar-admin .language-selector, .sidebar-admin .title-menu-sidebar, .sidebar-admin .logo-sidebar {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease; /* Transition cho opacity */
    white-space: nowrap; /* Tránh các phần tử xuống dòng */
}
.sidebar-admin.show-active .menu-title, .sidebar-admin:hover .menu-title,
.sidebar-admin.show-active .language-selector, .sidebar-admin:hover .language-selector,
.sidebar-admin.show-active .title-menu-sidebar, .sidebar-admin:hover .title-menu-sidebar,
.sidebar-admin.show-active .logo-sidebar, .sidebar-admin:hover .logo-sidebar,
.sidebar-admin.show-active .menu-icon, .sidebar-admin:hover .menu-icon {
    display: inline-block;
    opacity: 1;
    animation: fadeIn 0.5s ease; /* Thêm animation hiển thị từ từ */
}
/* Animation để hiển thị từ từ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.sidebar-admin .app-sidebar-logo {
    justify-content: center;
}
.sidebar-admin.show-active .app-sidebar-logo, .sidebar-admin:hover .app-sidebar-logo {
    justify-content: space-between;
}

#sidebarCollapse {
    position: absolute; /* hoặc fixed tùy theo thiết kế */
    right: -11px; /* nhô ra ngoài một chút nếu cần */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050; /* đảm bảo nằm trên sidebar */
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    transition: transform 0.5s ease;
}
}