:root {
    --primary-color: #2980b9;
    --dark-bg: #2d3436;
    --text-light: #dfe6e9;
    --text-muted: #b2bec3;
    --transition: all 0.3s ease;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

body { 
    background-color: #f8f9fa;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garante que o corpo ocupe no mínimo a altura total da tela */
}

/* Header Container */
.header-tpe {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-tpe {
    background-color: var(--dark-bg);
    padding: 0.75rem 0;
    border-bottom: 4px solid var(--primary-color); /* Referência ao quadrado azul da imagem */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Branding (Lado Esquerdo) */
.navbar-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 50px;
    border-radius: 4px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-subtitle {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* User Area (Lado Direito) */
.navbar-user-control {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.user-info-text {
    display: flex;
    flex-direction: column;
}

.user-welcome {
    font-size: 0.7rem;
    color: var(--text-light);
}

.user-name {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}



/* Logout Button */
.btn-logout-modern {
    background: rgba(255, 118, 117, 0.1);
    color: #ff7675;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

/* Ajuste Responsivo */
@media (max-width: 576px) {
    .user-info-text { display: none; }
    .brand-title { font-size: 1.1rem; }
}

.main-content {
    /* O flex-grow: 1 faz esta div "esticar" para preencher todo o espaço vazio,
       empurrando o rodapé para baixo automaticamente */
    flex: 1; 
    display: flex;
    flex-direction: column;
    /* Se for a tela de login, isso ajuda a manter o card no centro */
    justify-content: center; 
    
}

.container-center {
    max-width: 1200px; /* Largura máxima que o conteúdo atingirá */
    min-height: 600px;
    width: 100%;       /* Ocupa 100% em telas menores que 1200px (responsivo) */
    height: 100%;  
    margin-left: auto; /* Margem automática na esquerda */
    margin-right: auto;/* Margem automática na direita */
    padding: 0 20px;   /* Respiro lateral para não encostar na borda em celulares */
    background-color: #f0f0f0;
}

/* --- Melhorias no Footer --- */
.footer-tpe {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0 1.5rem;
    margin-top: 0; /* Removido o margin-top de 50px para não criar buracos */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.footer-brand strong {
    color: white;
}

.footer-info p {
    margin: 0;
    font-size: 0.95rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem !important;
    margin-top: 4px !important;
}

/* Linha divisória sutil */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    margin: 1.5rem 0;
}

/* Aviso Legal */
.footer-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.8;
}

/* Ajuste Responsivo para o Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}