* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 100vh;
}

.chat-container {
    width: 600px;
    height: 700px;

    background: white;
    border-radius: 12px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chat-header {
    padding: 20px;
    background: #222;
    color: white;
}

.chat-header h1 {
    font-size: 22px;
}

.chat-header p {
    margin-top: 5px;
    font-size: 14px;
    color: #ccc;
}

.chat-box {
    flex: 1;
    padding: 20px;

    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 75%;
    padding: 12px 15px;

    border-radius: 10px;

    line-height: 1.5;
}

.user {
    align-self: flex-end;
    background: #222;
    color: white;
}

.bot {
    align-self: flex-start;
    background: #e9e9e9;
    color: #222;
}

.input-area {
    display: flex;

    padding: 15px;
    border-top: 1px solid #ddd;

    gap: 10px;
}

#question {
    flex: 1;

    padding: 12px;

    border: 1px solid #ccc;
    border-radius: 8px;

    font-size: 15px;

    outline: none;
}

#question:focus {
    border-color: #222;
}

#send-btn {
    padding: 12px 20px;

    border: none;
    border-radius: 8px;

    background: #222;
    color: white;

    cursor: pointer;
}

#send-btn:hover {
    background: #444;
}

#send-btn:disabled {
    background: #999;
    cursor: not-allowed;
}