/* Reset e Estilos Gerais */
* {
    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 Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header */
.header {
    background: #1a1a2e;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.3em;
}

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

.nav a {
    color: #ccc;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav .btn-sair {
    background: #e74c3c;
    color: white !important;
}

.nav .btn-sair:hover {
    background: #c0392b;
}

.user-info {
    font-size: 0.9em;
    color: #aaa;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Títulos */
h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 2em;
}

h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Data atual */
.data-atual {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    font-size: 1.1em;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Welcome Box */
.welcome-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.welcome-box h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.menu-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.menu-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.menu-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.menu-card p {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-erro {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-sucesso {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-aviso {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

/* Tabelas */
.tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tabela th,
.tabela td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabela th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.tabela tr:hover {
    background: #f8f9fa;
}

/* Status */
.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status.presente,
.status.aprovado {
    background: #e8f5e9;
    color: #2e7d32;
}

.status.ausente,
.status.reprovado {
    background: #ffebee;
    color: #c62828;
}

/* Badge Graduação */
.badge-graduacao {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Página de Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-box h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 5px;
    font-size: 1.8em;
}

.login-box h2 {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 30px;
    font-weight: normal;
    border: none;
    padding: 0;
}

.login-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
}

.login-info p {
    margin-bottom: 8px;
}

.login-info .exemplo {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85em;
    margin-top: 10px;
}

.link-simples {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
}

.link-simples:hover {
    text-decoration: underline;
}

/* Avaliações */
.avaliacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.avaliacao-card {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.avaliacao-card.aprovado {
    border-color: #a5d6a7;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.avaliacao-card.reprovado {
    border-color: #ef9a9a;
    background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
}

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

.avaliacao-data {
    color: #7f8c8d;
    font-size: 0.9em;
}

.avaliacao-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
}

.avaliacao-status.aprovado {
    background: #2e7d32;
    color: white;
}

.avaliacao-status.reprovado {
    background: #c62828;
    color: white;
}

.avaliacao-card p {
    margin-bottom: 10px;
    color: #555;
}

/* Dados do Aluno */
.dados-aluno {
    display: grid;
    gap: 15px;
}

.dado-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.dado-label {
    font-weight: 600;
    color: #7f8c8d;
    min-width: 180px;
}

.dado-valor {
    color: #2c3e50;
    flex: 1;
}

.graduacao-destaque {
    color: #667eea;
}

.sem-dados {
    text-align: center;
    color: #95a5a6;
    padding: 30px;
    font-style: italic;
}

/* Responsivo */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .tabela {
        font-size: 0.85em;
    }
    
    .tabela th,
    .tabela td {
        padding: 8px 10px;
    }
}