/* SNU AI Chatbot Styles */
.snu-chatbot { position: fixed; bottom: 90px; right: 24px; z-index: 1050; font-family: var(--font-body, sans-serif); }
.chat-toggle {
    width: 60px; height: 60px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--snu-saffron), #e65100);
    color: white; font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,111,0,0.4);
    position: relative; transition: transform 0.3s;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--snu-navy); color: white;
    font-size: 0.625rem; font-weight: 700;
    padding: 2px 6px; border-radius: 10px;
}
.chat-window {
    position: absolute; bottom: 70px; right: 0;
    width: 360px; max-width: calc(100vw - 32px);
    height: 480px; background: white;
    border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    display: flex; flex-direction: column; overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}
@keyframes chatSlideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.chat-header {
    background: linear-gradient(135deg, var(--snu-navy), var(--snu-navy-dark));
    color: white; padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    background: #f8f9fc;
}
.chat-msg { margin-bottom: 12px; display: flex; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble {
    max-width: 85%; padding: 10px 14px; border-radius: 14px;
    font-size: 0.875rem; line-height: 1.5; white-space: pre-wrap;
}
.chat-msg.bot .msg-bubble { background: white; border: 1px solid #e0e0e0; border-bottom-left-radius: 4px; }
.chat-msg.user .msg-bubble { background: var(--snu-navy); color: white; border-bottom-right-radius: 4px; }
.chat-msg.typing .msg-bubble { color: #999; font-style: italic; }
.chat-quick-btns {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px;
    border-top: 1px solid #eee; background: white;
}
.chat-quick-btns button {
    font-size: 0.6875rem; padding: 4px 10px; border-radius: 20px;
    border: 1px solid var(--snu-navy); background: white;
    color: var(--snu-navy); cursor: pointer; font-weight: 600;
}
.chat-quick-btns button:hover { background: var(--snu-navy); color: white; }
.chat-input-form {
    display: flex; padding: 10px 12px; gap: 8px;
    border-top: 1px solid #eee; background: white;
}
.chat-input-form input {
    flex: 1; border: 1px solid #ddd; border-radius: 24px;
    padding: 8px 16px; font-size: 0.875rem; outline: none;
}
.chat-input-form input:focus { border-color: var(--snu-navy); }
.chat-input-form button {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: var(--snu-saffron); color: white; cursor: pointer;
}
@media (max-width: 767px) {
    .snu-chatbot { bottom: 130px; right: 16px; }
    .chat-window { width: calc(100vw - 32px); height: 420px; }
    .chat-toggle { width: 52px; height: 52px; font-size: 1.25rem; }
}
