﻿:root {
    --primary-color: #00796b;
    --bg-color: #fff;
    --bot-msg-bg: #ffffff;
    --header-color: #007bff;
}

* {
    box-sizing: border-box;
}
@font-face {
    font-family: 'Poppins';
    src: url('../../admin/assets/fonts/NotoSansDevanagari.ttf') format('truetype');
}

body {
    font-family: Poppins !important;
    margin: 0;
    padding: 10px;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

:root {
    --primary-color: #00796b;
    --bg-color: #fff;
    --bot-msg-bg: #ffffff;
    --header-color: #007bff;
}

* {
    box-sizing: border-box;
}

/*body { 
        font-family: 'Noto Sans Devanagari', sans-serif; 
        margin: 0; 
        padding: 10px; 
        display: flex; 
        justify-content: center; 
        align-items: center;
        min-height: 100vh;
    }*/

/* Responsive Container with Auto Width */
/* Responsive Container with Auto Width */
.chat-container {
    width: 100%;
    max-width: 100%; /* जास्तीत जास्त रुंदी ८००px असेल, पण स्क्रीन लहान असल्यास ती ऑटोमॅटिक कमी होईल */
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 95vh;
}

.chat-header {
    background: var(--header-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: clamp(1rem, 4vw, 1.3rem); /* Responsive Font Size */
    font-weight: bold;
}

.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.msg {
    max-width: 90%;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.bot-msg {
    background: var(--bot-msg-bg);
    align-self: flex-start;
    border: 1px solid #ddd;
    border-bottom-left-radius: 2px;
    color: #333;
}

.user-msg {
    background: var(--header-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.option-btn {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
    font-size: 1rem;
    line-height: 1.4;
    width: 100%; /* बटण पूर्ण रुंदी कव्हर करेल */
}

    .option-btn:hover {
        background: var(--primary-color);
        color: white;
    }

/* Mobile Adjustments */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .chat-container {
        height: 95vh;
        border-radius: 10px;
    }

    .msg {
        max-width: 95%;
        padding: 10px 14px;
    }
}
