/* GIAO DIỆN TRANG CHÍNH */
:root {
    --primary-color: #0046B2;
    --primary-hover: #3527cf;
    --danger-color: #ff0000;
    --danger-hover: #dc2626;
    --success-color: #22c55e;
    --youtube-color: #ff0000;
    --warning-color: #f97316;
    --bg-main: #ffffff;
    --bg-content: #ffffff;
    --bg-sidebar-left: #111827;
    --bg-sidebar-right: #f3f4f6;
    --bg-modal-overlay: rgba(17, 24, 39, 0.6);
    --text-primary: #000000;
    --text-secondary: #3a3d44;
    --text-on-dark: #e5e7eb;
    --text-on-dark-hover: #ffffff;
    --text-on-primary: #ffffff;
    --border-color: #e5e7eb;
    --divider-color-dark: #374151;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --font-family: 'Roboto', 'Arial';
}
body { margin: 0; padding: 0; font-family: var(--font-family); background-color: var(--bg-main); color: var(--text-primary); display: flex; flex-direction: column; height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Các style chung khác của trang chính... (Giữ nguyên) */
#main-header { background-color: #0056b3; color: white; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-color); flex-shrink: 0; z-index: 10; }
#header-left { display: flex; align-items: center; gap: 16px; font-size: 1rem; font-weight: 500; }
#header-left span { cursor: pointer; display: flex; align-items: center; gap: 8px; color: white; transition: color 0.2s ease; }
#header-left span:hover { color: #e5e7eb; }
#header-left .header-icon { font-size: 1.2rem; }
#sidebar-toggle-btn { background-color: transparent; border: 1px solid rgba(255,255,255,0.4); color: white; width: 32px; height: 32px; border-radius: var(--border-radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; z-index: 1002; }
#sidebar-toggle-btn:hover { background-color: rgba(255,255,255,0.2); border-color: white; }
#current-page-title { font-size: 1.1rem; font-weight: 500; flex-grow: 1; text-align: center; display: none; } /* Thêm display: none; */
#header-right { display: flex; align-items: center; gap: 20px; }
.header-item { white-space: nowrap; }
/* Ẩn greeting-text và logoutButton cũ */
.greeting-text, #logoutButton {
    display: none !important;
}

/* Style cho các biểu tượng chuông và tin nhắn */
.header-icon-item {
    position: relative;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    margin-right: 15px;
    transition: color 0.2s ease;
}
.header-icon-item:hover {
    color: #e5e7eb;
}
.header-icon-item .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ff0000; /* Màu đỏ cho badge */
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 10px;
    text-align: center;
    line-height: 1;
    display: none; /* Mặc định ẩn, sẽ hiển thị khi có thông báo */
}

/* Style cho hình đại diện người dùng và popup */
.user-profile-widget {
    position: relative;
    margin-right: 15px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(194, 194, 194, 0.7);
    transition: border-color 0.2s ease;
}
.user-avatar:hover {
    border-color: rgb(255, 238, 0);
}

.user-profile-popup {
    position: absolute;
    top: 55px; /* Dưới avatar một chút */
    right: 0;
    background-color: #111827; /* Nền tối như menu trái */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    display: none; /* Mặc định ẩn */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.user-profile-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-profile-popup::before { /* Mũi tên trỏ lên avatar */
    content: '';
    position: absolute;
    top: -10px;
    right: 15px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #111827;
}

