/* =======================================================
   Global
======================================================= */

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* =======================================================
   Map Container
======================================================= */

#container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

#map-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
}

#map {
    position: relative;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* =======================================================
   Pin chung
======================================================= */
.pin-wrapper {

    position: absolute;
}

/* =======================================================
   RFCC Area
======================================================= */
.pin-rfcc {

    top: 2200px;
    left: 1650px;
}


.pin-icon-rfcc {
    position: absolute;

    width: 250px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-rfcc:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-rfcc {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-rfcc {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 24
======================================================= */

.pin-u24 {

    top: 1800px;
    left: 770px;
}

.pin-icon-u24 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u24:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u24 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(-90%)
        translateY(10%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u24 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 11
======================================================= */
.pin-u11 {

    top: 1900px;
    left: 1400px;
}

.pin-icon-u11 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u11:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u11 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u11 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 14
======================================================= */
.pin-u14 {

    top: 2050px;
    left: 1300px;
}

.pin-icon-u14 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u14:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u14 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u14 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 37
======================================================= */
.pin-u37 {

    top: 1750px;
    left: 1300px;
}

.pin-icon-u37 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u37:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u37 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u37 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 23
======================================================= */
.pin-u23 {

    top: 2200px;
    left: 1100px;
}

.pin-icon-u23 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u23:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u23 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u23 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 12
======================================================= */
.pin-u12 {

    top: 1900px;
    left: 1200px;
}

.pin-icon-u12 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u12:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u12 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u12 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 13
======================================================= */
.pin-u13 {

    top: 1750px;
    left: 1100px;
}

.pin-icon-u13 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u13:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u13 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u13 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 18
======================================================= */
.pin-u18 {

    top: 1750px;
    left: 900px;
}

.pin-icon-u18 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u18:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u18 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(-15%)
        translateY(-350%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u18 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 19
======================================================= */
.pin-u19 {

    top: 1850px;
    left: 1000px;
}

.pin-icon-u19 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u19:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u19 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u19 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 20
======================================================= */
.pin-u20 {

    top: 2000px;
    left: 1000px;
}

.pin-icon-u20 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u20:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u20 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u20 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 22
======================================================= */
.pin-u22 {

    top: 1900px;
    left: 900px;
}

.pin-icon-u22 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u22:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u22 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(-70%)
        translateY(20%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u22 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 51
======================================================= */
.pin-u51 {

    top: 1820px;
    left: 170px;
}

.pin-icon-u51 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u51:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u51 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(-15%)
        translateY(-350%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u51 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 57
======================================================= */
.pin-u57 {

    top: 2150px;
    left: 2650px;
}

.pin-icon-u57 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u57:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u57 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u57 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 60
======================================================= */
.pin-u60 {

    top: 1250px;
    left: 2350px;
}

.pin-icon-u60 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u60:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u60 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u60 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 40
======================================================= */
.pin-u40 {

    top: 1450px;
    left: 1700px;
}

.pin-icon-u40 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u40:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u40 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(30px)
        translateY(-50%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u40 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 54
======================================================= */
.pin-u54 {

    top: 1350px;
    left: 500px;
}

.pin-icon-u54 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u54:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u54 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(-15%)
        translateY(-350%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u54 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Unit 58
======================================================= */
.pin-u58 {

    top: 2200px;
    left: 2000px;
}

.pin-icon-u58 {
    position: absolute;

    width: 90px;
    height: auto;

    cursor: pointer;
    z-index: 10;

    transform:
        translate(-50%, -100%)
        rotate(30deg);

    filter:
        drop-shadow(
            0px 5px 5px rgba(0,0,0,0.4)
        );

    transition:
        transform 0.2s ease-in-out;
}

.pin-icon-u58:hover {
    transform:
        translate(-50%, -105%)
        rotate(30deg)
        scale(1.1);
}

.pin-tooltip-u58 {

    position: absolute;

    left: 250%;
    top: 150%;

    transform:
        translateX(-15%)
        translateY(-350%)
        rotate(30deg);

    background: #333;

    color: white;

    padding: 6px 10px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 40px;

    font-family: Arial, sans-serif;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;
}

.pin-wrapper:hover .pin-tooltip-u58 {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   AI CHAT
======================================================= */
#ai-launcher {

    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: white;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: visible;

    cursor: pointer;

    box-shadow:
        0 5px 20px rgba(0,0,0,.4);

    z-index: 2147483647;

    transition: transform 0.2s ease;
}

#ai-launcher:hover {

    transform: scale(1.1);
}

#ai-avatar {

    width: 75%;
    height: 75%;

    object-fit: contain;

    display: block;
}

#ai-chat-container {

    position: fixed;

    right: 20px;
    bottom: 100px;

    width: 350px;
    height: 500px;

    background: white;

    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0,0,0,.3);

    z-index: 2147483647;

    display: none;

    flex-direction: column;

    overflow: hidden;

    font-family: Arial, sans-serif;
}

#ai-header {

    background: #0057b8;
    color: white;

    padding: 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-weight: bold;
}

#ai-close {

    background: transparent;
    border: none;

    color: white;

    cursor: pointer;

    font-size: 18px;
}

#ai-messages {

    flex: 1;

    padding: 10px;

    overflow-y: auto;
}

#ai-input-area {
    display: flex;
    align-items: center; /* Thêm dòng này để căn giữa nút mic và nút gửi theo chiều dọc */
    border-top: 1px solid #ddd;
    background: white;   /* Đảm bảo nền luôn màu trắng, không bị xuyên thấu */
}

#ai-input {

    flex: 1;

    border: none;

    padding: 16px;

    outline: none;

    font-size: 16px;

    font-family: Arial, sans-serif;
}

