/* ===========================================
   Allo-GPT Frontend Styles
   =========================================== */

/* --- Base --- */
body {
    background-color: #0f172a;
    color: #f8fafc;
    overflow: hidden;
}

/* --- Voice Circle --- */
.voice-circle {
    background: radial-gradient(circle, #334155, #1e293b);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    border-radius: 50%;
    flex-shrink: 0;
}

.voice-circle span {
    font-size: 1.5rem;
    opacity: 0.5;
}

.voice-circle.listening {
    border: 3px solid #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

.voice-circle.listening span {
    opacity: 1;
}

.voice-circle.speaking {
    border: 3px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.voice-circle.speaking span {
    opacity: 1;
}

.voice-circle.processing {
    border: 3px solid #f59e0b;
    animation: spin 1s linear infinite;
    border-top-color: transparent;
}

/* --- Animations --- */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Message Bubbles --- */
.message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 90%;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: fadeIn 0.2s ease;
}

.user-msg {
    background: #273549;
    color: #e2e8f0;
    margin-left: auto;
    border-bottom-right-radius: 2px;
    border: 1px solid #3b4759;
}

.bot-msg {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

/* --- Scrollbars --- */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #0f172a;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Log Panel --- */
.log-entry {
    white-space: pre-wrap;
    word-break: break-all;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

#logPanel {
    max-height: calc(100vh - 50px);
    overflow-y: auto;
}

/* --- Layout Transitions --- */
#leftPanel {
    transition: all 0.3s ease;
}

.collapsed {
    width: 0 !important;
    overflow: hidden;
    opacity: 0;
}