/* =====================================
   Chatbot Beta Theme
===================================== */

:root {
    --chat-primary: #2563eb;
    --chat-primary-dark: #1d4ed8;
    --chat-bg: #f8fafc;
    --chat-card: #ffffff;
    --chat-text: #0f172a;
    --chat-muted: #64748b;
    --chat-border: #e2e8f0;
    --chat-radius: 16px;
}

/* Main */

.chatbot-page {
    background: var(--chat-bg);
    min-height: 100vh;
    padding: 30px 15px;
    font-family: Inter, Arial, sans-serif;
    color: var(--chat-text);
}

.chatbot-card {

    max-width: 850px;
    margin: auto;
    background: var(--chat-card);
    border-radius: var(--chat-radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);

}

/* Header */

.chatbot-header h1 {

    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.chatbot-header h1 span {
    color: var(--chat-primary);
    font-size: 18px;
}

.subtitle {
    color: var(--chat-muted);
    font-size: 18px;
    margin-bottom: 25px;

}
.notice {

    background:#eff6ff;
    border-left:5px solid var(--chat-primary);
    padding:20px;
    border-radius:10px;
    color:#334155;
    line-height:1.7;

}
/* Input */

.chat-input {
    margin-top:35px;
}

.chat-input label {

    display:block;
    font-size:20px;
    font-weight:600;
    margin-bottom:12px;
}

#question {
    width:100%;
    min-height:140px;

    resize:vertical;

    padding:18px;

    font-size:16px;

    border:1px solid var(--chat-border);

    border-radius:12px;

    outline:none;

    transition:.2s;

}

#question:focus {
    border-color:var(--chat-primary);
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

/* Ask Button */

#askBtn {

    margin-top:15px;

    width:100%;

    background:var(--chat-primary);

    color:white;

    border:none;

    padding:15px;

    border-radius:12px;

    font-size:17px;

    cursor:pointer;

    transition:.2s;
}

#askBtn:hover {
    background:var(--chat-primary-dark);
}

#askBtn:disabled {
    opacity:.6;

    cursor:not-allowed;
}

/* Loading */
.loading {

    display:none;

    margin-top:20px;

    text-align:center;

    color:var(--chat-muted);
}

/* Response */
.response-section {

    display:none;

    margin-top:35px;

    padding:25px;

    background:#f8fafc;

    border:1px solid var(--chat-border);

    border-radius:12px;

}

.response-section h2 {
    margin-top:0;

    font-size:22px;
}

#responseText {
    line-height:1.8;

    white-space:pre-wrap;
}

/* Feedback */

.feedback-section {
    display:none;

    margin-top:30px;

    border-top:1px solid var(--chat-border);

    padding-top:25px;

}

.feedback-section p {

    font-weight:600;

    margin-bottom:15px;

}

.feedback-buttons {

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}

.feedback-buttons button {

    flex:1;

    min-width:140px;

    padding:12px;

    border:1px solid var(--chat-border);

    background:white;

    border-radius:10px;

    cursor:pointer;

    font-size:15px;

    transition:.2s;
}

.feedback-buttons button:hover {

    background:#eff6ff;

    border-color:var(--chat-primary);
}

.feedback-buttons button.active {

    background:var(--chat-primary);

    color:white;

    border-color:var(--chat-primary);

}

/* Footer */
.chatbot-footer {

    margin-top:35px;

    padding-top:20px;

    border-top:1px solid var(--chat-border);

    color:var(--chat-muted);

    font-size:14px;

    line-height:1.7;

}
.chat-messages{
    margin-top:30px;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.user-message{
    background:#2563eb;
    color:#fff;
    padding:15px;
    border-radius:12px;
    max-width:80%;
    margin-left:auto;
}

.bot-message{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    padding:18px;
    border-radius:12px;
    max-width:90%;
}

.feedback-buttons{
    margin-top:15px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
/* Mobile */

@media(max-width:600px){

    .chatbot-page {
        padding:15px;
    }

    .chatbot-card {
        padding:20px;
    }
    .chatbot-header h1 {
        font-size:25px;
    }

    .feedback-buttons button {
        width:100%;
        flex:auto;
    }

}