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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Menu Lateral */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ecf0f1;
    line-height: 1.3;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.menu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #3498db;
}

.menu-item.active {
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
}

.menu-icon {
    font-size: 1.2rem;
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    background: #f8f9fa;
    min-height: 100vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

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

/* Formulário */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

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

/* Ícones profissionais para cada seção */
.form-section:nth-child(1) h3::before {
    content: "◉";
    font-size: 1.2rem;
    color: #3498db;
}

.form-section:nth-child(2) h3::before {
    content: "◐";
    font-size: 1.2rem;
    color: #27ae60;
}

.form-section:nth-child(3) h3::before {
    content: "◑";
    font-size: 1.2rem;
    color: #e74c3c;
}

.form-section:nth-child(4) h3::before {
    content: "◒";
    font-size: 1.2rem;
    color: #f39c12;
}

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

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

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

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

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-add {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-add:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: end;
}

.input-group input {
    flex: 1;
}

.importar-lista-group {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fc;
    border-radius: 8px;
    border: 1px solid #b8d4e8;
}

.importar-lista-titulo {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.importar-lista-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.importar-lista-botoes .btn {
    margin: 0;
}

.importar-lista-dica {
    font-size: 0.85rem;
    color: #5a6c7d;
    margin: 0;
}

.btn-importar-lista {
    cursor: pointer;
    margin: 0;
}

.lista-estudantes {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.estudante-lista-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 5px;
    margin-bottom: 8px;
    border-left: 3px solid #27ae60;
}

.estudante-lista-item:last-child {
    margin-bottom: 0;
}

.estudante-lista-nome {
    font-weight: 500;
    color: #2c3e50;
}

.btn-remove {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

.btn-edit {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-1px);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

.escola-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.turma-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.turma-info {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.turma-info h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.turma-info p {
    margin: 8px 0;
    color: #2c3e50;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lista-estudantes-turma {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    max-height: 300px;
    overflow-y: auto;
}

.estudante-turma-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 5px;
    margin-bottom: 8px;
    border-left: 3px solid #27ae60;
}

.estudante-turma-item:last-child {
    margin-bottom: 0;
}

.estudante-turma-nome {
    font-weight: 500;
    color: #2c3e50;
}

.btn-incluir-excluir {
    background: linear-gradient(135deg, #10860a, #10af28);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-incluir-excluir:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(155, 89, 182, 0.3);
}

/* Registros */
.registros-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.escolas-lista {
    display: grid;
    gap: 20px;
}

.escola-card {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.escola-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

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

.escola-nome {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.escola-subtitle {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.expand-icon {
    font-size: 1.2rem;
    color: #3498db;
    margin-top: 5px;
    transition: transform 0.3s ease;
}

.escola-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.escola-info {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.escola-detalhes {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.escola-detalhes.active {
    display: block;
}

.turma-section {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.turma-info-display {
    margin-bottom: 15px;
}

.turma-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.turma-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.turma-detail-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #2c3e50;
    border-left: 3px solid #3498db;
    display: flex;
    align-items: center;
    gap: 5px;
}

.turma-header {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.turma-header::before {
    content: "🎓";
}

.estudantes-lista {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.estudante-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid #27ae60;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estudante-actions {
    display: flex;
    gap: 5px;
}

.estudante-nome {
    font-weight: 500;
    color: #2c3e50;
}

.estudante-info {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Regras - Sistema de Gamificação */
.regras-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.regras-content {
    max-width: 100%;
}

.regras-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #3498db;
}

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

.regras-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.classificacao-item {
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    border-left: 4px solid;
}

.rank-d { background: #ffebee; border-left-color: #f44336; color: #c62828; }
.rank-c { background: #fff3e0; border-left-color: #ff9800; color: #e65100; }
.rank-b { background: #e8f5e8; border-left-color: #4caf50; color: #2e7d32; }
.rank-a { background: #e3f2fd; border-left-color: #2196f3; color: #1565c0; }
.rank-s { background: #f3e5f5; border-left-color: #9c27b0; color: #6a1b9a; }
.rank-ss { background: #fff8e1; border-left-color: #ffc107; color: #f57f17; }
.rank-sss { background: #fce4ec; border-left-color: #e91e63; color: #ad1457; }

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

.criterio-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

.criterio-card ul {
    margin: 10px 0;
    padding-left: 20px;
}

.criterio-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

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

.beneficio-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #27ae60;
}

.pontuacao-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.pontuacao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e8ed;
    transition: background-color 0.3s ease;
}

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

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

.atividade {
    font-weight: 500;
    color: #2c3e50;
}

.pontos {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.pontuacao-maxima {
    text-align: center;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 8px;
}

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

.evento-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #9b59b6;
}

.evento-card ul {
    margin: 10px 0;
    padding-left: 20px;
}

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

.patente-rank {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.patente-rank h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.patente-rank p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.patentes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.patente {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #2c3e50;
    border-left: 3px solid #3498db;
}

/* Missões - Sistema de Pontuação */
.missoes-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.missoes-config-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 30px;
}

.missoes-config-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.turmas-lista h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.turmas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.turma-card-missao {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.turma-card-missao:hover {
    background: #e8f4fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.turma-card-missao h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.turma-card-missao p {
    color: #7f8c8d;
    margin: 5px 0;
    font-size: 0.9rem;
}

.pontuacao-container {
    margin-top: 30px;
}

.pontuacao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #e8f4fd;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.pontuacao-header h3 {
    color: #2c3e50;
    margin: 0;
}

.pontuacao-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pontuacao-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.pontuacao-table th {
    background: #2c3e50;
    color: white;
    padding: 15px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #34495e;
}

.pontuacao-table th:first-child {
    text-align: left;
    min-width: 150px;
}

.pontuacao-table th small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 2px;
}

.pontuacao-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e1e8ed;
    vertical-align: middle;
}

.pontuacao-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #2c3e50;
    background: #f8f9fa;
}

.pontuacao-input {
    width: 60px;
    padding: 5px 8px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.pontuacao-input:invalid {
    border-color: #e74c3c;
}

.total-cell {
    background: #2c3e50;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px;
    border-radius: 4px;
    min-width: 80px;
}

.estudante-nome {
    font-weight: 500;
    color: #2c3e50;
    padding: 10px;
}

/* Missões Resultados */
.resultados-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filtros-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.filtros-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filtro-item label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filtro-item select {
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filtro-item select:focus {
    outline: none;
    border-color: #3498db;
}

.estatisticas-section {
    margin-bottom: 30px;
}

/* Ações */
.acoes-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.acoes-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.acoes-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-gerar-link,
.btn-exportar-pdf,
.btn-exportar-excel {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-gerar-link:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-exportar-pdf {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-exportar-pdf:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-exportar-excel {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.btn-exportar-excel:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.estatisticas-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.estatisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.estatistica-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease;
}

.estatistica-card:hover {
    transform: translateY(-5px);
}

.estatistica-numero {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.estatistica-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ranking-section {
    margin-bottom: 30px;
}

.ranking-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.ranking-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ranking-header {
    display: grid;
    grid-template-columns: 60px 1fr 150px 150px 100px 120px;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.ranking-col {
    padding: 15px 10px;
    text-align: center;
    border-right: 1px solid #34495e;
}

.ranking-col:last-child {
    border-right: none;
}

.ranking-col.estudante {
    text-align: left;
}

.ranking-lista {
    max-height: 500px;
    overflow-y: auto;
}

.ranking-item {
    display: grid;
    grid-template-columns: 60px 1fr 150px 150px 100px 120px;
    border-bottom: 1px solid #e1e8ed;
    transition: background-color 0.3s ease;
}

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

.ranking-item:nth-child(odd) {
    background: #f8f9fa;
}

.ranking-item:nth-child(odd):hover {
    background: #e8f4fd;
}

.ranking-item.posicao {
    background: #3498db;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-item.posicao.ouro {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2c3e50;
}

.ranking-item.posicao.prata {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #2c3e50;
}

.ranking-item.posicao.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}

.ranking-item > div {
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.ranking-item .estudante {
    justify-content: flex-start;
    font-weight: 500;
}

.ranking-item .pontuacao {
    font-weight: 600;
    color: #2c3e50;
}

.ranking-item .patente {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.patente-d { background: #e74c3c; color: white; }
.patente-c { background: #f39c12; color: white; }
.patente-b { background: #27ae60; color: white; }
.patente-a { background: #3498db; color: white; }
.patente-s { background: #9b59b6; color: white; }
.patente-ss { background: #f1c40f; color: #2c3e50; }
.patente-sss { background: #e91e63; color: white; }

.graficos-section {
    margin-bottom: 30px;
}

.graficos-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.graficos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.grafico-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

.grafico-card.grafico-destaque {
    border: 2px solid #3498db;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.grafico-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.grafico-expandir {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grafico-card:hover .grafico-expandir {
    opacity: 1;
}

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

.grafico-card canvas {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grafico-card canvas:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.grafico-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 5px;
    color: #7f8c8d;
    font-style: italic;
}

.relatorios-section {
    margin-bottom: 30px;
}

.relatorios-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.relatorios-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Sistema de Login */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.8)), url('fundo gamificado.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: visible;
    opacity: 1;
}

.login-screen.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Garantir que a tela de login seja sempre visível quando ativa */
.login-screen[style*="display: flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

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

.login-header p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.btn-login {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-signature {
    margin-top: 30px;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #e1e8ed;
}

.login-signature p {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.login-info p {
    margin: 5px 0;
}

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

.login-footer p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.link-cadastro {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-cadastro:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Admin Panel */
.admin-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.admin-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.usuario-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.usuario-form h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

/* Estilos para Configuração de Missões */
.missoes-config-lista {
    margin-top: 20px;
}

.missoes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.missao-item-config {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

.missao-config-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.missao-config-row .form-group {
    margin-bottom: 0;
}

.missao-config-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.missao-config-row input[type="text"],
.missao-config-row input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.missao-config-row input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

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

.usuarios-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.usuario-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr auto;
    padding: 15px 20px;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    gap: 15px;
    align-items: center;
}

.usuario-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr auto;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e8ed;
    align-items: center;
    gap: 15px;
}

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

.usuario-item:nth-child(odd) {
    background: #f8f9fa;
}

.usuario-item:hover {
    background: #e8f4fd;
}

.usuario-nome {
    font-weight: 500;
    color: #2c3e50;
}

.usuario-cpf {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.usuario-email {
    color: #2c3e50;
    font-size: 0.9rem;
}

.usuario-tipo {
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

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

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

.usuario-senha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.senha-texto {
    color: #2c3e50;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    min-width: 80px;
}

.btn-toggle-senha {
    background: transparent;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-senha:hover {
    background: #ecf0f1;
    border-color: #3498db;
    transform: scale(1.1);
}

.usuario-acoes {
    display: flex;
    gap: 5px;
}

.btn-edit, .btn-delete, .btn-reset {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-reset {
    background: #f39c12;
    color: white;
}

.btn-edit:hover, .btn-delete:hover, .btn-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.stat-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.config-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-warning {
    background: #f39c12;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Apresentação */
.apresentacao-header {
    text-align: center;
    margin-bottom: 30px;
}

.apresentacao-header h1 {
    text-align: center;
}

.apresentacao-header p {
    text-align: center;
}

.apresentacao-container {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.apresentacao-content {
    line-height: 1.6;
}

.apresentacao-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e8ed;
}

.apresentacao-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.apresentacao-section p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
}

.desenvolvedores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.desenvolvedor-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desenvolvedor-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.cargo {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

.desenvolvedor-info p {
    margin-bottom: 10px;
    color: #555;
}

.historia-timeline {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.timeline-marker {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.timeline-content {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.timeline-content h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;
    margin: 0;
}

.objetivos-lista {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.objetivos-lista li {
    background: #f8f9fa;
    padding: 15px 15px 15px 30px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    font-size: 0.95rem;
    color: #555;
    list-style: none;
    position: relative;
}

.objetivos-lista li:before {
    content: "•";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 15px;
    top: 15px;
}

.objetivos-lista li:last-child {
    margin-bottom: 0;
}

.parceria-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.parceria-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.parceria-item h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.parceria-item p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsividade para Apresentação */
@media (max-width: 768px) {
    .desenvolvedores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-marker {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .apresentacao-container {
        padding: 20px;
    }
    
    .parceria-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Ajustes para telas maiores - Apresentação */
@media (min-width: 1200px) {
    .apresentacao-container {
        max-width: 1600px;
        padding: 40px 30px;
    }
}

/* Estilos para Modais de Gráficos */
.modal-grafico {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content-grafico {
    background-color: #fff;
    margin: 2% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-in-out;
}

.modal-content-grafico h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    text-align: center;
    font-size: 1.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-content-grafico canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .classificacao-grid,
    .criterios-grid,
    .beneficios-grid,
    .eventos-grid,
    .patentes-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container {
        flex-direction: column;
    }
}

/* Estilos para a seção Manual */
.manual-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.manual-content {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.manual-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
}

.manual-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.manual-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.manual-section h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

.manual-section h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.manual-subsection {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.manual-highlight {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.manual-highlight h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

.step-number {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step-content p {
    color: #555;
    line-height: 1.6;
}

.manual-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #f39c12;
}

.manual-tip strong {
    color: #d68910;
}

.pontuacao-manual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.pontuacao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #27ae60;
}

.pontuacao-item .atividade {
    font-weight: 600;
    color: #2c3e50;
}

.pontuacao-item .pontos {
    color: white;
    font-weight: bold;
}

.pontuacao-total {
    text-align: center;
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 20px 0;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 8px;
    border: 2px solid #27ae60;
}

.patentes-manual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.patente-categoria {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #9b59b6;
}

.patente-categoria h4 {
    color: #8e44ad;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.patente-categoria p {
    color: #555;
    font-size: 0.9rem;
}

.cronograma {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.cronograma-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e74c3c;
}

.cronograma-item strong {
    color: #c0392b;
    font-size: 1.1rem;
}

.contato-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contato-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f39c12;
}

.contato-item h4 {
    color: #d68910;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contato-item p {
    color: #555;
    margin: 5px 0;
    line-height: 1.5;
}

/* Responsividade para Manual */
@media (max-width: 768px) {
    .manual-container {
        padding: 10px;
    }
    
    .manual-content {
        padding: 20px;
    }
}

/* Ajustes para telas maiores */
@media (min-width: 1200px) {
    .manual-container {
        max-width: 1600px;
        padding: 20px 10px;
    }
    
    .manual-content {
        padding: 40px 30px;
    }
}
    
    .pontuacao-manual,
    .patentes-manual,
    .contato-info {
        grid-template-columns: 1fr;
    }
    
    .manual-section h2 {
        font-size: 1.5rem;
    }
    
    .manual-section h3 {
        font-size: 1.2rem;
    }
}

/* Estilos para Modais de Gráficos */
.modal-grafico {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ecf0f1;
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.grafico-modal-container {
    height: 500px;
    width: 100%;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsividade para modais */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .grafico-modal-container {
        height: 400px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
}

/* Estilos para Administração */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 1.1rem;
}

.usuarios-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.usuario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.usuario-info {
    flex: 1;
}

.usuario-info h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.usuario-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.usuario-actions {
    display: flex;
    gap: 8px;
}

.usuario-actions .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.usuario-actions .btn-danger {
    background: #e74c3c;
    color: white;
}

.usuario-actions .btn-warning {
    background: #f39c12;
    color: white;
}

.usuario-actions .btn-info {
    background: #3498db;
    color: white;
}

/* Estilos para gerenciamento de estudantes na aba Registros */
#gerenciarEstudantesRegistros {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.turma-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.turma-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.turma-info p {
    margin: 5px 0;
    color: #666;
}

.estudantes-lista {
    margin: 20px 0;
}

.estudante-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.estudante-nome {
    font-weight: 500;
    color: #2c3e50;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.empty-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Estilos para a aba Contatos */
.contatos-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.contatos-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contatos-section {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.contatos-section:last-child {
    border-bottom: none;
}

.contatos-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.contatos-section p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Desenvolvedores Contato */
.desenvolvedores-contato {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.desenvolvedor-contato-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.desenvolvedor-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

.desenvolvedor-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.avatar-img:hover {
    transform: scale(1.05);
}

.desenvolvedor-info {
    flex: 1;
    text-align: left;
}

.desenvolvedor-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.desenvolvedor-header .cargo {
    color: #7f8c8d;
    font-size: 1rem;
    font-style: italic;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contato-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contato-icon {
    font-size: 1.5rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.contato-details {
    flex: 1;
}

.contato-details strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.contato-details p {
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.contato-details a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contato-details a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Áreas de Atuação */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.area-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-3px);
}

.area-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.area-card p {
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.area-card li {
    color: #6c757d;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.area-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Suporte */
.suporte-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.suporte-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.suporte-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

/* Horários de Atendimento */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.horario-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #27ae60;
}

.horario-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.horario-card p {
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Redes Sociais */
.redes-sociais {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rede-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.rede-item:hover {
    transform: translateY(-2px);
}

.rede-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.rede-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.rede-info p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsividade para Contatos */
@media (max-width: 768px) {
    .contatos-container {
        padding: 10px;
    }
    
    .contatos-section {
        padding: 20px;
    }
    
    .desenvolvedores-contato {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .areas-grid,
    .suporte-info,
    .horarios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .redes-sociais {
        grid-template-columns: 1fr;
    }
    
    .contato-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .contato-icon {
        margin-top: 0;
    }
    
    .desenvolvedor-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .desenvolvedor-info {
        text-align: center;
    }
    
    .avatar-img {
        width: 70px;
        height: 70px;
    }
}

/* Botão menu mobile - sempre oculto por padrão */
.mobile-menu-toggle {
    display: none;
}

/* Responsividade Mobile Completa */
@media (max-width: 768px) {
    /* Menu hambúrguer */
    .mobile-menu-toggle {
        display: block !important;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: #2c3e50;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 5px;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .sidebar {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.open {
        left: 0;
    }

    .sidebar-header {
        padding: 15px;
        position: relative;
    }

    .sidebar-header h2 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .menu-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .menu-icon {
        font-size: 1rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 60px;
    }
    
    .content-header {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .content-header h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .content-header p {
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 15px;
    }
    
    .form-section {
        margin-bottom: 20px;
    }

    .form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 5px;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-group .btn {
        width: 100%;
        margin: 0;
    }

    /* Tabelas responsivas */
    .pontuacao-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pontuacao-table {
        min-width: 800px;
        font-size: 0.75rem;
    }
    
    .pontuacao-table th,
    .pontuacao-table td {
        padding: 6px 3px;
        white-space: nowrap;
    }

    .pontuacao-table th {
        font-size: 0.7rem;
        text-align: center;
    }

    .pontuacao-table input {
        width: 40px;
        font-size: 0.7rem;
        padding: 2px;
        text-align: center;
    }
    
    .ranking-container {
        padding: 15px;
        overflow-x: auto;
    }
    
    .ranking-header {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .ranking-item {
        padding: 8px;
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .ranking-col {
        padding: 6px 3px;
    }

    .ranking-col.estudante {
        min-width: 150px;
    }

    .ranking-col.escola {
        display: none;
    }
    
    .estatisticas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .estatistica-card {
        padding: 12px;
    }
    
    .estatistica-numero {
        font-size: 1.3rem;
    }
    
    .estatistica-label {
        font-size: 0.75rem;
    }
    
    .graficos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .grafico-card {
        padding: 15px;
    }
    
    .grafico-card h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .grafico-container {
        height: 200px;
    }
    
    .acoes-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .acoes-buttons .btn {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filtro-item {
        margin-bottom: 10px;
    }
    
    .filtro-item label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .filtro-item select {
        font-size: 0.85rem;
        padding: 8px;
        width: 100%;
    }

    /* Melhorias para inputs em mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Previne zoom no iOS */
    }

    /* Melhorias para botões em mobile */
    .btn {
        min-height: 44px; /* Tamanho mínimo para touch */
        touch-action: manipulation;
    }

    /* Melhorias para cards */
    .card {
        margin-bottom: 15px;
    }

    .card-header {
        padding: 12px 15px;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .card-body {
        padding: 15px;
    }

    /* Melhorias para modais em mobile */
    .modal-content {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
        padding-top: 50px;
    }

    .content-header {
        padding: 15px 10px;
    }

    .content-header h1 {
        font-size: 1.2rem;
    }

    .form-container {
        padding: 10px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

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

    .ranking-container {
        padding: 10px;
    }

    .grafico-container {
        height: 180px;
    }
}