:root {
    /* Màu chủ đạo: giữ nguyên primary, còn lại tinh giản, ít màu, thiên về xanh + xám trung tính */
    --primary-color: #2563EB;             /* Xanh dương chủ đạo */
    --secondary-color: #1D4ED8;           /* Xanh dương đậm hơn, dùng cho hover/nhấn mạnh */
    --support-color: #2563EB;             /* Dùng lại primary để tránh quá nhiều màu phụ */

    /* Nền & chữ: trung tính, sạch sẽ */
    --background-color: #F9FAFB;          /* Nền chung rất nhạt, thiên xám */
    --text-color-light: #FFFFFF;          /* Chữ trên nền tối / button */
    --text-color-dark: #111827;           /* Chữ chính trên nền sáng */

    --font-family: "Open Sans", sans-serif;
    --font-size: 16px;

    /* Bo góc & bóng đổ nhẹ, hiện đại */
    --border-radius: 6px;
    --box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    --transition: all 0.2s ease-out;

    /* Màu phụ sáng / tối đồng bộ với hệ màu xanh + xám */
    --light-color: #EFF6FF;               /* Xanh rất nhạt (background block) */
    --dark-color: #0F172A;                /* Xanh đen cho header/footer nếu cần */
    --hover-color: #2563EB0D;             /* Overlay hover rất nhẹ (xanh dương với alpha thấp) */

    --border-color: #E5E7EB;              /* Viền xám nhạt, ít gây chú ý */
    --border: 1px solid var(--border-color);

    --active-color: #1D4ED8;              /* Trạng thái active: xanh đậm hơn primary một chút */
}

/* ============================================
   BASE STYLES - Từ Themes/Home
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family, Arial, Helvetica, sans-serif);
    font-size: var(--font-size, 14px);
    line-height: 1.6;
    color: var(--text-color-dark, #333);
    background-color: var(--background-color, #f5f5f5);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
        max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-full {
        max-width: 100%;
    padding: 0 15px;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    cursor: pointer;
}

.custom-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    max-width: 320px;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.custom-toast.success {
    background-color: #10b981;
}

.custom-toast.error {
    background-color: #ef4444;
}

.custom-toast.warning {
    background-color: #f59e0b;
}

.custom-toast.info {
    background-color: #3b82f6;
}

/* ============================================
   CHAT WIDGET - Common for all pages
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.back-to-top {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-color-light);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    color: var(--text-color-light);
    margin-bottom: 10px;
}

.chat-button:hover {
    transform: scale(1.1);
}

/* Contact Info Box */
.contact-info-box {
    position: fixed;
    bottom: 160px;
    right: 20px;
    max-width: 500px;
    background-color: var(--text-color-light);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border: var(--border);
}

.contact-info-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: var(--border);
    background-color: var(--light-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.contact-info-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color-dark);
}

.close-contact-box {
    width: 28px;
    height: 28px;
    border: none;
    background-color: transparent;
    font-size: 24px;
    color: var(--text-color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}

.close-contact-box:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.contact-info-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    display: block;
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-label {
    display: inline-block;
    min-width: 100px;
    color: var(--text-color-dark);
    font-weight: 500;
    margin-right: 8px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-item span:not(.contact-label) {
    color: var(--text-color-dark);
}

.phone-widget {
        position: fixed;
    bottom: 100px;
        right: 20px;
    width: 60px;
    height: 60px;
        background-color: var(--primary-color);
    border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: pulse 2s infinite;
        text-decoration: none;
    color: var(--text-color-light);
    transition: var(--transition);
}

.phone-widget:hover {
    transform: scale(1.1);
}

.zalo-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0068FF;
    border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: pulse 2s infinite;
        text-decoration: none;
    color: var(--text-color-light);
    transition: var(--transition);
}

.zalo-widget:hover {
    transform: scale(1.1);
    background-color: #0052CC;
}

@media (max-width: 768px) {
    .zalo-widget {
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Responsive Chat Widget */
@media (max-width: 480px) {
    .contact-info-box {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        max-width: 320px;
    }
    
    .chat-widget {
        bottom: 70px;
        right: 15px;
    }
    
    .back-to-top,
    .chat-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
