.lyceum-chatbot {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 1080;
    font-family: Arial, sans-serif;
}

.lyceum-chatbot__toggle {
    background: #0d6efd;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    animation: lyceum-chatbot-float 2.8s ease-in-out infinite;
}

.lyceum-chatbot__toggle:hover,
.lyceum-chatbot__toggle:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.34);
}

.lyceum-chatbot__panel {
    width: min(360px, calc(100vw - 32px));
    height: 520px;
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lyceum-chatbot__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #212529;
    color: #fff;
}

.lyceum-chatbot__role {
    font-size: 12px;
    opacity: 0.8;
}

.lyceum-chatbot__close {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 24px;
    line-height: 1;
}

.lyceum-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f8f9fa;
}

.lyceum-chatbot__message {
    max-width: 90%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.lyceum-chatbot__message--assistant {
    background: #fff;
    color: #212529;
    border: 1px solid #e9ecef;
}

.lyceum-chatbot__message--user {
    margin-left: auto;
    background: #0d6efd;
    color: #fff;
}

.lyceum-chatbot__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 10px;
    background: #f8f9fa;
}

.lyceum-chatbot__action {
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

.lyceum-chatbot__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 12px;
    background: #f8f9fa;
}

.lyceum-chatbot__suggestion {
    border: 1px dashed #adb5bd;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lyceum-chatbot__form {
    display: flex;
    gap: 10px;
    padding: 12px 14px 14px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.lyceum-chatbot__input {
    flex: 1;
    resize: none;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 10px 12px;
}

.lyceum-chatbot__send {
    border: 0;
    background: #198754;
    color: #fff;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 700;
}

.lyceum-chatbot__typing {
    font-style: italic;
    color: #6c757d;
}

@keyframes lyceum-chatbot-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 576px) {
    .lyceum-chatbot {
        right: 12px;
        bottom: 84px;
    }

    .lyceum-chatbot__panel {
        height: 70vh;
    }
}
