﻿/* =============================== GLOBAL STYLE =============================== */
html, body {
    margin: 0;
    padding: 0;
    font-family: Segoe UI, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================== HEADER =============================== */
#header {
    width: 100%;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    height: 60px;
}

.logo-left {
    flex: 0 0 30%;
    max-width: 30%;
    white-space: nowrap;
}

.erp-logo {
    font-size: 36px;
    font-weight: bold;
}

    .erp-logo .sun {
        color: #d32f2f;
    }

    .erp-logo .net {
        color: #2196f3;
    }

    .erp-logo .one {
        color: #888;
    }

    .erp-logo .erp {
        color: #0d47a1;
    }

.menu-right {
    flex: 0 0 68%;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

    .menu-right a.menu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 6px;
        border-radius: 4px;
        font-weight: 600;
        color: #0c4a6e;
        transition: all 0.25s ease;
    }

        .menu-right a.menu-item:hover {
            background-color: rgba(0,0,0,0.05);
            transform: scale(1.05);
        }

    .menu-right .menu-icon {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .menu-right .hamburger {
        width: 25px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

        .menu-right .hamburger div {
            width: 100%;
            height: 3px;
            background-color: #0c4a6e;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

.lang-mini {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0c4a6e;
    letter-spacing: 0.3px;
    user-select: none;
}

/* =============================== MAIN WRAPPER =============================== */
#main {
    padding-top: 70px;
}

/* =============================== ERP INTRO =============================== */
.erp-intro {
    width: 100%;
    padding: 20px;
    text-align: center;
    background-color: #f8fafc;
    margin: 0 auto 15px auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.erp-intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.erp-intro h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 16px;
    white-space: normal;
}

    .erp-intro h1 .sun {
        color: #d32f2f;
    }

    .erp-intro h1 .net {
        color: #2196f3;
    }

.erp-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #0c4a6e;
}

/* =============================== CHATBOT INTRO =============================== */
.chatbot-intro {
    margin: 1.2rem 2% 0.8rem 2%;
    font-size: 1.2rem;
    font-weight: 500;
    color: #0077b6;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* =============================== KHUNG CHATGPT 2 CỘT =============================== */
.chatgpt-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 96%;
    margin: 10px auto 20px auto;
    gap: 2%;
    box-sizing: border-box;
    height: 70vh;
}

.chatgpt-left {
    flex: 3;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    font-weight: 600;
    color: #0c4a6e;
}

.chatgpt-right {
    flex: 1.2;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    color: #b45309;
}

/* =============================== KHUNG CHATGPT ĐƠN 1 CỘT =============================== */
.chatgpt-single {
    width: 96%;
    margin: 20px auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.chatgpt-box {
    background-color: #e0f2fe;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    font-weight: 600;
    color: #0c4a6e;
    height: 70vh;
    box-sizing: border-box;
}

@media (max-width:768px) {
    .chatgpt-box {
        height: auto;
        padding: 16px;
    }
}

/* =============================== FOOTER =============================== */
#footer {
    padding: 15px 0;
    background-color: #f0f4f8;
    height: 200px;
}

.footer-container {
    width: 96%;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    gap: 40px;
    margin-bottom: 12px;
}

.footer-block {
    text-align: left;
    min-width: 180px;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
}

    .footer-block a {
        font-weight: 600;
        color: #0369a1;
    }

        .footer-block a:hover {
            text-decoration: underline;
        }

.footer-copy-left {
    font-size: 13px;
    color: #555;
}

/* =============================== RESPONSIVE =============================== */
@media (max-width:1024px) {
    .erp-overview-wrapper {
        flex-direction: column;
    }
}

@media (max-width:768px) {
    .erp-logo {
        font-size: 30px;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px 0;
    }

    .menu-right {
        justify-content: center;
        margin-top: 5px;
    }

    .chatgpt-wrapper {
        flex-direction: column;
        gap: 12px;
        height: auto;
        width: 94%;
    }

    .chatgpt-left, .chatgpt-right {
        flex: 1 1 auto;
        height: auto;
    }

    .chatbot-intro {
        font-size: 16px;
    }

    body {
        overflow-x: hidden;
    }
}

@media (max-width:480px) {
    .header-container, .footer-container {
        width: 100%;
        margin: 0;
        padding: 0 5px;
    }

    .erp-logo {
        font-size: 26px;
    }

    .footer-info {
        flex-direction: column;
        gap: 12px;
    }

    .chatbot-intro {
        font-size: 14px;
    }
}

/* =============================== PRODUCT PAGE =============================== */
.product-container {
    width: 96%;
    margin: 0 2%;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.items_quydinhs {
    width: calc(50% - 16px);
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 20px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: Segoe UI, sans-serif;
    font-size: 15px;
}

    .items_quydinhs:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        background: #fafafa;
    }

.content_shorts .titles {
    display: block;
    font-weight: 600;
    font-size: 18px;
    color: #0c4a6e;
    text-decoration: none;
    margin-bottom: 8px;
}

    .content_shorts .titles:hover {
        color: #0369a1;
        text-decoration: underline;
    }

.content_shorts .content-html {
    font-size: 14px;
    color: #034663;
    line-height: 1.6;
}

.items_quydinhs img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
    border-radius: 4px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .items_quydinhs {
        width: 100%;
    }
}


/* =============================== MOBILE HEADER 1 DONG =============================== */
@media (max-width: 768px) {
    body.mobile #header .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 60px !important;
        padding: 0 2% !important;
    }

    body.mobile #header .logo-left {
        flex: 0 0 auto !important;
        max-width: none !important;
    }

    body.mobile .menu-right {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        align-items: center !important;
        position: relative;
        right: 2%;
    }

        /* Chỉ hiển thị hamburger + EN|VN */
        body.mobile .menu-right a.menu-item {
            display: none !important;
        }

        body.mobile .menu-right .hamburger {
            display: flex !important;
            cursor: pointer;
        }

        body.mobile .menu-right .lang-mini {
            margin-left: 6px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            color: #0c4a6e !important;
        }
}

