/* Estilos Base - PWA Arte USV */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 700;
}

header h2 {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
    margin-top: 4px;
}

#app-container {
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.hidden {
    display: none !important;
}

/* Formulário de Acesso */
#auth-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

#auth-section input {
    padding: 12px 16px;
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

#auth-section button, .input-controls button {
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

#auth-section button:hover, .input-controls button:hover {
    background-color: #1d4ed8;
}

/* Área de Conversa e Análise */
#tutor-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-box {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    padding: 18px;
    border-radius: 8px;
    background-color: #fafafa;
    line-height: 1.6;
}

.input-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-controls textarea {
    width: 100%;
    height: 90px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: none;
    font-size: 1rem;
}

.error-msg {
    color: #dc2626;
    font-size: 0.9rem;
}