#btn-send {

    width: 50px;

    border: none;

    background: white;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;
}

#send-icon {

    width: 24px;
    height: 24px;

    object-fit: contain;

    display: block;
}

#mic-icon {

    width: 24px;
    height: 24px;

    object-fit: contain;

    display: block;
}

#btn-mic {

    width: 50px;

    border: none;

    background: white;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;
}

#ai-tooltip {

    position: absolute;

    right: 80px;
    top: 50%;

    transform: translateY(-50%);

    background: #333;

    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    white-space: nowrap;

    font-size: 14px;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s ease;

    pointer-events: none;

    font-family: Arial, sans-serif;
}

#ai-launcher:hover #ai-tooltip {

    opacity: 1;

    visibility: visible;
}

/* =======================================================
   Chat Messages
======================================================= */
.message {

    max-width:65%;

    padding: 10px 14px;

    margin: 8px;

    border-radius: 16px;

    font-size: 14px;

    line-height: 1.5;

    word-wrap: break-word;
}

.ai-message {

    background: #f1f3f5;

    color: #333;

    align-self: flex-start;

    border-bottom-left-radius: 4px;
}

.user-message {

    background: #0057b8;

    color: white;

    margin-left: auto;

    border-bottom-right-radius: 4px;
}

/* =======================================================
   Box co thong tin toa do ben goc trai man hinh
======================================================= */
#coordBox{
    position: fixed;
    bottom: 10px;
    left: 10px;

    padding: 8px 12px;

    background: rgba(0,0,0,0.8);
    color: white;

    font-family: Consolas;
}

/* =======================================================
   Hộp voice
======================================================= */



/* ========================================================================= */
/* Menu trạng thái hoạt động của Pump
/* ========================================================================= */
.app-page {
    display: none; 
}
.app-page.active {
    display: block;
}

#circle-menu-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2147483647;
    font-family: Arial, sans-serif;
}

#btn-circle-menu {
    width: 50px;
    height: 50px;
    background: #0057b8;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

#btn-circle-menu:hover { 
    transform: scale(1.08); 
    background: #00418a; 
}

/* Danh sách menu xổ xuống khi bấm vào nút */
#menu-dropdown-list {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    width: 270px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

#menu-dropdown-list.show { 
    display: block; 
}

.menu-item { 
    padding: 14px 20px; 
    color: #333; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500; 
    transition: all 0.2s; 
}

.menu-item:hover { 
    background: #f1f5f9; 
    color: #0057b8; 
}

.menu-item.active { 
    background: #e0eefc; 
    color: #0057b8; 
    border-right: 4px solid #0057b8;
    border-left: none;
    font-weight: bold; 
}

/* ========================================================================= */
/* Pump & Dashboard Real-time
/* ========================================================================= */
#page-pump-operation.app-page.active {
    display: flex;       
    justify-content: center; 
    align-items: center;     
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f5f7fb; 
    z-index: 999999;           
    overflow: hidden;          
    box-sizing: border-box;
}

.pump-container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    margin: 0; 
    box-sizing: border-box;
    width: 95vw;
    height: 95vh;
    overflow-y: auto; 
}

.chart-box {
    position: relative; 
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    width: 100%;
    height: 340px; 
    box-sizing: border-box;
    transform: rotate(0deg) !important;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

.table-section {
    width: 100%;
}

.charts-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.pump-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pump-table th, .pump-table td {
    border: 1px solid #e2e8f0;
    padding: 14px 12px;
    text-align: left;
    font-size: 14px;
}

.pump-table th { 
    background-color: #f8fafc; 
    font-weight: bold;
    color: #334155;
}

.pump-table td {
    color: #475569;
}

.status-good { 
    color: #16a34a; 
    font-weight: bold; 
}

.status-warning { 
    color: #ea580c; 
    font-weight: bold; 
}

.status-danger { 
    color: #dc2626; 
    font-weight: bold; 
}

/* ========================================================================= */
/* 3D Model Viewer (GLB)
/* ========================================================================= */
#page-3d-viewer.app-page.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0f172a;
    z-index: 999999;
    overflow: hidden;
    box-sizing: border-box;
}

.gltf-viewer-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    box-sizing: border-box;
}

.gltf-upload-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.gltf-upload-label:hover {
    background-color: #1d4ed8;
}

#gltf-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

#gltf-file-input.gltf-input-disabled,
#gltf-file-input:disabled {
    pointer-events: none;
}

.gltf-viewer-toolbar:has(#gltf-file-input:disabled) .gltf-upload-label {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

#gltf-viewer-container {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
}

#gltf-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.gltf-overlay-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 420px;
    padding: 24px 28px;
    text-align: center;
    color: #e2e8f0;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 10px;
    pointer-events: none;
    box-sizing: border-box;
}

.gltf-overlay-state p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
}

.gltf-overlay-state p:last-child {
    margin-bottom: 0;
}

.gltf-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

.gltf-hint {
    font-size: 12px;
    color: #94a3b8;
}

.gltf-overlay-hidden {
    display: none;
}

.gltf-status-hidden {
    display: none;
}

.gltf-status-loading {
    display: block;
    color: #93c5fd;
}

.gltf-status-error {
    display: block;
    color: #fca5a5;
    border-color: #7f1d1d;
    background-color: rgba(127, 29, 29, 0.3);
}