.user-info-section {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid var(--divider-color-dark);
    margin-bottom: 10px;
}
.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.user-info-section h4 {
    margin: 0;
    color: var(--text-on-dark);
    font-size: 1.1rem;
    font-weight: 600;
}
.user-info-section p {
    margin: 5px 0 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.profile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-menu-list li {
    padding: 8px 20px;
}
.profile-menu-list li a {
    color: var(--text-on-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.profile-menu-list li a:hover {
    color: var(--primary-color);
}
.profile-menu-list li a i {
    font-size: 1rem;
    width: 20px; /* Đảm bảo icon căn chỉnh */
}
.profile-menu-list .menu-divider {
    border-top: 1px solid var(--divider-color-dark);
    margin: 10px 0;
    padding: 0;
}


#live-clock { font-size: 0.9rem; font-weight: 500; text-align: right; min-width: 150px; }
#live-clock #clock-time { display: block; font-weight: 1000; }
#live-clock #clock-date { display: block; font-size: 0.8rem; }
#main-content-area { display: flex; flex-grow: 1; overflow: hidden; }
#content-container { flex-grow: 1; padding: 5px; display: flex; flex-direction: column; overflow-y: auto; box-sizing: border-box; }
#functionContent {
    width: 100%;
    height: 100%; /* Thêm dòng này để đảm bảo nó chiếm toàn bộ chiều cao khả dụng */
    flex-grow: 1;
}#loadingSpinner { border: 4px solid var(--border-color); border-top: 4px solid var(--primary-color); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 50px auto; display: none; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#left-sidebar-container { width: 200px; background-color: var(--bg-sidebar-left); color: var(--text-on-dark); padding: 5px; border-right: 1px solid var(--border-color); box-shadow: var(--shadow-md); flex-shrink: 0; flex-direction: column; box-sizing: border-box; transition: width 0.3s ease, padding 0.3s ease, transform 0.3s ease-in-out, opacity 0.3s; position: relative; z-index: 5; position: relative; }
#left-sidebar-container.collapsed { width: 80px; padding: 10px 0; }
#left-sidebar-container.collapsed .menu-button-sidebar span, #left-sidebar-container.collapsed .dropdown-button span, #left-sidebar-container.collapsed .menu-section-title span, #left-sidebar-container.collapsed .dropdown-arrow { opacity: 0; width: 0; height: 0; padding: 0; margin: 0; overflow: hidden; pointer-events: none; transition: all 0.2s ease; }
#left-sidebar-container.collapsed .menu-button-sidebar, #left-sidebar-container.collapsed .dropdown-button { justify-content: center; width: 44px; margin-left: auto; margin-right: auto; }
#left-sidebar-container.collapsed .menu-button-sidebar .icon, #left-sidebar-container.collapsed .dropdown-button .icon { margin-right: 0; font-size: 1.2rem; }
#left-sidebar-container.collapsed .menu-section-title { padding: 0; height: auto; margin-bottom: 10px; }
#left-sidebar-container.collapsed .menu-section { border-bottom: none; }
.sidebar-content-wrapper { width: 100%; display: flex; flex-direction: column; align-items: center; flex-grow: 1; overflow-y: auto; }
.menu-section { width: 100%; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--divider-color-dark); }
.menu-section:last-of-type { border-bottom: none; }
.menu-section-title { color: #9ca3af; text-align: left; margin-bottom: 8px; font-size: 0.8rem; font-weight: 600; padding: 8px 12px; width: 100%; display: flex; align-items: center; box-sizing: border-box; text-transform: uppercase; letter-spacing: 0.05em; }
.menu-button-sidebar, .dropdown-button { background-color: transparent; color: var(--text-on-dark); padding: 10px 12px; margin-bottom: 4px; border: none; border-radius: var(--border-radius-md); cursor: pointer; width: 90%; font-size: 0.9rem; font-weight: 500; text-align: left; text-decoration: none; display: flex; justify-content: flex-start; align-items: center; transition: background-color 0.2s ease, color 0.2s ease; }
.menu-button-sidebar:hover, .dropdown-button:hover, .dropdown-button.active { background-color: #374151; color: var(--text-on-dark-hover); }
.menu-button-sidebar .icon, .dropdown-button .icon { margin-right: 12px; font-size: 1rem; min-width: 20px; text-align: center; color: #9ca3af; transition: color 0.2s ease; }
.menu-button-sidebar:hover .icon, .dropdown-button:hover .icon, .dropdown-button.active .icon { color: var(--text-on-dark-hover); }
.dropdown { position: relative; display: flex; width: 100%; margin-bottom: 4px; justify-content: center; }
.dropdown-button { align-items: left; }
.dropdown-menu { display: none; position: fixed; min-width: 230px; z-index: 1001; background-color: #111827; border-radius: var(--border-radius-lg); padding: 6px; flex-direction: column; box-shadow: var(--shadow-lg); border: 1px solid var(--divider-color-dark); }
.dropdown-menu.show { display: flex; }
.dropdown-menu .menu-button-sidebar { width: 100%; box-sizing: border-box; }
.dropdown-menu .menu-button-sidebar:hover { background-color: #4b5563; }
#right-sidebar-container { width: 200px; background-color: var(--bg-sidebar-right); color: black; padding: 16px; border-left: 1px solid var(--border-color); flex-shrink: 0; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s; position: relative; }
#right-sidebar-container.collapsed { width: 60px; padding: 16px 0; }
#right-sidebar-container.collapsed h3, #right-sidebar-container.collapsed .link-button-right span { opacity: 0; width: 0; height: 0; padding: 0; margin: 0; overflow: hidden; pointer-events: none; transition: all 0.2s ease; }
#right-sidebar-container.collapsed .link-button-right { width: 20px; justify-content: center; margin-left: auto; margin-right: auto; }
#right-sidebar-container.collapsed .link-button-right .icon { margin: 0; font-size: 1.1rem; }
#right-sidebar-container.collapsed .right-menu-section { margin-bottom: 10px; }
#right-sidebar-container.collapsed h3 { height: auto; margin-bottom: 10px; }
#right-sidebar-container h3 { color: var(--text-secondary); text-align: center; margin-bottom: 16px; font-size: 0.8rem; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; }
.right-menu-section { width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.link-button-right { background-color: var(--bg-content); color: var(--text-secondary); padding: 8px 12px; margin-bottom: 8px; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); cursor: pointer; width: 85%; font-size: 0.9rem; font-weight: 500; text-decoration: none; display: flex; align-items: center; justify-content: flex-start; transition: all 0.2s ease; box-shadow: var(--shadow-sm); }
.link-button-right:hover { background-color: #e5e7eb; color: var(--text-primary); border-color: #d1d5db; }
.link-button-right .icon { margin-right: 10px; font-size: 0.9rem; min-width: 16px; text-align: center; }
.link-button-right.primary { border-color: var(--primary-color); color: var(--primary-color); }
.link-button-right.primary:hover { background-color: var(--primary-color); color: var(--text-on-primary); }
.link-button-right.success { border-color: var(--success-color); color: var(--success-color); }
.link-button-right.success:hover { background-color: var(--success-color); color: var(--text-on-primary); }
.link-button-right.info { border-color: #1877f2; color: #1877f2; }
.link-button-right.info:hover { background-color: #1877f2; color: var(--text-on-primary); }
.link-button-right.youtube { border-color: var(--youtube-color); color: var(--youtube-color); } 
.link-button-right.youtube:hover { background-color: var(--youtube-color); color: var(--text-on-primary); }
.link-button-right.facebook:hover { background-color: #1877f2; color: var(--text-on-primary); }
.link-button-right.twitter:hover { background-color: #1877f2; color: var(--text-on-primary); }
.link-button-right.instagram:hover { background-color: #c32aa3; color: var(--text-on-primary); }
.link-button-right.tiktok:hover { background-color: red; color: var(--text-on-primary); }
.link-button-right.zalo:hover { background-color: #1877f2; color: white; }
.link-button-right.facebook { border-color: #1877f2; color: #1877f2; }
.link-button-right.tiktok { border-color: red; color: red; }
.link-button-right.zalo { border-color: #1877f2; color: #1877f2; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-modal-overlay); display: none; justify-content: center; align-items: center; z-index: 2000; }
.modal-content { background-color: var(--bg-content); padding: 25px 30px; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); text-align: center; max-width: 400px; width: 90%; animation: fadeInScale 0.3s ease-out; }
.modal-buttons { display: flex; justify-content: center; gap: 12px; }
@keyframes fadeInScale { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.columns-container-pb2 { display: flex; flex-direction: row; gap: 20px; width: 100%; }
.content-column { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.column-title { font-size: 1.2rem; font-weight: 600; color: #c00000; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 2px solid #e5e7eb; display: flex; align-items: center; gap: 10px; }
.notification-list { display: flex; flex-direction: column; gap: 16px; }
.notification-card-pb3 { background-color: #eaeaea; border: 0.5px solid black; border-radius: 0.5rem; padding: 10px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); display: flex; flex-direction: column; transition: box-shadow 0.3s ease; cursor: pointer; }
.notification-card-pb3:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.notification-header-pb3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; }
.notification-header-pb3 .icon { font-size: 1.3rem; color: black; }
.notification-header-pb3 h4 { margin: 0; font-size: 1.1rem; font-weight: 600; flex-grow: 1; }
.notification-message-pb3 { margin: 0 0 16px 0; color: black; line-height: 1.7; font-size: 0.95rem; transition: max-height 0.4s ease-out, padding 0.3s ease-out, margin 0.3s ease-out, opacity 0.3s ease-out; overflow: hidden; max-height: 500px; }
.notification-card-pb3.collapsed .notification-message-pb3 { max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.expand-icon { margin-left: auto; font-size: 0.9rem; color: #000000; transition: transform 0.4s ease; }
.notification-card-pb3.collapsed .expand-icon { transform: rotate(0deg); }
.notification-card-pb3:not(.collapsed) .expand-icon { transform: rotate(-180deg); }
.notification-footer-pb3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #e5e7eb; }
.footer-left, .footer-center, .footer-right { text-align: left; flex: 1; }
.footer-right { text-align: right; }
.new-badge { background-color: #ef4444; color: white; padding: 3px 8px; font-size: 0.7rem; font-weight: 700; border-radius: 9999px; text-transform: uppercase; animation: blink-animation 1.2s infinite; margin-left: 8px; }
.type-badge { padding: 4px 10px; border-radius: 0.375rem; font-size: 0.8rem; font-weight: 500; color: #000; margin-left: auto; }
.type-báchhóaxanh { background-color: #008a20; }
.type-tgdđ-đmx { background-color: #f8d40b; }
.type-avakid { background-color: #d33434; }
.type-ankhang { background-color: #00eeff; }
.type-kho-vp { background-color: #008cff; color: white; }
.update-date-badge, .deadline-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 0.375rem; font-size: 0.8rem; font-weight: 500; color: white; }
.update-date-badge { background-color: #22c55e; }
.deadline-badge { background-color: #ef4444; animation: blink-animation 1.5s infinite; }
.notification-link-btn-pb3 { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background-color: #0056b3; color: white !important; text-decoration: none; border-radius: 0.375rem; font-size: 0.85rem; font-weight: 500; transition: opacity 0.2s ease; }
.notification-link-btn-pb3:hover { opacity: 0.85; }
@keyframes blink-animation { 50% { opacity: 0.4; } }
#left-sidebar-container .sidebar-content-wrapper::-webkit-scrollbar, #right-sidebar-container .sidebar-content-wrapper::-webkit-scrollbar, #content-container::-webkit-scrollbar { display: none; }
#left-sidebar-container .sidebar-content-wrapper, #right-sidebar-container .sidebar-content-wrapper, #content-container { scrollbar-width: none; }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s ease-in-out; }
.mobile-overlay.show { display: block; opacity: 1; }
@media (max-width: 1080px) {
    #left-sidebar-container { position: fixed; left: 0; top: 0; height: 100%; width: 300px; transform: translateX(-100%); z-index: 1001; box-shadow: 0 0 25px rgba(0,0,0,0.2); }
    #left-sidebar-container.open { transform: translateX(0); }
    #left-sidebar-container.open.collapsed { width: 300px; }
    #left-sidebar-container.open .menu-button-sidebar span, #left-sidebar-container.open .dropdown-button span, #left-sidebar-container.open .menu-section-title span { opacity: 1; width: auto; height: auto; padding: unset; margin: unset; overflow: visible; pointer-events: auto; }
    #left-sidebar-container.open .menu-button-sidebar, #left-sidebar-container.open .dropdown-button { justify-content: flex-start; width: 90%; margin-left: 0; margin-right: 0; }
    #left-sidebar-container.open .menu-button-sidebar .icon, #left-sidebar-container.open .dropdown-button .icon { margin-right: 12px; font-size: 1rem; }
    #right-sidebar-container { display: none; }
    body.sidebar-collapsed #left-sidebar-container { width: 300px; transform: translateX(-100%); }
}
@media (max-width: 768px) {
    #main-header { padding: 10px 15px; }
    #header-right { gap: 10px; }
    #current-page-title, #header-right .greeting-text, #live-clock #clock-date { display: none !important; } /* Đảm bảo nó vẫn bị ẩn trên mobile */
    #live-clock { min-width: auto; }
    #content-container { padding: 10px; }
    .columns-container-pb2 { flex-direction: column; }
    .notification-footer-pb3 { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-left, .footer-center, .footer-right { text-align: left; width: 100%; }
    .search-page-container, .search-container-hang-bk { padding: 20px; margin: 10px auto; }
    .form-grid-hang-bk { grid-template-columns: 1fr; }
    .search-container-hang-bk h2, .search-page-container h2 { font-size: 1.3rem; };
    .button-container-hang-bk { flex-direction: column; }
    .search-container-hang-bk .message-area {
    margin-top: 20px;
    font-weight: 500;
    min-height: 24px;
    /* XÓA CÁC DÒNG FLEXBOX NÀY VÀ CHỈ GIỮ text-align: center */
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    text-align: center; /* Đảm bảo căn giữa cho nội dung bên trong message-area */
}

.search-container-hang-bk .error-message {
    color: red !important; /* Thêm !important để ép buộc màu đỏ */
    font-weight: 600;
    font-size: 1rem;
    text-align: center !important; /* Thêm !important để ép buộc căn giữa */
    width: 100%;
    display: block;
}
    .notification-message-pb3 { font-size: 0.85rem; line-height: 1.6; }
    .notification-header-pb3 h4 { font-size: 1rem; }
    .mobile-popup { position: fixed; bottom: 20px; left: 50%; width: 85%; max-width: 400px; z-index: 2500; visibility: hidden; opacity: 0; transition: visibility 0.3s, opacity 0.3s ease-in-out, transform 0.3s ease-in-out; transform: translateX(-50%) translateY(20px); }
    .mobile-popup.show { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
    .mobile-popup-content { background-color: #2c3e50; color: #ecf0f1; padding: 20px; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); text-align: center; position: relative; border: 1px solid #34495e; }
    .mobile-popup-content p { margin: 0 0 15px 0; font-size: 0.95rem; line-height: 1.6; }
    .mobile-popup-close { position: absolute; top: 5px; right: 10px; background: none; border: none; color: #bdc3c7; font-size: 2rem; cursor: pointer; padding: 0; line-height: 1; transition: color 0.2s; }
    .mobile-popup-close:hover { color: #ffffff; }
    .mobile-popup-timer { font-size: 0.8rem; color: #95a5a6; }
}
.search-page-container { max-width: 700px; margin: 20px auto; padding: 32px; background-color: var(--bg-content); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.search-page-container h2 { color: var(--primary-color); text-align: center; margin-top: 0; margin-bottom: 28px; font-size: 1.5rem; font-weight: 700; }
.search-page-container label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; }
.search-page-container .input-wrapper { position: relative; margin-bottom: 16px; }
.search-page-container input[type="text"] { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); box-sizing: border-box; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.search-page-container input[type="text"]:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15); }
.search-page-container input.error { border-color: var(--danger-color); }
.search-page-container input.error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.search-page-container button { color: white; padding: 14px 28px; border: none; border-radius: var(--border-radius-md); cursor: pointer; font-size: 1rem; font-weight: 600; transition: background-color 0.2s ease, transform 0.1s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.search-page-container button#searchButton { background-color: var(--primary-color); }
.search-page-container button#searchButton:hover { background-color: #004494; transform: translateY(-2px); }
.search-page-container button:active { transform: translateY(0); }
.search-page-container button:disabled { background-color: #9ca3af; cursor: not-allowed; }
.search-page-container button#clearButton { background-color: var(--danger-color); flex-grow: 0; flex-shrink: 0; width: 120px; }
.search-page-container button#clearButton:hover { background-color: #dc2626; }
.search-page-container .message-area { margin-top: 20px; text-align: center; font-weight: 500; height: 24px; }
.search-page-container .error-message { color: var(--danger-color); }
.search-page-container .loading-message { color: var(--primary-color); display: none; }
.search-page-container .spinner { border: 4px solid #f3f4f6; border-top: 4px solid var(--primary-color); border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; margin: 0 auto; }
.suggestions-container { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: #fff; border: 1px solid #d1d5db; border-top: none; border-radius: 0 0 var(--border-radius-md) var(--border-radius-md); box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 100; max-height: 210px; overflow-y: auto; }
.suggestion-item { padding: 10px 16px; cursor: pointer; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: #f3f4f6; }
.suggestion-item .code { font-weight: 700; color: var(--primary-color); }
.suggestion-item .name { font-size: 0.9rem; color: var(--text-secondary); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; }
.result-box { margin-top: 24px; padding: 0; border: none; background-color: transparent; display: none; animation: fadeInResult 0.4s ease-out; }
.result-card { background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%); border-radius: var(--border-radius-lg); padding: 24px; border: 1px solid var(--border-color); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.result-main-title { text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 24px; border-bottom: 2px solid var(--primary-color); padding-bottom: 12px; }
.result-section { margin-bottom: 20px; }
.result-section:last-child { margin-bottom: 0; }
.result-section-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.result-row { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid #e0e5ec; font-size: 0.95rem; opacity: 0; animation: slideInUp 0.5s ease-out forwards; }
.result-row:last-child { border-bottom: none; }
.result-icon { color: var(--primary-color); margin-right: 12px; width: 20px; text-align: center; }
.result-label { color: var(--text-secondary); font-weight: 500; flex-basis: 150px; }
.result-value { color: var(--text-primary); font-weight: 600; }
@keyframes fadeInResult { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.search-container-hang-bk { max-width: 800px; margin: 20px auto; padding: 32px; background-color: var(--bg-content); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.search-container-hang-bk h2 { color: var(--primary-color); text-align: center; margin-top: 0; margin-bottom: 28px; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; }
.form-grid-hang-bk { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.search-container-hang-bk .input-group { display: flex; flex-direction: column; }
.search-container-hang-bk label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; }
.search-container-hang-bk input[type="text"], .search-container-hang-bk select { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); box-sizing: border-box; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.search-container-hang-bk input[type="text"]:focus, .search-container-hang-bk select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15); }
.button-container-hang-bk { display: flex; gap: 12px; margin-top: 8px; }
.button-container-hang-bk button { color: white; padding: 14px 28px; border: none; border-radius: var(--border-radius-md); cursor: pointer; font-size: 1rem; font-weight: 600; transition: background-color 0.2s ease, transform 0.1s ease; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.button-container-hang-bk button:hover { transform: translateY(-2px); }
.button-container-hang-bk button:active { transform: translateY(0); }
.button-container-hang-bk button:disabled { background-color: #9ca3af; cursor: not-allowed; transform: none; }
#searchButtonHangBK { background-color: #28a745; }
#searchButtonHangBK:hover { background-color: #218838; }
#clearButtonHangBK { background-color: #c82333; }
#clearButtonHangBK:hover { background-color: #bd2130; }
.result-wrapper-hang-bk { width: 100%; padding: 0 15px; box-sizing: border-box; margin-top: 20px; }
.result-wrapper-hang-bk .result-table-container { overflow-x: auto; display: none; animation: fadeInResult 0.5s ease-out; padding-bottom: 5px; background-color: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); }
.result-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.result-table th, .result-table td { border: 1px solid var(--border-color); padding: 12px 15px; text-align: left; white-space: nowrap; }
.result-table th { background-color: #0056b3; color: white; font-weight: 600; }
.result-table tr:nth-child(even) { background-color: #d8d8d8; }
.result-table tr:hover { background-color: #dadada; }
.no-results-message { text-align: center; padding: 20px; font-style: italic; color: var(--text-secondary); }
.input-error { border-color: var(--danger-color) !important; }
.input-error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important; }
.running-text-marquee { padding: 5px 0; overflow: hidden; margin-bottom: 10px; font-size: 0.95rem; white-space: nowrap; }
.running-text-marquee p { display: inline-block; margin: 0; padding-left: 100%; color: #c00000; font-weight: 500; animation: marquee-scroll 25s linear infinite; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-200%); } }
@media (max-width: 768px) { .running-text-marquee { font-size: 0.85rem; } }
#adminLoginModal .modal-content { max-width: 420px; background-color: #f9fafb; border: 1px solid #d1d5db; padding: 30px 40px; text-align: left; }
#adminLoginModal h3 { text-align: center; color: var(--danger-color); font-size: 1.3rem; font-weight: 600; margin-top: 0; margin-bottom: 5px; }
#adminLoginModal h4 { text-align: center; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; margin-top: 0; margin-bottom: 20px; }
#adminLoginModal #adminLoginError { text-align: center; font-weight: 500; min-height: 1.2em; margin-bottom: 15px; color: var(--danger-color); }
#adminLoginModal input[type="text"], #adminLoginModal input[type="password"] { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); box-sizing: border-box; font-size: 1rem; margin-bottom: 15px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
#adminLoginModal input[type="text"]:focus, #adminLoginModal input[type="password"]:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15); }
#adminLoginModal .modal-buttons { display: flex; gap: 15px; margin-top: 10px; }
#adminLoginModal button { flex-grow: 1; padding: 12px 20px; border: none; border-radius: var(--border-radius-md); cursor: pointer; font-size: 0.95rem; font-weight: 600; transition: all 0.2s ease; }
#adminLoginModal button#adminLoginSubmit { background-color: var(--primary-color); color: var(--text-on-primary); }
#adminLoginModal button#adminLoginSubmit:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
#adminLoginModal button#adminLoginCancel { background-color: #e5e7eb; color: var(--text-primary); border: 1px solid #d1d5db; }
#adminLoginModal button#adminLoginCancel:hover { background-color: #d1d5db; }

/*
=====================================================================
=== CSS CHO TRANG ĐĂNG NHẬP - GIAO DIỆN CHIA ĐÔI TOÀN MÀN HÌNH ===
=====================================================================
*/
body.login-page-body {
    font-family: 'Poppins', sans-serif;
    /* KHÔNG CẦN CĂN GIỮA BODY NỮA */
    overflow: hidden; /* Ẩn thanh cuộn của toàn trang */
}

/* Container chính chiếm toàn bộ màn hình */
.login-page-body .main-container {
    display: flex;
    width: 100vw; /* Chiều rộng 100% của viewport */
    height: 100vh; /* Chiều cao 100% của viewport */
    /* XÓA CÁC THUỘC TÍNH CŨ KHIẾN NÓ THÀNH KHỐI GIỮA */
    max-width: none;
    min-height: auto;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

/* === Phần trang trí bên trái (2/3) === */
.login-page-body .info-panel {
    flex: 2; /* Chiếm 2 phần */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: #0066ff;
    overflow: hidden;
    color: white;
}

.login-page-body .info-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInContent 1: s ease-in-out forwards;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-page-body .info-panel h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}
.login-page-body .info-panel p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto;
    opacity: 0.9;
}

/*
=====================================================================
=== CSS MỚI: HIỆU ỨNG CHẤM SÁNG (Sử dụng .shape) ===
=====================================================================
*/

/* Container chứa các chấm, nằm ở lớp nền */
.css-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Định dạng chung cho mỗi chấm (particle) */
/* Đổi tên từ .particle thành .shape như yêu cầu ban đầu */
.shape {
    position: absolute;
    bottom: -20px; /* Bắt đầu từ bên dưới */
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    opacity: 0;
    animation: rise-up 10s infinite linear;
}

/* Animation cho các chấm bay lên */
@keyframes rise-up {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Hiện ra sau khi bắt đầu bay */
    }
    90% {
        opacity: 1; /* Giữ nguyên độ mờ trong quá trình bay */
    }
    100% {
        transform: translateY(-110vh); /* Bay ra khỏi đỉnh màn hình */
        opacity: 0;
    }
}

/*
  Sử dụng nth-child để tạo sự ngẫu nhiên cho từng chấm.
  Mỗi chấm sẽ có vị trí, kích thước, và thời gian animation khác nhau.
*/
.shape:nth-child(1) { left: 10%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 0s; }
.shape:nth-child(2) { left: 20%; width: 8px; height: 8px; animation-duration: 9s; animation-delay: 1s; }
.shape:nth-child(3) { left: 30%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 2s; }
.shape:nth-child(4) { left: 40%; width: 6px; height: 6px; animation-duration: 8s; animation-delay: 3s; }
.shape:nth-child(5) { left: 50%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 0.5s; }
.shape:nth-child(6) { left: 60%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: 1.5s; }
.shape:nth-child(7) { left: 70%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 4s; }
.shape:nth-child(8) { left: 80%; width: 8px; height: 8px; animation-duration: 7s; animation-delay: 2.5s; }
.shape:nth-child(9) { left: 90%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 5s; }
.shape:nth-child(10) { left: 5%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: 6s; }
.shape:nth-child(11) { left: 15%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 7s; }
.shape:nth-child(12) { left: 25%; width: 7px; height: 7px; animation-duration: 9s; animation-delay: 8s; }
.shape:nth-child(13) { left: 35%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 5.5s; }
.shape:nth-child(14) { left: 45%; width: 8px; height: 8px; animation-duration: 8s; animation-delay: 6.5s; }
.shape:nth-child(15) { left: 55%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 7.5s; }
.shape:nth-child(16) { left: 65%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: 8.5s; }
.shape:nth-child(17) { left: 75%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 9.5s; }
.shape:nth-child(18) { left: 85%; width: 7px; height: 7px; animation-duration: 9s; animation-delay: 10.5s; }
.shape:nth-child(19) { left: 95%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 11.5s; }
.shape:nth-child(20) { left: 2%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 12.5s; }
.shape:nth-child(21) { left: 12%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 13.5s; }
.shape:nth-child(22) { left: 22%; width: 8px; height: 8px; animation-duration: 10s; animation-delay: 14.5s; }
.shape:nth-child(23) { left: 32%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 15.5s; }
.shape:nth-child(24) { left: 42%; width: 6px; height: 6px; animation-duration: 9s; animation-delay: 16.5s; }

/* Đảm bảo nội dung chính vẫn hiển thị đúng */
.login-page-body .info-content {
    position: relative;
    z-index: 2;
}



/* === Phần Form bên phải (1/3) === */
.login-page-body .form-panel { 
    flex: 1; /* Chiếm 1 phần */
    padding: 40px 50px; 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    overflow-y: auto; /* Cho phép cuộn nếu nội dung quá dài */
}
.login-page-body .form-wrapper { width: 100%; max-width: 380px; margin: 0 auto; }
.login-page-body .logo { text-align: center; margin-bottom: 20px; }
.login-page-body .logo img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 50%; /* Bo tròn để hiệu ứng đẹp hơn */
    border: 3px solid rgba(255, 255, 255, 0.7);
    /* Áp dụng animation phát sáng */
    animation: glowing-border 4s ease-in-out infinite;
}
.login-page-body .logo h3 { font-size: 1.6rem; font-weight: 600; margin: 0; color: var(--text-primary); }

/* Các style còn lại của form giữ nguyên */
.login-page-body .tab-buttons { display: flex; justify-content: stretch; margin-bottom: 30px; background: #f0f3f8; border-radius: 10px; padding: 5px; }
.login-page-body .tab-button { background: none; border: none; padding: 12px; font-size: 0.95em; font-weight: 600; color: #5a6a85; cursor: pointer; transition: all 0.3s ease; flex: 1; text-align: center; border-radius: 8px; }
.login-page-body .tab-button.active { background-color: #fff; color: #0056b3; box-shadow: 0 2px 10px rgba(0, 92, 193, 0.15); }
.login-page-body .form-group {
    margin-bottom: 10px; /* Giảm từ 22px xuống 18px */
    position: relative;
}
.login-page-body .form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: #43526c; margin-bottom: 8px; }
.login-page-body .input-icon-wrapper { position: relative; }
.login-page-body .form-group input { width: 100%; padding: 12px 15px 12px 45px; border: 1px solid #dce4f2; border-radius: 8px; font-size: 1em; font-family: 'Poppins', sans-serif; transition: border-color 0.3s ease, box-shadow 0.3s ease; box-sizing: border-box; background-color: #f7f9fc; }
.login-page-body .form-group input:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); background-color: #fff; }
.login-page-body .form-icon-left { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #98a7c0; transition: color 0.3s ease; z-index: 2; }
.login-page-body .form-group input:focus ~ .form-icon-left { color: #007bff; }
.login-page-body .form-icon-right.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #98a7c0; cursor: pointer; transition: color 0.2s ease; z-index: 2; }
.login-page-body .form-icon-right.toggle-password:hover { color: var(--primary-color); }
.login-page-body .button-group { margin-top: 10px; margin-bottom: 20px; }
.login-page-body .btn {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative; /* Thêm position relative */
    overflow: hidden; /* Thêm overflow hidden */
}
.login-page-body .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Bắt đầu từ bên ngoài bên trái */
    width: 75%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease-in-out;
}
.login-page-body .btn:hover::before {
    left: 100%;
}
.login-page-body .btn.btn-primary { background: linear-gradient(45deg, #0069cc, #007bff); color: white; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); }
.login-page-body .btn.btn-primary:hover {
    transform: translateY(0); /* Bỏ hiệu ứng nhấc lên */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); /* Giữ lại shadow */
}
.login-page-body .tab-content { display: none; animation: fade-in-form 0.5s ease-in-out; }
/* 2. Thêm hiệu ứng phát sáng cho logo */
@keyframes glowing-border {
    0% { box-shadow: 0 0 5px #007bff, 0 0 10px #007bff, 0 0 15px #ffffff; }
    50% { box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 25px #007bff; }
    100% { box-shadow: 0 0 5px #007bff, 0 0 10px #007bff, 0 0 15px #ffffff; }
}
@keyframes fade-in-form { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; translateY(0); } }
.login-page-body .tab-content.active { display: block; }
/* Responsive cho trang Login */
@media (max-width: 992px) {
    .login-page-body .main-container {
        flex-direction: column;
    }
    .login-page-body .info-panel {
        display: none; /* Ẩn panel trang trí trên mobile */
    }
    .login-page-body .form-panel {
        flex: 1; /* Chiếm toàn bộ không gian còn lại */
    }
}
/* Các style khác cho alert, widget giữ nguyên... */
.alert-toast { position: fixed; bottom: 20px; right: 20px; color: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; z-index: 2500; opacity: 0; transform: translateX(calc(100% + 20px)); transition: opacity 0.4s ease, transform 0.4s ease; }
.alert-toast.show { opacity: 1; transform: translateX(0); }
.alert-toast i { font-size: 1.2rem; }
#errorAlert-login { background-color: var(--danger-color); }
#successAlert-login { background-color: var(--success-color); }
.support-widget { position: fixed; bottom: 90px; right: 15px; z-index: 100; }
.support-bubble {
    width: 60px;
    height: 60px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    animation: wiggleBubble 2s infinite ease-in-out; /* Áp dụng animation liên tục */
}
.support-bubble:hover {
    transform: scale(1.1); /* Giữ hiệu ứng phóng to khi di chuột */
    background-color: #0056b3;
    animation-play-state: paused; /* Dừng lắc lư khi di chuột qua */
}.support-info-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 300px;
    background: #fff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 15px;
    opacity: 0; /* Đặt opacity ban đầu là 0 */
    transform: translateY(30px) scale(0.95); /* Đặt vị trí và kích thước ban đầu */
    pointer-events: none;
    /* Xóa transition cũ để animation mới có thể kiểm soát */
}

.support-widget.open .support-info-box {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: fadeInSlideUpBounce 0.5s ease-out forwards; /* Áp dụng animation */
}.support-header {display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding: bottom: 10px; margin-bottom: 10px; }
.support-header h4 { font-size: 1.1rem; font-weight: 600; margin:0; }
.close-support-btn { background: none; border: none; font-size: 1.5rem; color: #aaa; cursor: pointer; line-height: 1; padding:0;}
.support-body a { color: #007bff; text-decoration: none; font-weight: 600;}
.support-body p { margin: 5px 0; }

/* === CSS NÂNG CẤP CHO BẢNG ĐĂNG XUẤT === */
#customConfirmModal .modal-content {
    background-color: #f9fafb;
    padding: 40px;
    border: 1px solid var(--border-color);
    max-width: 450px;
}
#customConfirmModal p {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 30px;
}
#customConfirmModal .modal-buttons button {
    flex-grow: 1;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
#customConfirmModal #confirmBtnYes {
    background-color: var(--danger-color);
    color: white;
    border: none;
}
#customConfirmModal #confirmBtnYes:hover {
    background-color: var(--danger-hover);
    transform: translateY(-2px);
}
#customConfirmModal #confirmBtnNo {
    background-color: #e5e7eb;
    color: var(--text-primary);
    border: 1px solid #d1d5db;
}
#customConfirmModal #confirmBtnNo:hover {
    background-color: #d1d5db;
}


/* ======================================================= */
/* === SỬA LỖI HIỂN THỊ ICON MẬT KHẨU (Bản sửa cuối) === */
/* ======================================================= */

/* Định vị lại icon bên trái (khóa, user,...) một cách chính xác */
.login-page-body .form-group > i:not(.toggle-password) {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    z-index: 2;
}

/* Định vị lại icon con mắt bên phải */
.login-page-body .form-group .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    z-index: 2;
}

/* Thêm khoảng đệm bên phải cho các ô input có icon con mắt */
.login-page-body .form-group input[type="password"],
.login-page-body .form-group input[type="text"][id*="Password"] {
    padding-right: 45px !important; /* Thêm !important để đảm bảo được áp dụng */
}
/* File: mwang/assets/css/style.css */

/* === CSS CHO KHUNG TÌM KIẾM MỚI TRÊN HEADER === */
#header-search-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

#header-search-wrapper {
    position: relative;
}

#header-search-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    color: white;
    padding: 6px 15px 6px 35px; /* Thêm khoảng trống cho icon */
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 220px;
}

#header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#header-search-input:focus {
    background-color: white;
    color: var(--text-primary);
    border-color: var(--primary-color);
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#header-search-icon-input {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

#header-search-input:focus + #header-search-icon-input {
    color: var(--text-secondary);
}

#header-search-icon-mobile {
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: none; /* Mặc định ẩn trên desktop */
    padding: 5px;
}

#header-search-suggestions {
    display: none;
    position: absolute;
    top: 115%;
    left: 0;
    width: 100%;
    min-width: 300px;
    background-color: var(--bg-content);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.suggestion-item-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: black;
}

.suggestion-item-header:last-child {
    border-bottom: none;
}

.suggestion-item-header:hover {
    background-color: #f3f4f6;
}

.suggestion-item-header .icon {
    color: var(--primary-color);
}

/* Responsive cho ô tìm kiếm */
@media (max-width: 768px) {
    #header-search-wrapper {
        display: none; /* Ẩn ô nhập liệu trên di động */
    }
    #header-search-container.mobile-search-active #header-search-wrapper {
        display: block;
        position: absolute;
        top: 50px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    #header-search-container.mobile-search-active #header-search-input {
        width: 100%;
        background-color: white;
        color: var(--text-primary);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
     #header-search-container.mobile-search-active #header-search-icon-input {
        color: var(--text-secondary);
    }
    #header-search-icon-mobile {
        display: block; /* Hiện icon trên di động */
    }
}
/* === START: SỬA LỖI MÀU CHỮ GỢI Ý TÌM KIẾM (Bản vá cuối cùng) === */
#header-search-suggestions .suggestion-item-header {
    color: var(--text-primary) !important;
}
#header-search-suggestions .suggestion-item-header span {
    color: var(--text-primary) !important; /* Dùng màu đen và !important để đảm bảo ghi đè */
}
/* === END: SỬA LỖI MÀU CHỮ GỢI Ý TÌM KIẾM === */
/* ======================================================= */
/* === CSS CHO TRANG THÔNG TIN THÀNH VIÊN (MỚI THÊM) === */
.profile-page-container { padding: 20px; max-width: 900px; margin: 20px auto; }
.profile-card { background-color: #ffffff; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); padding: 30px 40px; border: 1px solid var(--border-color); }
.profile-header-info { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.profile-main-name { font-size: 1.8rem; color: var(--text-primary); margin: 0; }
.profile-main-username { font-size: 1rem; color: var(--text-secondary); margin-top: 4px; }
.profile-form-section .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-form-section .form-group { margin-bottom: 20px; }
.profile-form-section label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; }
.profile-form-section input[type="text"], .profile-form-section input[type="tel"], .profile-form-section input[type="password"], .profile-form-section textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); box-sizing: border-box; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.profile-form-section input:disabled { background-color: #f3f4f6; cursor: not-allowed; }
.profile-form-section input:focus, .profile-form-section textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15); }
.password-change-section { border-top: 1px solid var(--border-color); margin-top: 20px; padding-top: 20px; }
.password-change-section h4 { margin-top: 0; font-size: 1.1rem; color: var(--text-primary); }
.form-actions { text-align: right; margin-top: 20px; }
.profile-btn-save { background-color: var(--success-color); color: white; padding: 12px 28px; border: none; border-radius: var(--border-radius-md); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; min-width: 150px; }
.profile-btn-save:hover { opacity: 0.9; transform: translateY(-2px); }
.profile-btn-save:disabled { background-color: #9ca3af; cursor: not-allowed; }
.spinner-sm { border: 3px solid rgba(255, 255, 255, 0.3); border-top: 3px solid white; border-radius: 50%; width: 18px; height: 18px; animation: spin 1s linear infinite; margin: 0 auto; }
.form-message-placeholder { min-height: 1.5em; margin-top: 15px; }
.profile-message { text-align: center; font-weight: 500; padding: 10px; border-radius: var(--border-radius-md); display: block; }
.profile-message.error { color: var(--danger-color); background-color: #fee2e2; }
.profile-message.success { color: #166534; background-color: #dcfce7; }
@media (max-width: 768px) { .profile-form-section .form-row { grid-template-columns: 1fr; } }

/* === CSS CHO POPUP TRƯỢT THÔNG BÁO === */
.sliding-popup-container { position: fixed; top: 80px; right: 0; transform: translateX(110%); background-color: var(--bg-content); border-radius: var(--border-radius-md) 0 0 var(--border-radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); border-right: none; z-index: 9999; transition: transform 0.4s ease-in-out; width: 320px; max-width: 90%; }
.sliding-popup-container.show { transform: translateX(0); }
.sliding-popup-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 15px; border-bottom: 1px solid var(--border-color); }
.sliding-popup-header h4 { margin: 0; font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sliding-popup-header .icon-success { color: var(--success-color); }
.sliding-popup-header .icon-error { color: var(--danger-color); }
.sliding-popup-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); }
.sliding-popup-body { padding: 15px; font-size: 0.95rem; line-height: 1.5; }
.sliding-popup-timer-bar { height: 4px; background-color: var(--primary-color); width: 100%; animation: shrink var(--duration, 5000ms) linear forwards; }
@keyframes shrink { from { width: 100%; } to { width: 0%; }}
/*
=====================================================================
=== CSS MỚI: CHỮ TRÊN ẢNH, CÓ KHOẢNG CÁCH, GIỮ HIỆU ỨNG PHÁT SÁNG ===
=====================================================================
*/

/* Định dạng lại cho tiêu đề */
.login-page-body .info-title {
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 30px 0; /* Tạo khoảng cách 30px với ảnh ở dưới */
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

/* Định dạng lại cho hình ảnh */
.login-page-body .info-image {
    display: block;
    width: 90%; /* Kích thước bằng 1/3 khối */
    height: auto;
    margin: 0 auto; /* Căn giữa ảnh */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Hiệu ứng phát sáng cho ảnh 
@keyframes glowing-image {
    0% { box-shadow: 0 0 8px rgba(255,255,255,0.4), 0 0 12px rgba(255,255,255,0.4), 0 10px 30px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 0 16px rgba(255,255,255,0.7), 0 0 24px rgba(255,255,255,0.7), 0 10px 30px rgba(0, 0, 0, 0.2); }
    100% { box-shadow: 0 0 8px rgba(255,255,255,0.4), 0 0 12px rgba(255,255,255,0.4), 0 10px 30px rgba(0, 0, 0, 0.2); }
}*/

.login-page-body .info-image {
    animation: glowing-image 5s ease-in-out infinite;
}

/* Xóa các quy tắc CSS không cần thiết từ lần trước */
.login-page-body .image-container {
    /* Không cần nữa */
}
.login-page-body .info-panel p {
    display: none;
}
/* === CSS CHO BIỂU TƯỢNG LOADING KHI ĐĂNG NHẬP === */

#loadingIndicator-login {
    display: none; /* Mặc định ẩn đi */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Lớp phủ mờ */
    justify-content: center;
    align-items: center;
    flex-direction: column; /* THÊM DÒNG NÀY để xếp theo cột */
    z-index: 9999; /* Luôn hiển thị ở lớp trên cùng */
    color: var(--text-primary); /* Đảm bảo màu chữ hiển thị rõ ràng */
    font-weight: 500;
}

#loadingIndicator-login .spinner {
    border: 6px solid #f3f3f3; /* Vòng tròn nền */
    border-top: 6px solid #0066ff; /* Màu của hiệu ứng xoay, có thể thay đổi */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px; /* THÊM DÒNG NÀY để tạo khoảng cách với chữ */
}
/* Thêm style cho thẻ <p> bên trong loadingIndicator-login để đồng bộ */
#loadingIndicator-login p {
    margin-top: 0;
    font-size: 1.1em; /* Kích thước chữ vừa phải */
    color: var(--text-primary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Ẩn tiêu đề trang ở giữa header */
#current-page-title {
    display: none !important;
}
/* === CSS MỚI CHO TRANG THÔNG TIN THÀNH VIÊN (GIAO DIỆN CHIA ĐÔI) === */

/* Bố cục chia đôi màn hình */
.profile-content-split {
    display: flex;
    gap: 40px; /* Khoảng cách giữa 2 cột */
    margin-top: 20px;
}

.profile-column {
    flex: 1; /* Chia đều không gian cho 2 cột */
    min-width: 0;
}

/* Tiêu đề cho mỗi cột (Thông tin cá nhân / Đổi mật khẩu) */
.profile-form-section h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Cải thiện giao diện ô nhập liệu */
.profile-card .form-group {
    margin-bottom: 18px;
}

.profile-card label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.profile-card input[type="text"],
.profile-card input[type="tel"],
.profile-card input[type="password"],
.profile-card textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db; /* Màu viền nhẹ nhàng hơn */
    border-radius: var(--border-radius-md);
    background-color: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.profile-card input:focus,
.profile-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.profile-card input:disabled {
    background-color: #e5e7eb;
    cursor: not-allowed;
    color: #9ca3af;
}

/* Cải thiện giao diện nút bấm và thêm hiệu ứng */
.profile-btn-save {
    background-color: var(--primary-color); /* Đổi màu nền chính */
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 160px;
    transition: all 0.3s ease;
    
    /* Thuộc tính cho hiệu ứng vệt sáng */
    position: relative;
    overflow: hidden;
}

.profile-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

/* HIỆU ỨNG VỆT SÁNG KHI DI CHUỘT */
.profile-btn-save::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.profile-btn-save:hover::before {
    left: 100%;
}

/* Responsive: Xếp chồng 2 cột trên màn hình nhỏ */
@media (max-width: 992px) {
    .profile-content-split {
        flex-direction: column; /* Chuyển thành 1 cột */
        gap: 30px;
    }
}
/* === CSS CHO TÊN USER ADMIN TRÊN TRANG CÁ NHÂN === */

.profile-main-username.admin-username {
    color: var(--danger-color); /* Tô màu đỏ */
    font-weight: bold; /* In đậm */
    display: inline-flex; /* Giúp căn chỉnh icon và chữ dễ dàng */
    align-items: center;
    gap: 8px; /* Khoảng cách giữa tên và icon */
}

/* Định dạng cho icon đi kèm */
.profile-main-username.admin-username .fa-user-shield {
    color: var(--danger-color); /* Đảm bảo icon cũng có màu đỏ */
}
/* === CẢI THIỆN KHOẢNG CÁCH ICON TRONG POPUP HỖ TRỢ === */
.support-body p {
    display: flex;
    align-items: center;
}

.support-body p .fa-solid,
.support-body p .fas,
.support-body p .fa-brands {
    margin-right: 12px; /* Thêm khoảng cách bên phải icon */
    width: 20px;       /* Đảm bảo các icon có chiều rộng bằng nhau để căn lề thẳng hàng */
    text-align: center;
}

/*
=====================================================================
=== YÊU CẦU 01: ĐỒNG BỘ NÚT BẤM & HIỆU ỨNG VỆT SÁNG       ===
=====================================================================
*/

/* === 1. ĐỊNH NGHĨA LẠI MÀU SẮC & VÔ HIỆU HÓA HOVER CŨ === */

/* -- Các nút hành động chính (Xanh #0046B2) -- */
#adminLoginModal button#adminLoginSubmit,
.search-page-container button#searchButton,
#searchButtonHangBK,
#customConfirmModal #confirmBtnYes {
    background-color: var(--primary-color);
}

/* -- Các nút Hủy/Xóa (Đỏ #ff0000) -- */
#adminLoginModal button#adminLoginCancel,
#customConfirmModal .modal-buttons button#confirmBtnNo,
.search-page-container button#clearButton,
#clearButtonHangBK {
    background-color: var(--danger-color);
    color: white;
    border: none;
}

/* -- Vô hiệu hóa các hiệu ứng hover cũ (thay đổi màu, transform) -- */
#adminLoginModal button:hover,
#customConfirmModal .modal-buttons button:hover,
.search-page-container button:hover,
.button-container-hang-bk button:hover {
    transform: none;
    opacity: 1;
}

#adminLoginModal button#adminLoginSubmit:hover { background-color: var(--primary-color); }
#adminLoginModal button#adminLoginCancel:hover { background-color: var(--danger-color); }
#customConfirmModal #confirmBtnYes:hover { background-color: var(--primary-color); }
#customConfirmModal #confirmBtnNo:hover { background-color: var(--danger-color); }
.search-page-container button#searchButton:hover { background-color: var(--primary-color); }
.search-page-container button#clearButton:hover { background-color: var(--danger-color); }
#searchButtonHangBK:hover { background-color: var(--primary-color); }
#clearButtonHangBK:hover { background-color: var(--danger-color); }


/* === 2. THÊM HIỆU ỨNG VỆT SÁNG MỚI === */
#adminLoginModal button,
#customConfirmModal .modal-buttons button,
.search-page-container button,
.button-container-hang-bk button {
    position: relative;
    overflow: hidden;
}

#adminLoginModal button::before,
#customConfirmModal .modal-buttons button::before,
.search-page-container button::before,
.button-container-hang-bk button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease-in-out;
}

#adminLoginModal button:hover::before,
#customConfirmModal .modal-buttons button:hover::before,
.search-page-container button:hover::before,
.button-container-hang-bk button:hover::before {
    left: 100%;
}
/* ======================================================= */
/* === DARK MODE TOGGLE BUTTON STYLES (GLOBAL) === */
/* ======================================================= */
#theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.8rem; /* Kích thước icon lớn hơn */
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 100; /* Đảm bảo nút nằm trên các phần tử khác */
}

/* Cho trang index.html */
body.login-page-body #theme-toggle-btn {
    position: absolute; /* Hoặc fixed nếu muốn nó luôn cố định khi cuộn */
    top: 20px;
    right: 20px;
    color: orange; /* Màu mặc định cho icon sáng (mặt trời) trên trang login */
}

body.login-page-body #theme-toggle-btn:hover {
    transform: scale(1.1);
}


/* Cho trang-chu.html (nút trên header) */
#main-header #theme-toggle-btn {
    color: orange; /* Màu mặc định cho icon mặt trời trên header */
    font-size: 1.2rem; /* Kích thước nhỏ hơn trên header */
    margin-left: 10px; /* Tạo khoảng cách với các item khác */
}

#main-header #theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Hiệu ứng hover nhẹ */
}

/* Ẩn hiện icon */
#theme-toggle-btn .icon-dark { display: none; }
#theme-toggle-btn .icon-light { display: inline-block; }

/* Các quy tắc cho dark mode */
body.dark-mode #theme-toggle-btn .icon-dark {
    display: inline-block; /* Hiển thị icon tối khi dark mode BẬT */
    color: var(--text-secondary); /* Màu icon tối khi dark mode BẬT (ví dụ: màu xám nhạt) */
}
body.dark-mode #theme-toggle-btn .icon-light {
    display: none; /* Ẩn icon sáng khi dark mode BẬT */
}

/* Nếu dark mode, đổi màu icon sáng thành màu tối cho nhất quán */
body.dark-mode #main-header #theme-toggle-btn {
    color: var(--text-secondary); /* Icon mặt trăng màu xám nhạt trên header khi dark mode BẬT */
}

body.dark-mode.login-page-body #theme-toggle-btn {
    color: var(--text-secondary); /* Icon mặt trăng màu xám nhạt trên trang login khi dark mode BẬT */
}
/* CSS cho thông báo tải toàn trang */
.loading-full-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Đảm bảo chiếm toàn bộ chiều cao của container */
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-full-page .spinner {
    margin-bottom: 20px; /* Giữ khoảng cách giữa spinner và chữ */
    width: 40px; /* Kích thước nhỏ hơn, giống spinner truyền thống */
    height: 40px; /* Kích thước nhỏ hơn, giống spinner truyền thống */
    border: 4px solid var(--border-color); /* Viền mỏng và màu nền nhạt */
    border-top: 4px solid var(--primary-color); /* Màu chính cho phần xoay */
    border-radius: 50%; /* Đảm bảo hình tròn hoàn hảo */
    animation: spin 1s linear infinite; /* Tốc độ xoay nhanh hơn một chút, mặc định */
}
.header-logout-btn {
    background-color: var(--danger-color); /* Màu nền mặc định là màu đỏ (danger) */
    color: var(--text-on-primary); /* Màu chữ trắng */
    border: none; /* Bỏ viền */
    padding: 8px 16px; /* Kích thước nút */
    border-radius: var(--border-radius-md); /* Bo tròn góc */
    cursor: pointer;
    font-size: 0.9rem; /* Kích thước chữ */
    font-weight: 600;
    transition: all 0.3s ease; /* Chuyển động mượt mà khi hover */

    /* Các thuộc tính cần thiết cho hiệu ứng vệt sáng */
    position: relative;
    overflow: hidden;
}

.header-logout-btn:hover {
    opacity: 0.9; /* Giảm độ mờ khi hover */
    transform: translateY(-2px); /* Hiệu ứng nhấc nhẹ lên */
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4); /* Đổ bóng phát sáng màu đỏ */
}

/* Hiệu ứng vệt sáng cho nút đăng xuất */
.header-logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Bắt đầu từ bên ngoài bên trái */
    width: 75%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease-in-out;
}

.header-logout-btn:hover::before {
    left: 100%; /* Vệt sáng chạy sang phải khi hover */
}

/*
=====================================================================
=== CSS CHO THÔNG BÁO KHÓA TÀI KHOẢN (MỚI THÊM) ===
=====================================================================
*/
#accountLockModal .lock-modal-content {
    background-color: var(--bg-content);
    padding: 30px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border-top: 5px solid var(--danger-color);
    animation: fadeInScale 0.3s ease-out;
}

#accountLockModal .lock-icon-container {
    font-size: 3.5rem;
    color: var(--danger-color);
    margin-bottom: 20px;
    animation: bounceIcon 0.8s ease-in-out;
}

@keyframes bounceIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#accountLockModal h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
}

#accountLockModal p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 40px;
}

#accountLockModal .btn {
    width: 60%;
}
/*
===============================================================
=== CSS CHO CÁC LOẠI THÔNG BÁO POPUP TRÊN TRANG-CHU (MỚI) ===
===============================================================
*/

/* --- CSS cho thông báo phiên bản (trượt từ góc phải) --- */
.version-popup-slider {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9990;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transform: translateX(calc(100% + 30px));
    transition: transform 0.5s ease-in-out;
}

.version-popup-slider.show {
    transform: translateX(0);
}

.version-popup-slider .version-popup-header {
    padding: 12px 15px;
    background-color: #f3f4f6;
    border-bottom: 1px solid var(--border-color);
}

.version-popup-slider .version-popup-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.version-popup-slider .version-popup-close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.version-popup-slider .version-popup-close-btn:hover {
    color: #111827;
}

.version-popup-slider .version-popup-body {
    padding: 15px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.version-popup-slider .version-popup-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: var(--primary-color);
    width: 100%;
    animation: countdown-timer 10s linear forwards;
}

@keyframes countdown-timer {
    from { width: 100%; }
    to { width: 0%; }
}

/*
=====================================================================
=== TĂNG KÍCH THƯỚC CHO FORM ĐẶT LẠI MẬT KHẨU ===
=====================================================================
*/

#reset-page-body .form-wrapper {
   /* Tăng chiều rộng tối đa của form từ 380px lên 500px */
   max-width: 500px;
   /* Tăng chiều cao tối thiểu để có thêm không gian bên trong */
   min-height: 300px; /* Giá trị này bạn có thể điều chỉnh */
   padding: 30px; /* Thêm padding để tạo khoảng cách xung quanh nội dung */
   display: flex; /* Sử dụng flexbox để căn chỉnh các phần tử bên trong */
   flex-direction: column; /* Sắp xếp các phần tử theo chiều dọc */
   justify-content: center; /* Căn giữa các phần tử theo chiều dọc */
}

#reset-page-body .form-panel {
   /* Có thể bỏ dòng này nếu thấy không cần thiết */
   min-width: 500px;
}
/*
=====================================================================
=== BỎ THANH CUỘN CHO FORM ĐẶT LẠI MẬT KHẨU ===
=====================================================================
*/

#reset-page-body .form-panel {
    /* Ghi đè thuộc tính overflow-y để loại bỏ thanh cuộn */
    overflow-y: visible;
}


/* Ghi đè vị trí chỉ riêng cho trang chủ (trang-chu.html) */
#home-page-body .support-widget {
    bottom: 15px; /* Vị trí mới ở trang chủ, thấp hơn một chút */
    right: 15px;  /* Vị trí mới ở trang chủ */
}
*/
.grecaptcha-badge {
    visibility: hidden !important;
}
@keyframes fadeInSlideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95); /* Bắt đầu hơi thấp và nhỏ */
    }
    70% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02); /* Nảy nhẹ lên trên */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1); /* Kết thúc ở vị trí cuối cùng */
    }
}
@keyframes wiggleBubble {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: rotate(5deg); }
}

