/* ============================================================
   SOLARA CHAT EVA v7 - Estilos principais
   ============================================================ */

.solara-chat-container {
    max-width: 800px;
    margin: 20px auto;
    background: radial-gradient(ellipse at top, #0f172a, #020617);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 16px;
    overflow: hidden;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    color: #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
}

.solara-header {
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.solara-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solara-header .icon { font-size: 1.3rem; }
.solara-header .version { font-size: 0.6rem; color: #64748b; font-weight: 400; margin-left: 4px; }

.solara-header .status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.solara-header .status-badge .dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.solara-messages {
    height: 480px;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.solara-messages::-webkit-scrollbar { width: 4px; }
.solara-messages::-webkit-scrollbar-track { background: transparent; }
.solara-messages::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }

.msg {
    max-width: 88%;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #312e81, #1e1b4b);
    border: 1px solid rgba(251, 191, 36, 0.1);
    color: #f1f5f9;
    border-bottom-right-radius: 4px;
}

.msg.bot {
    align-self: flex-start;
    background: rgba(30, 27, 75, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.05);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.msg.bot .subtext {
    color: #94a3b8;
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
}

.msg.bot .typing-indicator {
    display: flex;
    gap: 5px;
    padding: 4px 0;
}

.msg.bot .typing-indicator span {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.msg.bot .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.msg.bot .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.solara-input-area {
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(255,255,255,0.03);
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.5);
}

.solara-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 40px;
    padding: 10px 18px;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.solara-input-area input::placeholder { color: #475569; }

.solara-input-area input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.06);
}

.solara-input-area button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 40px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.solara-input-area button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.solara-commands {
    display: flex;
    gap: 6px;
    padding: 8px 20px 4px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.3);
}

.solara-commands button {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 4px 14px;
    color: #94a3b8;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.solara-commands button:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.solara-footer {
    padding: 8px 20px;
    border-top: 1px solid rgba(255,255,255,0.02);
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: #334155;
    background: rgba(15, 23, 42, 0.3);
}

/* Responsivo */
@media (max-width: 640px) {
    .solara-chat-container { border-radius: 12px; margin: 10px auto; }
    .solara-messages { height: 360px; padding: 14px 16px; }
    .solara-header h2 { font-size: 0.9rem; }
    .msg { font-size: 0.8rem; padding: 8px 12px; }
}