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

body {
    font-family: Arial, sans-serif;
    background: #f2f4f7;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container {
    width: 600px;
    height: 750px;
    max-width: 95vw;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #2563eb;
    color: white;
    padding: 25px;
    text-align: center;
}

.chat-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.chat-header p {
    font-size: 14px;
}

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 15px;
    word-wrap: break-word;
}

.bot {
    background: #f1f5f9;
    color: #111827;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user {
    background: #2563eb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
    gap: 10px;
}

.input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.input-area input:focus {
    border-color: #2563eb;
}

.input-area button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-size: 15px;
}

.input-area button:hover {
    background: #1d4ed8;
}

.typing {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing span {
    width: 7px;
    height: 7px;
    background: #666;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0.3;
    }

    40% {
        opacity: 1;
    }
}

.button-group {
    display: flex;
    gap: 8px;
}

.clear-btn {
    background: #6b7280 !important;
}

.clear-btn:hover {
    background: #4b5563 !important;
}

@media (max-width: 600px) {
    .chat-container {
        width: 95vw;
        height: 90vh;
    }

    .message {
        max-width: 85%;
    }

    .button-group {
        gap: 5px;
    }

    .input-area button {
        padding: 12px 14px;
    }
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 5px;
}

.suggestions {
    display: flex;
    gap: 8px;
    padding: 8px 15px;
    overflow-x: auto;
}

.suggestions button {
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: white;
    color: #2563eb;
    cursor: pointer;
    font-size: 13px;
}

.suggestions button:hover {
    background: #eff6ff;
}