/* ======================================================= */
/* === CSS MỚI CHO DASHBOARD ADMIN === */
/* ======================================================= */

/* Container chính của Dashboard */
.dashboard-page-container {
    padding: 0; /* Loại bỏ padding */
    width: 100%; /* Chiếm toàn bộ chiều rộng */
    height: 100%; /* Chiếm toàn bộ chiều cao khả dụng */
    margin-top: 10px; /* Loại bỏ margin tự động */
    background-color: transparent; /* Xóa màu nền */
    border-radius: 0; /* Xóa bo góc */
    box-shadow: none; /* Xóa đổ bóng */
    border: none; /* Xóa viền */
    box-sizing: border-box; /* Bao gồm padding và border trong kích thước */
    display: flex; /* Sử dụng flexbox để bố cục */
    flex-direction: column; /* Sắp xếp các phần tử theo cột */
    text-align: left; /* Căn lề trái cho toàn bộ nội dung dashboard */
}

/* Tiêu đề Dashboard Admin */
.dashboard-header-admin {
    text-align: left; /* Căn lề trái cho tiêu đề */
    margin-bottom: 25px; /* Khoảng cách dưới tiêu đề */
    padding-left: 20px; /* Thêm padding trái để dịch tiêu đề */
}
.dashboard-page-container h2 {
    color: black;
    margin: 0; /* Loại bỏ margin mặc định của h2 */
    font-size: 2rem;
}

