:root {
    --bg: #0f172a;
    --card: #1e293b;
    --input-bg: #0b1226;
    --user-bubble: #0891b2;
    --bot-bubble: #334155;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #22d3ee;
}
.chat-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    max-height: 800px; /* Çox hündür ekranlar üçün limit */
    background: var(--card);
    border-radius: 24px;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px #00000055;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 20px auto;
}
header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #334155;
    background: #1e293bcc;
}
.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent), #0ea5e9 60%, transparent 61%), radial-gradient(circle at 70% 70%, #34d399, #10b981 60%, transparent 61%);
    box-shadow: 0 0 0 3px #0b1324, 0 0 15px #22d3ee44;
    flex-shrink: 0;
}
.title-group {
    line-height: 1.3;
}
.title {
    font-weight: 700;
    font-size: 18px;
}
.status {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
}
.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.message {
    display: flex;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}
.bubble {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.bot-message {
    align-self: flex-start;
}
.bot-message .bubble {
    background: var(--bot-bubble);
    border-bottom-left-radius: 4px;
}
.user-message {
    align-self: flex-end;
}
.user-message .bubble {
    background: var(--user-bubble);
    color: white;
    border-bottom-right-radius: 4px;
}
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--muted);
    font-style: italic;
    font-size: 14px;
}
.typing-indicator .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--muted);
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator .dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator .dots span:nth-child(2) { animation-delay: -0.16s; }
.quick-replies {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px 10px;
    justify-content: flex-end;
}
.quick-reply {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: .2s;
}
.quick-reply:hover {
    background: #22d3ee22;
}
.input-area {
    display: flex;
    padding: 16px 20px;
    border-top: 1px solid #334155;
    gap: 10px;
}
.input-area input {
    flex-grow: 1;
    background: var(--input-bg);
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color .2s;
}
.input-area input:focus {
    border-color: var(--accent);
}
.input-area input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.input-area button {
    background: var(--user-bubble);
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}
.input-area button:hover {
    opacity: 0.9;
}
.input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobil Cihazlar üçün Responsivlik */
@media (max-width: 768px) {
    .chat-container {
        height: 100vh; /* Mobil cihazlarda tam ekran hündürlüyü */
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        border: none;
    }
    header, .input-area {
        padding: 12px 15px; /* Boşluqları azalt */
    }
    .chat-box {
        padding: 15px;
    }
    .message {
        max-width: 90%; /* Mesajların enini artır */
    }
    .bubble {
        padding: 10px 14px; /* Mesaj köpüklərini kiçilt */
    }
    .title {
        font-size: 16px;
    }
    .input-area button {
        padding: 10px;
        min-width: 48px;
        flex-shrink: 0;
        font-size: 0; /* "Göndər" mətnini gizlət */
        position: relative;
    }
    .input-area button::before {
        content: '➤'; /* Ox işarəsi əlavə et */
        font-size: 20px;
        color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}
