﻿.chat .chat-wrapper {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 85vh;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

.chat .chat-header {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: #1e3a8a;
}

.chat .bot-avatar {
    font-size: 30px;
    margin-right: 15px;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.chat .header-info h5 {
    margin: 0;
    font-weight: 700;
}

.chat .chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat .message-row {
    display: flex;
    width: 100%;
}

    .chat .message-row.bot {
        justify-content: flex-start;
    }

    .chat .message-row.user {
        justify-content: flex-end;
    }

.chat .message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}

.chat .bot .message-bubble {
    background: #e8f5e9;
    color: #2e7d32;
    border-bottom-left-radius: 2px;
}

.chat .user .message-bubble {
    background: #2563eb;
    color: white;
    border-bottom-right-radius: 2px;
}

.chat .options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chat .btn-opt {
    background: white;
    border: 1px solid #4ade80;
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

    .chat .btn-opt:hover {
        background: #4ade80;
        color: white;
    }

.chat .chat-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

    .chat .chat-input-area input {
        flex: 1;
        border: 1px solid #e5e7eb;
        padding: 12px 18px;
        border-radius: 25px;
        outline: none;
    }

.chat .btn-send {
    background: #2563eb;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
}

.chat .typing {
    font-style: italic;
    opacity: 0.7;
}

.chat .btn-reset {
    margin-left: auto;
    background: rgba(255,255,255,0.3);
    border: none;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #1e3a8a;
}