/* Lưới chứa các thẻ chức năng */
.admin-functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Lưới responsive */
    gap: 20px;
    margin-top: 0; /* Loại bỏ margin-top cũ */
    margin-bottom: 30px;
    justify-content: start; /* Căn các thẻ về phía đầu lưới */
    padding: 0 20px; /* Thêm padding ngang để căn chỉnh với tiêu đề */
}

/* Thẻ chức năng Admin */
.admin-card {
    background-color: #f0f8ff; /* Màu xanh nhạt cho light mode */
    border: 1px solid #cceeff; /* Viền xanh nhạt hơn */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Đảm bảo nội dung được căn đều */
    min-height: 150px; /* Chiều cao tối thiểu cho thẻ */
}
.admin-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.admin-card .icon {
    font-size: 2.5rem;
    color: black;
    margin-bottom: 15px;
}
.admin-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 5px; /* Khoảng cách trên tiêu đề */
    margin-bottom: 5px; 
}
.admin-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

/* Khu vực tải nội dung chức năng */
.dashboard-function-content {
    margin-top: 0; /* Loại bỏ margin-top cũ */
    border-top: none; /* Xóa đường viền trên */
    padding-top: 0; /* Xóa padding trên */
    text-align: left;
    flex-grow: 1; /* Cho phép phần này mở rộng để lấp đầy không gian còn lại */
    padding: 0 20px; /* Thêm padding ngang để căn chỉnh với tiêu đề */
}

