/* Estilos para a Área do Aluno */

/* Login */
.area-aluno-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.area-aluno-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.logo {
    max-width: 200px !important;
    height: auto !important;
    margin-bottom: 30px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}





.area-aluno-form h1 {
    color: #0073aa;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.button-login {
    background: #0073aa;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}

.button-login:hover {
    background: #005177;
}

.mensagem-erro {
    margin: 20px 0;
    padding: 12px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    text-align: left;
}

.links-uteis {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.links-uteis a {
    display: inline-block;
    margin: 0 10px;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.links-uteis a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-aluno-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.dashboard-header {
    background: #0073aa;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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



.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.user-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary, .btn-logout {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-logout:hover {
    background: #c82333;
    color: white;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
}

.content-header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 32px;
}

.content-header p {
    color: #666;
    font-size: 16px;
}

.no-trainings {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-trainings-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-trainings h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-trainings p {
    color: #666;
    margin-bottom: 30px;
}

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

.training-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.training-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.training-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    flex: 1;
    margin-right: 15px;
}

.training-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.training-status.completed {
    background: #d4edda;
    color: #155724;
}

.training-status.in-progress {
    background: #fff3cd;
    color: #856404;
}

.training-details {
    padding: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-item label {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.detail-item span {
    color: #333;
    font-size: 14px;
}

.training-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #005177;
    color: white;
}

.certificate-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.certificate-status.pending {
    background: #fff3cd;
    color: #856404;
}

.certificate-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.certificate-status.in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.btn-primary {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #005177;
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .area-aluno-container {
        margin: 20px auto;
        padding: 10px;
    }
    
    .area-aluno-form {
        padding: 30px 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .trainings-grid {
        grid-template-columns: 1fr;
    }
    
    .training-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .training-status {
        align-self: flex-start;
    }
} 