body {
    background: #f4f4f9;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
#open-chatbot-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    background: linear-gradient(135deg, #2a7ae2 60%, #5e9fff 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    box-shadow: 0 4px 24px rgba(42,122,226,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
#open-chatbot-btn:hover {
    background: linear-gradient(135deg, #1a5bb8 60%, #2a7ae2 100%);
    box-shadow: 0 8px 32px rgba(42,122,226,0.22);
    transform: scale(1.07);
}
#chatbot-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1001;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(42,122,226,0.13), 0 2px 8px rgba(0,0,0,0.06);
    width: 370px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.3s cubic-bezier(.4,1.4,.6,1);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
#chat-header {
    background: linear-gradient(90deg, #2a7ae2 80%, #5e9fff 100%);
    color: #fff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-bottom: 1px solid #e3eefd;
    box-shadow: 0 2px 8px rgba(42,122,226,0.07);
}
#close-chatbot-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.2s, transform 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#close-chatbot-btn:hover {
    color: #ffb3b3;
    background: rgba(255,255,255,0.08);
    transform: scale(1.15);
}
#chat-window {
    flex: 1;
    padding: 18px 14px 18px 14px;
    overflow-y: auto;
    height: 400px;
    max-height: 60vh;
    min-height: 180px;
    background: linear-gradient(180deg, #f8fafd 80%, #e3eefd 100%);
    border-bottom: 1px solid #e3eefd;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: #c1d1e0 #f8fafd;
}
#chat-window::-webkit-scrollbar {
    width: 8px;
}
#chat-window::-webkit-scrollbar-track {
    background: #f8fafd;
    border-radius: 3px;
}
#chat-window::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c1d1e0 0%, #a8b8c8 100%);
    border-radius: 3px;
    transition: background 0.2s;
}
#chat-window::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a8b8c8 0%, #8fa0b0 100%);
}
.message {
    margin-bottom: 0;
    line-height: 1.6;
    word-break: break-word;
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 1em;
    box-shadow: 0 1px 4px rgba(42,122,226,0.04);
    transition: background 0.2s;
    position: relative;
}
.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #e3eefd 60%, #b3d1ff 100%);
    color: #2a7ae2;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 16px;
    box-shadow: 0 2px 8px rgba(42,122,226,0.07);
}
.message.bot {
    align-self: flex-start;
    background: #fff;
    color: #222;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 2px 8px rgba(42,122,226,0.04);
}
.message.loading {
    align-self: flex-start;
    background: #fff;
    color: #222;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 2px 8px rgba(42,122,226,0.04);
    padding: 12px 16px;
}
.loading-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}
.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2a7ae2;
    animation: loadingPulse 1.4s ease-in-out infinite both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }
@keyframes loadingPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
#chat-form {
    display: flex;
    border-top: 1px solid #e3eefd;
    padding: 10px 12px;
    background: #fafdff;
    gap: 8px;
}
#user-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d3e3fa;
    border-radius: 8px;
    font-size: 1em;
    margin-right: 0;
    background: #f8fafd;
    transition: border 0.2s;
}
#user-input:focus {
    border: 1.5px solid #2a7ae2;
    outline: none;
    background: #fff;
}
#chat-form button {
    background: linear-gradient(135deg, #2a7ae2 60%, #5e9fff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(42,122,226,0.07);
}
#chat-form button:hover {
    background: linear-gradient(135deg, #1a5bb8 60%, #2a7ae2 100%);
    box-shadow: 0 4px 16px rgba(42,122,226,0.13);
}
#main-header {
    width: 100vw;
    background: linear-gradient(90deg, #2a7ae2 60%, #5e9fff 100%);
    color: #fff;
    padding: 48px 0 32px 0;
    text-align: center;
    box-shadow: 0 2px 16px rgba(42,122,226,0.08);
    margin-bottom: 32px;
}
.header-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}
#main-header h1 {
    font-size: 2.4em;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(42,122,226,0.10);
}
.subtitle {
    font-size: 1.15em;
    font-weight: 400;
    margin: 0 0 18px 0;
    color: #e3eefd;
    text-shadow: 0 1px 4px rgba(42,122,226,0.10);
}
.admin-link {
    display: inline-block;
    background: #fff;
    color: #2a7ae2;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.08em;
    box-shadow: 0 2px 8px rgba(42,122,226,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}
.admin-link:hover {
    background: #2a7ae2;
    color: #fff;
    box-shadow: 0 4px 16px rgba(42,122,226,0.18);
}
@media (max-width: 500px) {
    #chatbot-container {
        width: 98vw;
        right: 1vw;
        bottom: 1vw;
        border-radius: 12px;
    }
    #open-chatbot-btn {
        right: 1vw;
        bottom: 1vw;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    #chat-window {
        height: 220px;
    }
}
@media (max-width: 600px) {
    #main-header {
        padding: 32px 0 18px 0;
        margin-bottom: 18px;
    }
    #main-header h1 {
        font-size: 1.5em;
    }
    .header-content {
        padding: 0 6vw;
    }
}