/* Chat Container */
.chat-container {
    max-width: 420px;
    margin: 40px auto;
    background: #fdfdfd;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    min-height: 540px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.chat-header {
    background: linear-gradient(90deg, #007bff 60%, #3a8dde 100%);
    color: #fff;
    border-radius: 18px 18px 0 0;
    padding: 20px 28px 10px 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 22px 18px;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.msg {
    max-width: 82%;
    padding: 13px 18px;
    border-radius: 18px;
    font-size: 1.05rem;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    line-height: 1.5;
    transition: background 0.2s;
}

.msg.user {
    align-self: flex-end;
    background: linear-gradient(90deg, #007bff 80%, #3a8dde 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
}

.msg.bot {
    align-self: flex-start;
    background: #e9ecef;
    color: #222;
    border-bottom-left-radius: 6px;
    border-top-left-radius: 6px;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid #e5e7eb;
    padding: 14px 16px;
    background: #fafbfc;
    border-radius: 0 0 18px 18px;
}

.chat-input-area input {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    background: #f1f3f5;
    margin-right: 8px;
    outline: none;
    transition: box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.chat-input-area input:focus {
    box-shadow: 0 0 0 2px #007bff33;
    background: #fff;
}

.chat-input-area button {
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 1.3rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.chat-input-area button:active, .chat-input-area button:hover {
    background: #0056b3;
}

.chat-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .chat-container {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        margin: 0;
        border: none;
    }
    .chat-header {
        border-radius: 0;
    }
    .chat-input-area {
        border-radius: 0 0 0 0;
    }
}