/* --- VARIÁVEIS E RESET --- */
:root {
    --primary: #1b5e20;       /* Verde Institucional */
    --primary-light: #2e7d32;
    --primary-dark: #113d14;
    --secondary: #d4af37;     /* Dourado */
    --bg-body: #f4f6f9;       /* Fundo cinza azulado moderno */
    --bg-card: #ffffff;
    --text-main: #2c3e50;
    --text-light: #6c757d;
    --radius: 8px;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Open Sans', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.5; font-size: 0.95rem; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--primary); margin-bottom: 15px; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- COMPONENTES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Botões Gerais */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; border: none; transition: all 0.2s; text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); color: white; background: var(--secondary);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); filter: brightness(1.1); }
.btn-green { background: var(--primary); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Botão Pequeno (Icon Only) */
.btn-icon {
    width: 38px; height: 38px; padding: 0; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* --- ADMIN LAYOUT --- */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; background: #1a1c23; color: #fff; padding: 20px;
    position: fixed; height: 100%; z-index: 100;
}
.admin-content { flex: 1; margin-left: 250px; padding: 30px; }

/* Sidebar Menu */
.sidebar-brand { font-size: 1.1rem; font-weight: 800; margin-bottom: 40px; color: var(--secondary); display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-menu a {
    display: flex; align-items: center; padding: 12px 15px; color: #a0aec0;
    border-radius: 8px; margin-bottom: 8px; transition: 0.3s; font-weight: 600; font-size: 0.9rem;
}
.sidebar-menu a i { width: 25px; text-align: center; margin-right: 10px; font-size: 1.1rem; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: rgba(255,255,255,0.1); color: white; }

/* Cards de Estatística */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 20px; border-left: 4px solid transparent; }
.stat-info h3 { font-size: 2rem; margin: 0; color: var(--text-main); line-height: 1; }
.stat-info p { margin: 0; color: var(--text-light); font-size: 0.85rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }

/* --- TABELA REFINADA --- */
.table-responsive { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { 
    background: #f8f9fa; padding: 15px 20px; text-align: left; 
    font-weight: 700; color: #555; border-bottom: 2px solid #eee; font-size: 0.85rem; text-transform: uppercase;
}
.data-table td { 
    padding: 15px 20px; border-bottom: 1px solid #f0f0f0; 
    vertical-align: middle; font-size: 0.9rem; color: #444;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #fafafa; }

/* Elementos da Tabela */
.user-info strong { color: var(--primary); display: block; font-size: 1rem; }
.user-info small { color: #888; font-size: 0.85rem; }
.pref-tag {
    display: inline-block; background: #fff8e1; color: #f57c00; 
    padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; border: 1px solid #ffe0b2;
}
.status-badge {
    padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-pendente { background: #fff3cd; color: #856404; }
.badge-aprovado { background: #d4edda; color: #155724; }

/* Formulário de Seleção na Tabela */
.select-turma {
    padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; 
    font-size: 0.9rem; width: 220px; color: #444; background: white;
}
.select-turma:focus { border-color: var(--primary); outline: none; }