/* =============================== HAMBURGER 3 MÀU =============================== */
.menu-right .hamburger div:nth-child(1) {
    background-color: #d32f2f; /* đỏ */
}

.menu-right .hamburger div:nth-child(2) {
    background-color: #000000; /* đen */
}

.menu-right .hamburger div:nth-child(3) {
    background-color: #2196f3; /* xanh */
}

/* =============================== HAMBURGER NÂNG CẤP CHO MOBILE (PASTE VÀO CUỐI sunnet.css) =============================== */
/* Mục tiêu: tăng vùng chạm, tăng độ dày thanh, giữ 3 màu đặc trưng, hỗ trợ focus và responsive */

.menu-right .hamburger {
    width: 42px; /* kích thước vùng chạm mặc định */
    height: 32px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    background: transparent;
    transition: transform 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: content-box;
    z-index: 1100; /* nâng lên nếu có phần tử chồng */
}

    /* hover nhẹ trên desktop */
    .menu-right .hamburger:hover {
        transform: scale(1.06);
        background: rgba(0,0,0,0.02);
    }

    /* focus cho keyboard accessibility */
    .menu-right .hamburger:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
    }

    /* 3 thanh */
    .menu-right .hamburger div {
        width: 100%;
        height: 4px; /* dày hơn để rõ trên mobile */
        border-radius: 3px;
        transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
        box-shadow: none;
        margin: 0;
    }

        /* giữ màu 3 thanh theo nhận diện */
        .menu-right .hamburger div:nth-child(1) {
            background-color: #d32f2f; /* đỏ */
        }

        .menu-right .hamburger div:nth-child(2) {
            background-color: #000000; /* đen */
        }

        .menu-right .hamburger div:nth-child(3) {
            background-color: #2196f3; /* xanh */
        }

    /* Khi muốn hiển thị active / chuyển trạng thái (nếu js toggle aria-expanded="true") */
    .menu-right .hamburger[aria-expanded="true"] div:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-right .hamburger[aria-expanded="true"] div:nth-child(2) {
        opacity: 0;
    }

    .menu-right .hamburger[aria-expanded="true"] div:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

/* MOBILE - phóng to thêm trên màn hình rất nhỏ */
@media (max-width: 480px) {
    .menu-right .hamburger {
        width: 52px;
        height: 38px;
        padding: 8px;
    }

        .menu-right .hamburger div {
            height: 5px;
        }
}

/* Đảm bảo trong body.mobile vẫn hiển thị đúng (ghi đè nếu cần) */
body.mobile .menu-right .hamburger {
    display: flex !important;
    /* nếu bạn muốn đẩy hamburger ra sát cạnh hơn có thể điều chỉnh right/padding trong header */
}

/* Nếu icon svg hoặc font dùng trước đó, ưu tiên CSS này cho vùng chạm:
   (nếu bạn dùng <svg> thay vì 3 div, thêm selector tương ứng) */
.menu-right .hamburger svg {
    display: block;
    width: 28px;
    height: 28px;
}

/* END HAMBURGER NÂNG CẤP */
/* =============================== TĂNG KÍCH THƯỚC HAMBURGER TRÊN MOBILE =============================== */
@media (max-width: 768px) {
    .menu-right .hamburger {
        width: 36px !important;
        height: 28px !important;
    }

        .menu-right .hamburger div {
            height: 4px !important;
            border-radius: 2px !important;
        }

    .menu-right .menu-icon {
        padding: 6px !important;
    }
}

/* =============================== FIX: TĂNG KÍCH THƯỚC BIỂU TƯỢNG 3 GẠCH TRÊN MOBILE =============================== */
@media (max-width: 768px) {
    body.mobile .menu-right .hamburger {
        width: 42px !important;
        height: 32px !important;
    }

        body.mobile .menu-right .hamburger div {
            height: 5px !important;
            border-radius: 3px !important;
        }

    body.mobile .menu-right .menu-icon {
        padding: 8px !important;
    }

    body.mobile .menu-right .hamburger div:nth-child(1) {
        background-color: #d32f2f !important;
    }

    body.mobile .menu-right .hamburger div:nth-child(2) {
        background-color: #000000 !important;
    }

    body.mobile .menu-right .hamburger div:nth-child(3) {
        background-color: #2196f3 !important;
    }
}

@media (max-width: 768px) {
    .hamburger {
        width: 45px !important;
        height: 35px !important;
    }

        .hamburger div {
            height: 5px !important;
            border-radius: 3px !important;
        }
}
/* ================= Nút Hỗ Trợ & Ưu Đãi ================= */
#lnkSupport {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem; /* giống các menu-item khác */
    font-weight: 500;
    color: #000000; /* màu chữ mặc định */
    text-decoration: none;
    margin-right: 15px; /* khoảng cách với nút kế tiếp */
    display: inline-block;
    transition: color 0.3s ease, background 0.3s ease;
}

    #lnkSupport:hover {
        color: #2196f3; /* cùng hiệu ứng hover như menu-item */
    }

/* Responsive cho mobile giống site hiện tại */
@media (max-width: 768px) {
    #lnkSupport {
        font-size: 1.1rem; /* tăng font như các menu-item mobile */
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    #lnkSupport {
        font-size: 1.2rem; /* tăng font trên màn rất nhỏ */
    }
}