/* Dark mode adjustments for dashboard elements */

body.dark-mode .dashboard-header-admin h2 {
    color: white;
}
body.dark-mode .admin-card {
    background-color: #242424; /* Giữ màu tối cho thẻ trong dark mode */
    border-color: #404040;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
}
body.dark-mode .admin-card .icon {
    color: white; /* Giữ màu primary cho icon */
}
body.dark-mode .admin-card:hover {
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.6), 0 3px 6px -2px rgba(0, 0, 0, 0.6);
}
body.dark-mode .admin-card h3 {
    color: var(--text-primary);
}
body.dark-mode .admin-card p {
    color: var(--text-secondary);
}
body.dark-mode .dashboard-function-content {
    border-top-color: var(--border-color);
}

/* ======================================================= */
/* === MÀU RIÊNG CHO TỪNG THẺ ADMIN (LIGHTMODE) === */
/* ======================================================= */
.admin-card.card-btnDatabase {
    background-color: #ffc400; /* Light Blue */
    border-color: #ffc400;
}
.admin-card.card-btnUserInfo {
    background-color: #00ff22; /* Light Green */
    border-color: #00ff22;
}
.admin-card.card-btnActivityLog {
    background-color: #b190ff; /* Light Orange */
    border-color: #b190ff;
}
.admin-card.card-btnNotify {
    background-color: #4274ff; /* Lighter Orange */
    border-color: #4274ff;
}
.admin-card.card-btnSearchMarket {
    background-color: #00ffff; /* Light Pink */
    border-color: #00ffff;
}
.admin-card.card-btnWarehouse{
    background-color: #ff3030; /* Cyan */
    border-color: #ff3030;
}
.admin-card.card-btnbanhtamcodao-db{
    background-color: #ff6b6b;
    border-color: #ff8787;
}
.admin-card.card-btndonhangCoDao{
    background-color: #93f2ff;
    border-color: #80f0ff;
}
.admin-card.card-btnMenuCoDao{
    background-color: #ff90ed;
    border-color: #eb84ff;
}

