/* TEMA FEDERAL MINIMALISTA - MOBILE FIRST */
:root {
    --fed-blue: #1351b4;
    --fed-blue-dark: #0c326f;
    --fed-bg: #ffffff;
    --fed-card-bg: #f8f9fa;
    --fed-text: #1f2937;
    --fed-subtext: #6b7280;
    --fed-border: #e5e7eb;
    --fed-accent: #2563eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--fed-bg);
    color: var(--fed-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 75px;
}

/* Cabeçalho Limpo */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--fed-border);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--fed-blue-dark);
}

.brand i { color: var(--fed-blue); font-size: 1.2rem; }

.user-tag {
    font-size: 0.78rem;
    background: #eff6ff;
    color: var(--fed-blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Áreas Principais */
.app-container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fed-text);
    margin-bottom: 4px;
}

.page-desc {
    font-size: 0.85rem;
    color: var(--fed-subtext);
    margin-bottom: 20px;
}

/* Área de Upload Clean */
.clean-upload {
    background: var(--fed-card-bg);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.clean-upload:active { background: #f1f5f9; }
.clean-upload i { font-size: 2.2rem; color: var(--fed-blue); margin-bottom: 10px; }
.clean-upload p { font-size: 0.9rem; font-weight: 600; color: var(--fed-text); }
.clean-upload span { font-size: 0.75rem; color: var(--fed-subtext); display: block; margin-top: 4px; }

/* Botões do App */
.btn-federal {
    width: 100%;
    height: 50px;
    background: var(--fed-blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 16px;
}

.btn-federal:active { background: var(--fed-blue-dark); }

/* Bloco de Resultado */
.result-card {
    background: var(--fed-card-bg);
    border: 1px solid var(--fed-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--fed-text);
}

/* Chat Minimalista */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 380px;
    background: var(--fed-card-bg);
    border: 1px solid var(--fed-border);
    border-radius: 12px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.msg.ia {
    background: #ffffff;
    border: 1px solid var(--fed-border);
    color: var(--fed-text);
    align-self: flex-start;
}

.msg.user {
    background: var(--fed-blue);
    color: #ffffff;
    align-self: flex-end;
}

.chat-bar {
    display: flex;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid var(--fed-border);
    gap: 8px;
}

.chat-bar input {
    flex: 1;
    border: 1px solid var(--fed-border);
    border-radius: 20px;
    padding: 0 14px;
    font-size: 0.88rem;
    outline: none;
    height: 42px;
}

.chat-bar button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--fed-blue);
    color: white;
    border: none;
    cursor: pointer;
}

/* Menu de Navegação Inferior (Estilo App) */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--fed-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 200;
}

.nav-bottom button {
    background: transparent;
    border: none;
    color: var(--fed-subtext);
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    cursor: pointer;
}

.nav-bottom button i { font-size: 1.25rem; }

.nav-bottom button.active {
    color: var(--fed-blue);
    font-weight: 700;
}
