* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    height: 100vh;
}

/* TOGGLE BUTTON */
#ai-bot-toggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 25px #38bdf8;
    transition: .3s;
    z-index: 9999;
}

#ai-bot-toggle:hover {
    transform: scale(1.1)
}

/* BOT BOX */
#ai-bot-box {
    position: fixed;
    bottom: 110px;
    left: 25px;
    width: 370px;
    height: 550px;
    background: #0f172a;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: white;
    animation: fadeUp .4s ease;
}

/* HEADER */
#ai-bot-header {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

#ai-bot-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* MESSAGES */
#ai-bot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: none;
}

.bot-message {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    width: 85%;
    animation: msg .3s;
}

.user-message {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    padding: 12px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    width: 85%;
    margin-left: auto;
    animation: msg .3s;
}

/* OPTIONS */

.optionBtn {
    flex: 1;
    padding: 10px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: white;
    cursor: pointer;
    font-size: 13px;
    transition: .3s;
}

.optionBtn:disabled {
    opacity: 0.5;
}



/* INPUT */
#ai-bot-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
}

#ai-bot-input-area input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 30px;
    border: none;
    outline: none;
}

#ai-bot-input-area button {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: white;
    font-weight: 600;
}

/* FORMS */
form {
    margin-top: 5px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: none;
    border-radius: 10px;
    outline: none;
}

form button {
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: black;
    font-weight: 700;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes msg {
    from {
        transform: scale(.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* MOBILE */
@media(max-width:500px) {
    #ai-bot-box {
        width: 94%;
        left: 3%;
        height: 85vh
    }
}