﻿

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #f9efe2 0%, #f5e1c8 100%);
    font-family: 'Segoe UI', 'Georgia', 'Times New Roman', serif;
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0px;
    background-attachment: fixed;
}

.naani-app {
    max-width: 100%;
    width: 100%;
    background: #fffaf3;
   /* border-radius: 48px 48px 36px 36px;*/
    box-shadow: 0 30px 50px rgba(140, 90, 40, 0.2), inset 0 2px 8px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(210, 160, 110, 0.3);
    height: 90vh;
    max-height: 800px;
    position: relative;
}

.naani-header {
    padding: 20px 20px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(to bottom, #fff5e9, #fffaf3);
    border-bottom: 1px solid #eddcc9;
}

.naani-avatar {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #f7d9aa, #c68b5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 8px 14px rgba(160, 100, 40, 0.25);
    border: 2px solid #ffe0b5;
    color: #4b2e1a;
    animation: gentlePulse 3s ease-in-out infinite;
}
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}
.naani-info {
    flex: 1;
}

.naani-name {
    font-size: 28px;
    font-weight: 600;
    color: #5c3b1f;
    font-family: 'Georgia', serif;
}

.naani-status {
    font-size: 14px;
    color: #7b5e42;
    background: #ffefdb;
    padding: 4px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 4px;
    font-style: italic;
}

.voice-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #b48b5a;
    margin-top: 2px;
}

.voice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s;
}

    .voice-dot.active {
        background: #e74c3c;
        animation: pulse 1s infinite;
    }

    .voice-dot.speaking {
        background: #27ae60;
        animation: pulse 0.8s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff9f2;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: fadeInUp 0.3s ease;
}

.user-message {
    align-self: flex-end;
    align-items: flex-end;
}

.naani-message {
    align-self: flex-start;
    align-items: flex-start;
}

.bubble {
    padding: 14px 18px;
    border-radius: 28px 28px 28px 8px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(120, 70, 30, 0.08);
    font-size: 16px;
    line-height: 1.45;
    color: #3e2e1f;
    word-wrap: break-word;
    border: 1px solid #f3e1ca;
    position: relative;
}

.user-message .bubble {
    background: #ffead4;
    border-radius: 28px 28px 8px 28px;
    border: 1px solid #f5cba0;
}

.naani-message .bubble {
    background: #fff7ed;
    border-radius: 28px 28px 28px 8px;
    border: 1px solid #efd8bb;
}

.message-sender {
    font-size: 12px;
    font-weight: bold;
    margin: 4px 8px 2px;
    color: #b48b5a;
}

.suggestions-panel {
    padding: 12px 18px 8px;
    background: #fff7ef;
    border-top: 1px dashed #e7cfb0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.chip {
    background: #fff2e4;
    border: 1px solid #dfb68b;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    color: #5a3b22;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(160, 110, 50, 0.1);
    flex: 0 0 auto;
}

    .chip:hover {
        background: #f3d5b5;
        border-color: #c28a4a;
        transform: translateY(-2px);
    }

.input-area {
    display: flex;
    padding: 14px 18px 20px;
    gap: 10px;
    background: #fffaf4;
    border-top: 1px solid #edd7bc;
    align-items: center;
}

.mic-btn {
    background: #f0d9c0;
    border: 1px solid #d4a97a;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
    color: #6b4226;
    flex-shrink: 0;
}

    .mic-btn.recording {
        background: #e74c3c;
        color: white;
        border-color: #c0392b;
        animation: pulse 1.2s infinite;
    }
.mic-btn:hover {
    transform: scale(1.1);
}
.input-field {
    flex: 1;
    background: #fffbf6;
    border: 1px solid #ddc0a0;
    border-radius: 36px;
    padding: 14px 20px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    color: #3b2c1c;
    transition: 0.2s;
}

    .input-field:focus {
        border-color: #c7915c;
        box-shadow: 0 0 0 3px rgba(210, 140, 70, 0.2);
    }

.send-btn {
    background: #b57a4a;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 6px 14px rgba(150, 90, 30, 0.3);
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

    .send-btn:hover {
        background: #9e6b3e;
        transform: scale(1.1);
    }

.admin-link {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(180, 130, 80, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #6b4226;
    cursor: pointer;
    border: 1px solid #d4a97a;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-window::-webkit-scrollbar {
    width: 6px;
}

.chat-window::-webkit-scrollbar-track {
    background: #f7ede1;
}

.chat-window::-webkit-scrollbar-thumb {
    background: #d6b692;
    border-radius: 10px;
}

.interim-text {
    font-style: italic;
    color: #999;
    padding: 8px;
    font-size: 14px;
}