/* ======================================================= */
/* === STYLE CHO TRẠNG THÁI ONLINE/OFFLINE TRÊN ADMIN USER INFO PAGE === */
/* ======================================================= */
/* Thêm style cho phần tử TD chứa trạng thái */
.user-table td.status-online,
.user-table td.status-offline {
    padding: 8px 12px; /* Điều chỉnh padding */
    text-align: center; /* Căn giữa nội dung */
    font-weight: bold; /* In đậm chữ */
    border-radius: 5px; /* Bo tròn góc */
    white-space: nowrap; /* Ngăn không cho văn bản bị ngắt dòng */
    display: flex; /* Dùng flexbox để căn giữa theo cả chiều dọc nếu cần */
    align-items: center;
    justify-content: center;
    height: 100%; /* Để ô trạng thái có thể điền đầy đủ chiều cao của ô */
    box-sizing: border-box; /* Đảm bảo padding và border không làm tăng kích thước ô */
}

/* Style cho trạng thái ONLINE */
.user-table td.status-online {
    background-color: #00e676; /* Xanh lá cây */
    color: white; /* Chữ trắng */
    box-shadow: 0 0 5px #00e676, 0 0 10px #00e676; /* Hiệu ứng đổ bóng phát sáng nhẹ */
    animation: pulse-online 1.5s infinite ease-in-out; /* Hiệu ứng nhấp nháy */
}

