/* Chat messages - hai chiều */
.bot-msg,
.user-msg {
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 70%;
    word-wrap: break-word;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Tin nhắn từ bot */
.bot-msg {
    background-color: #e0e0e0;
    color: #000;
    align-self: flex-start !important;
    /* Căn trái */
    margin-right: auto !important;
    /* Đẩy tin nhắn sang trái */
    margin-left: unset;
}

/* Tin nhắn từ người dùng */
.user-msg {
    background-color: #C21F61;
    color: white;
    align-self: flex-end !important;
    /* Căn phải */
    margin-left: auto !important;
    /* Đẩy tin nhắn sang phải */
    margin-right: unset;
}

.navbar-nav .nav-item {
    margin: 0 18px;
}

.navbar-nav .nav-link {
    font-size: 0.90rem;
    font-weight: 500;
    color: #333333 !important;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #C21F61 !important;
    transform: scale(1.05);
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 0.95rem;
    color: #333333;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f3f3f3;
    color: #C21F61;
}

.bootstrap-select .dropdown-toggle {
    border: 1.5px solid #C21F61 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    color: #C21F61 !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    padding: 6px 10px;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select .dropdown-toggle:hover {
    background-color: #fce8f2 !important;
    border-color: #a71850 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(194, 31, 97, 0.2) !important;
}

.bootstrap-select {
    text-align: center;
}

.bootstrap-select .filter-option-inner-inner img {
    vertical-align: middle;
    margin-right: 6px;
}

#mainHeader {
    position: fixed;
    /* luôn hiển thị */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

/* Thêm khoảng cách padding-top cho nội dung chính để không bị che header */
body {
    padding-top: 100px;
    /* hoặc bằng chiều cao thực tế header */
}

/* Navbar Styles */
.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #C21F61 !important;
    transform: scale(1.05);
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 0.95rem;
    color: #333;
}

.dropdown-item:hover {
    background-color: #f3f3f3;
    color: #C21F61;
}

/* Bootstrap-select customization */
.bootstrap-select .dropdown-toggle {
    border: 1.5px solid #C21F61 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    color: #C21F61 !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 5px 10px;
    text-align: center;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select .dropdown-toggle:hover {
    background-color: #fce8f2 !important;
    border-color: #a71850 !important;
    box-shadow: 0 0 0 2px rgba(194, 31, 97, 0.2) !important;
}

.bootstrap-select .filter-option-inner-inner img {
    vertical-align: middle;
    margin-right: 6px;
}

/* Language Selector Styling */
.language-selector {
    border: 1.5px solid #C21F61 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #C21F61 !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    text-align: center;
    min-width: 140px;
    transition: all 0.3s ease;
}

.language-selector:focus {
    background-color: #fce8f2 !important;
    border-color: #a71850 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(194, 31, 97, 0.2) !important;
}

.language-selector:hover {
    background-color: #fce8f2 !important;
    border-color: #a71850 !important;
    transform: scale(1.02);
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

#page-loader.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff0099;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

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

