/* ===== Base Styles ===== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #FFF5F8;
    overflow-x: hidden;
}
h1, h2, h3, .font-display {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.05em;
}
html {
    scroll-behavior: smooth;
}

/* ===== Navigation ===== */
.nav-link {
    transition: color 0.3s, border-color 0.3s;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}
.nav-link:hover {
    color: #ff6b9e;
}
.active-nav {
    color: #ff6b9e;
    font-weight: 600;
    border-bottom: 2px solid #ff6b9e;
}

/* ===== Menu Items ===== */
.menu-item {
    padding: 16px;
    border-radius: 16px;
    transition: background-color 0.3s, transform 0.2s;
}
.menu-item:hover {
    background-color: rgba(255, 196, 217, 0.15);
    transform: translateX(4px);
}

/* ===== Chatbot Styles ===== */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
#chatbot-toggle {
    background: linear-gradient(135deg, #ff6b9e, #ff85b1);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 158, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: none;
    animation: pulse-glow 2s infinite;
}
#chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 158, 0.5);
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 107, 158, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 107, 158, 0.6); }
}
.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: transform 0.3s;
}
.chatbot-badge.hidden {
    transform: scale(0);
}

/* Chatbot Window */
#chatbot-window {
    display: none;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: 80px;
    right: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ffe4ed;
    animation: chatSlideUp 0.35s ease-out;
}
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
#chatbot-header {
    background: linear-gradient(135deg, #ff6b9e, #ff85b1);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    animation: messageSlideIn 0.3s ease-out;
    word-wrap: break-word;
}
@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.bot-message {
    background: #f5f5f5;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #333;
}
.bot-message b {
    color: #ff6b9e;
}
.user-message {
    background: linear-gradient(135deg, #ff6b9e, #ff85b1);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-start;
}
.quick-reply-btn {
    background: white;
    border: 1.5px solid #ff6b9e;
    color: #ff6b9e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}
.quick-reply-btn:hover {
    background: #ff6b9e;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 158, 0.3);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 14px 18px;
    align-items: center;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

#chatbot-input-area {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    gap: 8px;
    align-items: center;
}
#chatbot-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #e5e5e5;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}
#chatbot-input:focus {
    border-color: #ff6b9e;
}
#chatbot-send {
    background: linear-gradient(135deg, #ff6b9e, #ff85b1);
    border: none;
    color: white;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
#chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(255, 107, 158, 0.4);
}

/* ===== Mobile responsive chatbot ===== */
@media (max-width: 420px) {
    #chatbot-window {
        width: calc(100vw - 32px);
        right: -4px;
        bottom: 72px;
        height: calc(100vh - 160px);
        border-radius: 16px;
    }
}
