﻿
/* Khi menu cha mở */
.sidebar-link.has-arrow[aria-expanded="true"] {
    background-color: var(--bs-primary-bg-subtle); /* màu primary-subtle */
    border-radius: 0.25rem; /* giống class rounded-1 */
    color: #5d87ff; /* đổi màu chữ khi mở */
}

    /* Nếu muốn icon cũng đổi màu khi mở */
    .sidebar-link.has-arrow[aria-expanded="true"] i {
        color: #5d87ff; /* đồng bộ với text */
    }

/* padding cho menu con 1 cấp */
.sidebar-nav ul .sidebar-item .first-level .sidebar-item > .sidebar-link {
    padding: 6px 10px !important;
}

/* Đặt min-width cho menu con trên horizontal layout khi màn hình rộng */
@media (min-width: 1300px) {
    html[data-layout=horizontal] .sidebar-nav #sidebarnav > .sidebar-item > .two-column + .first-level {
        min-width: 500px !important;
    }
}
.modal-content {
    z-index: 10000 !important
}
.ui-select-bootstrap .ui-select-choices {
    z-index: 2000 !important; /* cao hơn modal, card */
    position: absolute !important;
}

.ui-select-bootstrap .ui-select-dropdown {
    display: block !important;
    visibility: visible !important;
}
.custom-accordion-header:hover {
    color: #2a3547; /* Đậm hơn một chút khi hover */
    cursor: pointer;
}

/* Xử lý khi Accordion mở (uib-accordion thêm class panel-open) */
.panel-open .custom-accordion-header {
    color: #00B8C7; /* Chuyển sang màu thương hiệu khi đang mở */
}
.dropdown-menu {
    margin-top: 2px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border: 1px solid #d1d9e6 !important;
    padding: 5px 0 !important;
}

.uib-typeahead-match a {
    padding: 8px 15px !important;
    color: #333 !important;
    display: block;
    text-decoration: none;
}

.uib-typeahead-match.active a {
    background-color: #e8f0fe !important;
    color: #1a73e8 !important;
    font-weight: 500;
}

/* Fix dropdown bị ẩn */
.no-overflow {
    overflow: visible !important;
} 

/* Active select*/
.ts-dropdown .active {
    background-color: #bcdcfb;
}
.ui-select-bootstrap .ui-select-choices {
    z-index: 20 !important;
    position: absolute !important;
}
.force-visible {
    overflow: visible !important;
}
.hover-cyan-card:hover {
    border-color: #0dcaf0 !important;
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(13, 202, 240, 0.15) !important;
}

.fs-13 {
    font-size: 3.2rem;
    line-height: 1.2;
}

.pt-7 {
    padding-top: 4rem;
}

.py-9 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Hiệu ứng cho nút play video */
.cursor-pointer {
    cursor: pointer;
}

.p-6 {
    padding: 1.5rem;
}
.topbar.custom-cyan-theme,
.app-header.with-horizontal {
    background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-cyan-theme .nav-link,
.custom-cyan-theme i,
.custom-cyan-theme .text-primary,
.custom-cyan-theme .text-dark,
.custom-cyan-theme .fw-semibold,
.custom-cyan-theme .text-warning,
.custom-cyan-theme .text-success {
    color: #ffffff !important;
}
.custom-cyan-theme .text-muted,
.custom-cyan-theme .small {
    color: rgba(255, 255, 255, 0.85) !important;
}
.custom-cyan-theme .nav-link:hover,
.custom-cyan-theme .nav-item:hover .text-primary {
    color: #ffffff !important;
    opacity: 0.8;
}
.custom-cyan-theme .dark-logo {
    display: none !important;
}

.custom-cyan-theme .light-logo {
    display: block !important;
}
.dropdown-menu .text-primary {
    color: #0d6efd !important;
}

.dropdown-menu .text-dark {
    color: #2a3547 !important;
}

.dropdown-menu .text-muted {
    color: #5a6a85 !important;
}
.topbar.custom-cyan-theme .dropdown-menu,
.topbar.custom-cyan-theme .dropdown-menu .dropdown-item,
.topbar.custom-cyan-theme .dropdown-menu .nav-link,
.topbar.custom-cyan-theme .dropdown-menu span,
.topbar.custom-cyan-theme .dropdown-menu p,
.topbar.custom-cyan-theme .dropdown-menu h6 {
    color: #2a3547 !important;
}

    
    .topbar.custom-cyan-theme .dropdown-menu i {
        color: inherit !important
    }

    .topbar.custom-cyan-theme .dropdown-menu .dropdown-item:hover {
        background-color: #f6f9fc;
        color: #0d6efd !important; 
    }