/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== PÁGINA DE LOGIN ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a8a;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.login-header p {
    color: #6c757d;
    font-size: 1rem;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-card input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
    text-align: center;
}

.login-footer p {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

/* ========== INFO DO USUÁRIO ========== */
.user-info {
    padding: 15px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.user-name {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.user-name i {
    margin-right: 8px;
}

.user-school {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.user-school i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.user-type {
    margin-top: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-professor {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-gestor {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* ========== BOTÃO DE LOGOUT ========== */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.btn-logout {
    width: fit-content;
    padding: 6px 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.btn-logout i {
    font-size: 0.9rem;
}

/* ========== ABA APRESENTAÇÃO ========== */
.presentation-content {
    text-align: justify;
    line-height: 1.8;
}

.presentation-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.8;
}

.presentation-text strong {
    color: #667eea;
    font-weight: 600;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.objective-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.objective-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.objective-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.objective-item h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.objective-item p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.developer-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.developer-card {
    max-width: 600px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.developer-card i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: white;
}

.developer-card h4 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.role {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.details {
    font-size: 1rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.bio strong {
    color: #fee140;
}

.acknowledgment {
    text-align: center;
    padding: 20px;
}

/* ========== ABA MANUAL ========== */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.user-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.profile-card {
    padding: 25px;
    background: white;
    border-radius: 12px;
    border-top: 4px solid #667eea;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.profile-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.admin-profile {
    border-top-color: #dc3545;
}

.admin-profile i {
    color: #dc3545;
}

.gestor-profile {
    border-top-color: #28a745;
}

.gestor-profile i {
    color: #28a745;
}

.professor-profile {
    border-top-color: #ffc107;
}

.professor-profile i {
    color: #ffc107;
}

.profile-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.profile-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-card li {
    color: #6c757d;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.profile-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.tip-item i {
    font-size: 1.5rem;
    color: #ffc107;
    flex-shrink: 0;
}

.tip-item > div {
    color: #856404;
    line-height: 1.6;
}

.tip-item strong {
    color: #856404;
    font-weight: 600;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* For Firefox */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 20px;
}

.nav-link:hover {
    background: #34495e;
    color: white;
}

.nav-link.active {
    background: #34495e;
    color: white;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.nav-link span {
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: #f8f9fa;
    min-height: 100vh;
}

.tab-content {
    display: none;
}

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

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.content-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.1rem;
}

.card-icon.blue {
    background: #3498db;
}

.card-icon.green {
    background: #27ae60;
}

.card-icon.orange {
    background: #f39c12;
}

.card-icon.red {
    background: #e74c3c;
}

.card-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 25px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
}

.text-muted {
    color: #6c757d;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Data Stats */
.data-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Alunos Container */
.alunos-container {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    background: white;
}

.aluno-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.aluno-item:hover {
    background: #f8f9fa;
}

.aluno-item:last-child {
    border-bottom: none;
}

.aluno-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.aluno-info {
    flex: 1;
}

.aluno-nome {
    font-weight: 600;
    color: #333;
}

.aluno-detalhes {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

/* Gabarito Form */
.gabarito-questao {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.gabarito-questao:hover {
    border-color: #667eea;
}

.questao-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.questao-numero {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.questao-opcoes {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.opcao-resposta {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    justify-content: center;
}

.opcao-resposta:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.opcao-resposta.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.opcao-resposta input {
    margin-right: 8px;
}

.descritor-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Valor da questão (pontos) - exibido em cada questão do gabarito */
.gabarito-valor-questao {
    margin-top: 15px;
    padding: 12px 14px;
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    max-width: 180px;
}
.gabarito-valor-questao label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #3730a3;
    font-size: 0.9rem;
}
.gabarito-valor-questao input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #818cf8;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
}
.gabarito-valor-questao input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

/* Seletor de descritor com abas (Matriz 2001 / 2018) */
.descritor-picker-wrapper {
    position: relative;
    width: 100%;
}
.descritor-picker-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.descritor-picker-display {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    min-height: 42px;
    cursor: pointer;
}
.descritor-picker-display.placeholder {
    color: #888;
}
.descritor-picker-btn {
    padding: 0 12px;
    background: #f0f2f5;
    border: none;
    border-left: 1px solid #e1e5e9;
    cursor: pointer;
    color: #555;
    font-size: 0.8rem;
}
.descritor-picker-btn:hover {
    background: #e1e5e9;
}
.descritor-picker-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 12px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
}
.descritor-picker-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.descritor-tab {
    padding: 8px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 0.9rem;
}
.descritor-tab:hover {
    background: #e9ecef;
}
.descritor-tab.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}
.descritor-picker-tab-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.descritor-picker-tab-content select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
}
.descritor-picker-tab-content select optgroup {
    font-weight: 700;
    color: #333;
}
.descritor-picker-hint {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #666;
}

/* Correção Form */
.correcao-aluno {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.aluno-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.aluno-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.aluno-dados h3 {
    color: #333;
    margin-bottom: 5px;
}

.aluno-dados p {
    color: #666;
    font-size: 0.9rem;
}

.respostas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
}

.resposta-item {
    text-align: center;
}

.resposta-numero {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
    font-weight: 600;
}

.resposta-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.resposta-btn {
    min-width: 32px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 2px solid #e1e5e9;
    background: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    transition: all 0.2s ease;
}

.resposta-btn:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.resposta-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: #ffffff;
}

/* Status */
.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #666;
    font-size: 1.1rem;
}

/* Modal genérico (seleção de gabarito, detalhes de descritor, etc.) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #111827;
}

.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0 4px;
}

.close-btn:hover {
    color: #111827;
}

/* Turmas List */
.turmas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.turma-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.turma-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.turma-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.turma-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.turma-info h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.turma-info p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.turma-info p strong {
    color: #2c3e50;
    font-weight: 600;
}

.turma-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.turma-stat {
    text-align: center;
}

.turma-stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.turma-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

/* Turma Actions */
.turma-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.btn-delete:hover {
    background: #c0392b;
    opacity: 1;
    transform: scale(1.1);
}

.btn-delete i {
    font-size: 0.9rem;
}

/* Alunos Selecionados */
.alunos-selecionados {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.alunos-selecionados h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.alunos-lista {
    max-height: 200px;
    overflow-y: auto;
}

.alunos-lista .aluno-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.alunos-lista .aluno-item:last-child {
    border-bottom: none;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    margin-bottom: 15px;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Correção Form */
.correcao-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.correcao-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.correcao-header p {
    color: #666;
    margin-bottom: 5px;
}

.correcao-aluno {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.correcao-aluno:hover {
    border-color: #28a745;
}

.aluno-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.aluno-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.aluno-dados h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.aluno-dados p {
    color: #666;
    font-size: 0.9rem;
}

.respostas-container {
    margin-top: 15px;
}

.respostas-container h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.respostas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.resposta-item {
    text-align: center;
}

.resposta-numero {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.resposta-input {
    width: 100%;
    padding: 8px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    cursor: pointer;
}

.resposta-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.resposta-input:valid {
    border-color: #28a745;
}

.resposta-input option {
    text-align: center;
    font-weight: bold;
}

/* ========== COLLAPSE ESCOLAS ========== */
.card-header-collapsible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.card-header-collapsible:hover {
    background: #f0f4f8;
    border-radius: 12px 12px 0 0;
}

.btn-collapse {
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-collapse:hover {
    background: rgba(102, 126, 234, 0.1);
}

.btn-collapse i {
    transition: transform 0.3s ease;
}

.btn-collapse i.rotated {
    transform: rotate(180deg);
}

.badge-count {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 6px;
    vertical-align: middle;
}

.card-body-collapsible {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.card-body-collapsible.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* ========== ABA ADMIN ========== */
.escolas-list, .usuarios-list {
    display: grid;
    gap: 15px;
}

.escola-item, .usuario-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.escola-item:hover, .usuario-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.escola-info, .usuario-info {
    flex: 1;
}

.escola-nome, .usuario-nome {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.escola-detalhes, .usuario-detalhes {
    font-size: 0.9rem;
    color: #6c757d;
}

.usuario-tipo {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.usuario-tipo.professor {
    background: #e3f2fd;
    color: #1976d2;
}

.usuario-tipo.gestor {
    background: #f3e5f5;
    color: #7b1fa2;
}

.escola-actions, .usuario-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: none;
}

.btn-warning:hover {
    background: #e0a800;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tab {
        border-bottom: 1px solid #eee;
    }
    
    .data-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .questao-opcoes {
        flex-wrap: wrap;
    }
    
    .respostas-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    }
    
    .turmas-list {
        grid-template-columns: 1fr;
    }
}

/* Status do aluno */
.aluno-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.status-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin: 0;
}

.status-select {
    padding: 6px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: white;
    transition: all 0.3s ease;
    min-width: 120px;
}

.status-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.status-select:hover {
    border-color: #007bff;
    cursor: pointer;
}

/* Status específicos */
.status-select option[value="presente"] {
    color: #28a745;
}

.status-select option[value="ausente"] {
    color: #ffc107;
}

.status-select option[value="transferido"] {
    color: #6c757d;
}

/* Container de respostas com status */
.respostas-container.ausente {
    opacity: 0.6;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
}

.respostas-container.transferido {
    display: none;
}

.respostas-container.presente {
    opacity: 1;
    background-color: transparent;
}

/* Comportamento dos botões de resposta conforme o status */
.respostas-container.ausente .resposta-btn {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.respostas-container.transferido .resposta-btn {
    pointer-events: none;
}

/* Campos desabilitados */
.resposta-input:disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    border-color: #dee2e6 !important;
}

.resposta-input:disabled:hover {
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-area.dragover {
    border-color: #28a745;
    background-color: #d4edda;
}

.upload-content i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 16px;
}

.upload-content p {
    margin: 16px 0;
    color: #6c757d;
    font-size: 16px;
}

.file-info {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.file-info h4 {
    color: #495057;
    margin-bottom: 10px;
}

.file-info p {
    margin: 5px 0;
    color: #6c757d;
}

.preview-data {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.preview-data h4 {
    color: #495057;
    margin-bottom: 15px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.preview-table th,
.preview-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

.preview-table th {
    background-color: #e9ecef;
    font-weight: 600;
}

.preview-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Card icon orange */
.card-icon.orange {
    background-color: #fd7e14;
}

/* Estilos para sistema de cadastro */
.estudantes-container {
    margin: 20px 0;
}

.estudante-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.estudante-item:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.estudante-item .form-group {
    flex: 1;
    margin: 0;
}

.estudante-item .form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.estudante-item .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.estudante-item .btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.estudante-item .btn-remove:hover {
    background: #c82333;
    opacity: 1;
}

.registros-list {
    display: grid;
    gap: 20px;
}

.registro-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.registro-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.registro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.registro-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.registro-id {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.registro-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 5px;
}

.info-value {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

.estudantes-list {
    margin-top: 15px;
}

.estudantes-list h4 {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
}

.estudante-nome {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #495057;
}

.btn-remove-registro {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-remove-registro:hover {
    background: #c82333;
}

/* Estilos para lista de gabaritos */
.gabaritos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gabarito-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.gabarito-card:hover {
    background: #e9ecef;
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gabarito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gabarito-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.gabarito-id {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.gabarito-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.gabarito-info .info-item {
    display: flex;
    flex-direction: column;
}

.gabarito-info .info-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 5px;
}

.gabarito-info .info-value {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

.gabarito-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-edit-gabarito {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-edit-gabarito:hover {
    background: #0056b3;
}

.btn-delete-gabarito {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-delete-gabarito:hover {
    background: #c82333;
}

/* Gabaritos Corrigidos */
.gabarito-corrigido-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gabarito-corrigido-card:hover {
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1);
}

.gabarito-corrigido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.gabarito-corrigido-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.gabarito-corrigido-id {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.gabarito-corrigido-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gabarito-corrigido-info .info-item {
    display: flex;
    flex-direction: column;
}

.gabarito-corrigido-info .info-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 5px;
}

.gabarito-corrigido-info .info-value {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

.gabarito-corrigido-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-box.presente {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.stat-box.ausente {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-box.transferido {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.stat-box.media {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-box.percentual {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gabarito-corrigido-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e1e5e9;
}

.btn-ver-detalhes {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ver-detalhes:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-ver-detalhes i {
    font-size: 1rem;
}

/* ========== ESTILOS PARA ANÁLISE ========== */

/* Tooltip Global */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    max-width: 300px;
    white-space: normal;
    text-align: center;
}

[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
    z-index: 10001;
}

/* Analise Wrapper */
.analise-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Analise Header */
.analise-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.analise-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.analise-header h3 i {
    color: #3498db;
    margin-right: 10px;
}

.analise-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.analise-info span {
    font-size: 0.95rem;
    color: #6c757d;
}

.analise-info strong {
    color: #2c3e50;
}

/* Analise Section */
.analise-section {
    margin-bottom: 40px;
}

.analise-section h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analise-section h4 i {
    color: #3498db;
}

/* Collapsible Section */
.collapsible-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.collapsible-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.collapsible-header {
    padding: 20px;
    cursor: pointer;
    user-select: none;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background: #f3f4f6;
}

.collapsible-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
}

.collapsible-header h4 i:first-child {
    color: #3498db;
    margin-right: 10px;
}

.collapsible-arrow {
    color: #6b7280;
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.collapsible-section.expanded .collapsible-arrow {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.collapsible-section.expanded .collapsible-content {
    max-height: 10000px;
    padding: 20px;
}

/* Ajuste para tabela responsiva dentro do collapsible */
.collapsible-content .table-responsive {
    overflow-x: auto;
}

/* Stats Grid (para análise) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.geral::before {
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
}

.stat-card.presente::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.stat-card.ausente::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.transferido::before {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
}

.stat-card.media::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card.percentual::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-card.frequencia::before {
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
}

.stat-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Campo de busca de escola (tipo pesquisa rápida) */
#escolaUsuarioBusca {
    width: 100%;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 0.9rem;
}

#escolaUsuarioBusca:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

/* Descritores Análise */
.descritores-análise {
    margin-top: 20px;
}

.descritores-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.descritor-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.descritor-panel.positivo {
    border-left: 5px solid #10b981;
}

.descritor-panel.negativo {
    border-left: 5px solid #ef4444;
}

.descritor-panel h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.descritor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.descritor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.descritor-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.descritor-rank {
    font-weight: 700;
    color: #3498db;
    min-width: 40px;
    text-align: center;
}

.descritor-info {
    flex: 1;
}

.descritor-nome {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.descritor-bar {
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
}

.descritor-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.descritor-percent {
    font-weight: 700;
    color: #2c3e50;
    min-width: 50px;
    text-align: right;
}

/* Distribuição */
.distribuicao-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.distribuicao-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.distribuicao-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.distribuicao-label {
    min-width: 120px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.distribuicao-bar {
    flex: 1;
    height: 30px;
    background: #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
}

.distribuicao-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.5s ease;
}

.distribuicao-qtd {
    min-width: 40px;
    text-align: right;
    font-weight: 700;
    color: #2c3e50;
}

/* Questões */
.questoes-container {
    display: grid;
    gap: 15px;
}

.questao-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.questao-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.questao-num {
    font-weight: 700;
    color: #3498db;
    min-width: 50px;
}

.questao-descritor {
    flex: 1;
    color: #2c3e50;
    font-size: 0.9rem;
}

.questao-bar {
    flex: 2;
    height: 20px;
    background: #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
}

.questao-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.questao-percent {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    color: #2c3e50;
}

/* Ranking */
.ranking-container {
    display: grid;
    gap: 30px;
}

.ranking-top,
.ranking-bottom {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ranking-top h5,
.ranking-bottom h5 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-students {
    display: grid;
    gap: 12px;
}

.top-student {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.top-student:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-student.gold {
    background: linear-gradient(135deg, #FFEAA7 0%, #FDCB6E 100%);
}

.top-student.silver {
    background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
}

.top-student.bronze {
    background: linear-gradient(135deg, #E8D5C4 0%, #D4A574 100%);
}

.top-rank {
    min-width: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    text-align: center;
}

.top-name {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.top-score {
    display: flex;
    gap: 15px;
    align-items: center;
}

.score-acertos {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3498db;
}

.score-percent {
    color: #6c757d;
}

.attention-students {
    display: grid;
    gap: 12px;
}

.attention-student {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff5f5;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.attention-student:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.attention-icon {
    color: #ef4444;
    font-size: 1.2rem;
}

.attention-name {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.attention-score {
    display: flex;
    gap: 15px;
    align-items: center;
}

.attention-percent {
    color: #ef4444;
    font-weight: 700;
}

.no-data {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

/* Gráficos de Ranking */
.chart-container {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-container canvas {
    max-height: 400px;
}

/* Analise Footer */
.analise-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

/* Tooltip customizado para cards grandes */
.stat-card[data-tooltip]:hover::before {
    max-width: 250px;
}

/* Responsividade */
@media (max-width: 768px) {
    .analise-wrapper {
        padding: 20px;
    }

    .analise-info {
        flex-direction: column;
        gap: 10px;
    }

    .descritores-top {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .questao-item {
        flex-wrap: wrap;
    }

    .top-student {
        flex-wrap: wrap;
    }

    .attention-student {
        flex-wrap: wrap;
    }
}