﻿.introjs-tooltip {
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Inter', sans-serif;
    max-width: 420px;
    background-color: #fff !important;
    padding: 20px !important;
    font-size: 14px;
    position: relative;
}

.introjs-tooltiptext {
    padding: 0 !important;
}

    .introjs-tooltiptext h3 {
        margin-top: 0;
        font-size: 16px;
        font-weight: 600;
        color: #222;
        margin-bottom: 8px;
    }

    .introjs-tooltiptext p {
        margin: 6px 0;
        line-height: 1.6;
        color: #333;
    }

.introjs-tooltipbuttons {
    padding-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.introjs-button {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    border: none !important;
    transition: 0.2s ease;
}

    .introjs-button.introjs-nextbutton {
        background-color: #1fb6ff !important;
        color: #fff !important;
    }

        .introjs-button.introjs-nextbutton:hover {
            background-color: #009ee0 !important;
        }

    .introjs-button.introjs-prevbutton {
        background: #e0e0e0 !important;
        color: #333 !important;
    }

        .introjs-button.introjs-prevbutton:hover {
            background: #cfcfcf !important;
        }

.introjs-closeButton {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 16px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}

    .introjs-closeButton:hover {
        color: #333;
    }

.introjs-progressbar,
.introjs-skipbutton {
    display: none !important;
}

.introjs-arrow {
    display: block !important;
}

.introjs-tooltip-header {
    display: none !important;
}
/* Step counter */
#stepCounter {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 20000;
    font-weight: 500;
    color: #1fb6ff;
    font-size: 15px;
    display: none;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: opacity .2s;
    pointer-events: none;
    user-select: none;
}






#button_helper {
    position: fixed;
    bottom: 350px;
    right: 15px;
    height: 175px;
    width: 40px;
    background: #1fb6ff;
    border-radius: 9999px;
    box-shadow: 0 0 31px 6px rgba(0,0,0,.17);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 10px;
    cursor: pointer;
    z-index: 99;
    animation: fadeInUp 1s ease 1s both;
    cursor: pointer;
    opacity: 0.8; /* hoặc thấp hơn tùy ý */
    transition: opacity 0.3s ease;
}

    #button_helper:hover {
        opacity: 1;
    }


    #button_helper i {
        color: #fff;
        font-size: 20px;
        margin-bottom: 8px;
        animation: xoayvong 2s linear 0s infinite;
        -webkit-animation: xoayvong 2s linear 0s infinite;
        -moz-animation: xoayvong 2s linear 0s infinite;
        -o-animation: xoayvong 2s linear 0s infinite
    }

.intro-modal-icon i {
    animation: xoayvong 2s linear 0s infinite;
    -webkit-animation: xoayvong 2s linear 0s infinite;
    -moz-animation: xoayvong 2s linear 0s infinite;
    -o-animation: xoayvong 2s linear 0s infinite
}

@-webkit-keyframes xoayvong {
    from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg)
    }

    to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -o-transform: rotate(360deg)
    }
}

@keyframes xoayvong {
    from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg)
    }

    to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -o-transform: rotate(360deg)
    }
}
 

/* Chữ Tutorial dọc, nằm bên trong */
.helper-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg); /* Cho chữ đọc từ trên xuống */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

#welcomeModal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(30, 41, 59, 0.20);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s;
    font-family: 'Inter', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.intro-modern-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    max-width: 380px;
    width: 92vw;
    padding: 30px 26px 24px;
    text-align: center;
    animation: slideDown .28s ease-out;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.intro-modal-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.intro-modern-modal h2 {
    color: #1fb6ff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.intro-modern-modal p {
    color: #222;
    font-size: 1rem;
    margin: 0 0 20px;
    line-height: 1.6;
    font-weight: 400;
}

.intro-modal-time {
    display: inline-block;
    color: #1fb6ff;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 8px;
    background: #e6f6fd;
    border-radius: 4px;
    padding: 2px 8px 2px 2px;
}

.intro-modal-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.intro-modal-btn {
    padding: 11px 18px;
    border-radius: 7px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.17s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

    .intro-modal-btn.start {
        background: linear-gradient(90deg,#1fb6ff 70%,#009ee0 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(31,182,255,.10);
    }

        .intro-modal-btn.start:hover {
            background: linear-gradient(90deg,#009ee0 70%,#1fb6ff 100%);
        }

    .intro-modal-btn.skip {
        background: #f1f5f9;
        color: #222;
    }

        .intro-modal-btn.skip:hover {
            background: #e0e7ef;
        }

@media (max-width: 480px) {
    .intro-modern-modal {
        padding: 18px 4vw;
    }

    .intro-modal-btn {
        font-size: 0.97rem;
        padding: 10px 10px;
    }
}
