﻿
:root {
    --primary-blue: #1e88e5;
    --dark-blue: #1565c0;
    --light-blue: #e3f2fd;
    --accent-blue: #42a5f5;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 400px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--text-light);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .chat-header .avatar {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .chat-header .status {
        font-size: 12px;
        opacity: 0.8;
    }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--light-blue);
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background-color: white;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-message {
    background-color: var(--primary-blue);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background-color: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #bbb;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: -0.16s;
    }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input {
    display: flex;
    padding: 16px;
    background-color: white;
    border-top: 1px solid #e0e0e0;
}

    .chat-input input {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 24px;
        outline: none;
        font-size: 14px;
        transition: border-color 0.3s;
    }

        .chat-input input:focus {
            border-color: var(--primary-blue);
        }

    .chat-input button {
        background-color: var(--primary-blue);
        color: white;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        margin-left: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s;
    }

        .chat-input button:hover {
            background-color: var(--dark-blue);
        }

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.option-btn {
    background-color: white;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

    .option-btn:hover {
        background-color: var(--light-blue);
    }

.credentials-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

    .credentials-form input {
        padding: 10px 12px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
    }

    .credentials-form button {
        background-color: var(--primary-blue);
        color: white;
        border: none;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .credentials-form button:hover {
            background-color: var(--dark-blue);
        }

.status-result {
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-blue);
}

.status-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-blue);
}

.status-details {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