/* Style cho trạng thái OFFLINE */
.user-table td.status-offline {
    background-color: #90a4ae; /* Xám xanh */
    color: white; /* Chữ trắng */
    /* Có thể thêm box-shadow nhẹ nếu muốn */
}

/* Keyframes cho hiệu ứng nhấp nháy */
@keyframes pulse-online {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ======================================================= */
/* === FOOTER CỦA TRANG CHỦ === */
/* ======================================================= */
.app-footer {
    position: absolute; /* Đặt vị trí tuyệt đối */
    bottom: 0; /* Neo vào cuối container cha */
    left: 0; /* Neo vào bên trái container cha */
    width: 100%; /* Chiếm toàn bộ chiều rộng của container cha */
    display: flex;
    flex-direction: column; /* Xếp các phần tử theo cột */
    align-items: flex-start; /* Căn lề trái */
    padding: 10px 15px; /* Điều chỉnh padding */
    background-color: #111827; /* Màu nền khớp với sidebar trái */
    border-top: 1px solid #374151; /* Đường viền trên */
    font-size: 0.75rem; /* Kích thước chữ nhỏ hơn */
    color: #9ca3af; /* Màu chữ nhạt hơn */
    box-sizing: border-box; /* Bao gồm padding và border trong kích thước */
    z-index: 6; /* Đảm bảo nó nằm trên các nội dung khác nếu cần */
}
.app-footer .footer-text {
    text-align: left; /* Đảm bảo căn trái */
    margin-bottom: 5px; /* Khoảng cách giữa text và version */
}

.app-footer .footer-link {
    color: #007bff; /* Màu xanh cho link */
    text-decoration: none;
    font-weight: 500;
}

.app-footer .footer-link:hover {
    text-decoration: underline;
}

.app-footer .footer-version {
    font-weight: 500;
}
.app-footer .footer-version {
    text-align: left; /* Đảm bảo căn trái */
    font-weight: 500;
}
/* Ẩn nội dung khi sidebar thu gọn */
#left-sidebar-container.collapsed .app-footer {
    display: none; /* Ẩn toàn bộ footer khi sidebar thu gọn */
}

/* Đảm bảo sidebar có position: relative để app-footer có thể position: absolute */
#left-sidebar-container {
    position: relative; /* Đảm bảo vị trí tương đối để footer absolute hoạt động */
    /* ... (các style khác của left-sidebar-container) ... */
}
body:not(.dark-mode) #current-page-title {
    color: white; /* Màu chữ trắng trên nền header sáng */
}

