﻿/* Wrapper */
.chatbox-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Icon */
.chat-icon {
    width: 60px;
    height: 60px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Popup */
.chat-popup {
    position: absolute;
    bottom: 0;
    right: 60px; /* popup nằm ngay cạnh icon */
    width: 300px;
    height: 380px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
}

/* Header */
.chat-header {
    background: #0d6efd;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0 0;
}

/* Body */
.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

/* Footer */
.chat-footer {
    display: flex;
    border-top: 1px solid #ddd;
}

    .chat-footer input {
        flex: 1;
        border: none;
        padding: 8px;
        outline: none;
    }

    .chat-footer button {
        border: none;
        background: #0d6efd;
        color: white;
        padding: 0 15px;
        cursor: pointer;
    }
/* Nút Tuyển sinh cố định góc dưới bên trái */
.btn-tuyen-sinh-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nút chính - Đã thu nhỏ kích thước */
.circle-btn {
    width: 65px; /* Nhỏ hơn bản cũ */
    height: 65px;
    background: radial-gradient(circle, #ff5f5f 0%, #ff0000 100%);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px; /* Chữ nhỏ lại cho cân đối */
    font-weight: bold;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease; /* Hiệu ứng chuyển màu mượt mà */
}

    /* Hiệu ứng khi hover: Chuyển sang màu xanh */
    .circle-btn:hover {
        transform: scale(1.1);
        background: radial-gradient(circle, #3385ff 0%, #0056b3 100%);
        box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    }

/* Hiệu ứng sóng lan tỏa */
.btn-tuyen-sinh-fixed::before,
.btn-tuyen-sinh-fixed::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1;
    animation: ripple-effect 2s infinite;
    transition: background-color 0.4s ease;
}

/* Khi hover thì vòng tròn lan tỏa cũng chuyển sang màu xanh */
.btn-tuyen-sinh-fixed:hover::before,
.btn-tuyen-sinh-fixed:hover::after {
    background-color: rgba(0, 86, 179, 0.4);
}

.btn-tuyen-sinh-fixed::after {
    animation-delay: 0.5s;
}

@keyframes ripple-effect {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Mobile: thu nhỏ thêm một chút nếu cần */
@media (max-width: 768px) {
    .btn-tuyen-sinh-fixed {
        bottom: 15px;
        left: 15px;
    }

    .circle-btn {
        width: 55px;
        height: 55px;
        font-size: 10px;
    }
}