/* Estilos customizados para Aprovado na Ordem */

/* Estilos para o calendário mensal */
.calendar-container {
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.calendar-header {
    background: linear-gradient(135deg, #00214e 0%, #003d7a 100%) !important;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
}

.calendar-header .row {
    background: transparent !important;
}

.calendar-header .col {
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    padding: 12px 8px !important;
    background: transparent !important;
}

.calendar-header .col:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Forçar visibilidade do texto no cabeçalho */
.calendar-header * {
    color: white !important;
}

.calendar-header .row .col {
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

.calendar-week {
    min-height: 140px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.calendar-week:last-child {
    border-bottom: none;
}

.calendar-week:hover {
    background-color: #f8fafc;
}

.calendar-day {
    border-right: 1px solid #f1f5f9;
    padding: 12px 8px;
    min-height: 140px;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #00214e;
    box-shadow: 0 4px 12px rgba(0, 33, 78, 0.15);
}

.calendar-day.today:hover {
    background: linear-gradient(135deg, #d1ecf1 0%, #e8d5e8 100%);
}

.calendar-day.weekend {
    background-color: #f1f5f9;
    color: #475569;
}

.calendar-day.weekend .day-number {
    color: #475569;
    font-weight: 600;
}

.calendar-day.simulado-day {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.calendar-day.simulado-day:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.day-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-content.empty {
    opacity: 0.3;
}

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

.day-number {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calendar-day.today .day-number {
    color: #00214e;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 33, 78, 0.2);
}

.day-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.simulado-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    animation: pulse 2s infinite;
}

.questoes-badge {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.day-disciplines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.discipline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.discipline-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.discipline-item.discipline-1 {
    background: linear-gradient(135deg, #00214e 0%, #003d7a 100%);
    color: white;
    border-color: #001a3a;
}

.discipline-item.discipline-1:hover {
    background: linear-gradient(135deg, #001a3a 0%, #002d5c 100%);
}

.discipline-item.discipline-2 {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #1e7e34;
}

.discipline-item.discipline-2:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #1a6b2e 100%);
}

.simulado-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    font-weight: 600;
}

.simulado-item:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.simulado-icon {
    font-size: 14px;
    color: #856404;
    flex-shrink: 0;
}

.simulado-text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status das disciplinas */
.discipline-item.concluida {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border-color: #1e7e34 !important;
    position: relative;
}

.discipline-item.em-andamento {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%) !important;
    color: white !important;
    border-color: #e0a800 !important;
    position: relative;
}

.status-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.status-badge.concluida {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid white;
}

.status-badge.em-andamento {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.discipline-item.concluida:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #1a6b2e 100%) !important;
    transform: translateX(2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.discipline-item.em-andamento:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
    transform: translateX(2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Correções para o cronograma do aluno */
.info-box {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.info-box-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 24px;
}

.info-box-content {
    flex: 1;
}

.info-box-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 4px;
}

.info-box-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #00214e;
    line-height: 1.2;
}

/* Correção específica para bg-primary-custom */
.bg-primary-custom {
    background-color: #00214e !important;
    color: white !important;
}

.bg-primary-custom .info-box-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-primary-custom .info-box-number {
    color: white !important;
}

/* Correção para badges com texto branco */
.badge {
    color: white !important;
    font-weight: 500;
}

.badge-light {
    color: #212529 !important;
    background-color: #f8f9fa !important;
}

.badge-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.badge-primary {
    background-color: #00214e !important;
    color: white !important;
}

.badge-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.badge-success {
    background-color: #28a745 !important;
    color: white !important;
}

.badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Correção para tabelas */
.table th {
    background-color: #f8f9fa;
    color: #00214e;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

.table td {
    color: #495057;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 33, 78, 0.02);
}

/* Correção para alertas */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-info h5 {
    color: #0c5460;
    font-weight: 600;
}

/* Correção para cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
}

.card-title {
    color: #00214e;
    font-weight: 600;
    margin: 0;
}

/* Correção para labels */
label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Correção para form controls */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #495057;
    background-color: white;
}

.form-control:focus {
    border-color: #00214e;
    box-shadow: 0 0 0 0.2rem rgba(0, 33, 78, 0.25);
    color: #495057;
}

/* Correção para botões no cronograma */
.btn-outline-primary {
    color: #00214e;
    border-color: #00214e;
}

.btn-outline-primary:hover {
    background-color: #00214e;
    border-color: #00214e;
    color: white;
}

/* Botões para marcar disciplinas como concluídas */
.btn-marcar-concluida {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-marcar-concluida:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-marcar-concluida:disabled {
    transform: none;
    opacity: 0.7;
}

.btn-marcar-concluida.btn-outline-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Estilo para disciplinas concluídas */
.disciplina-concluida {
    opacity: 0.8;
    position: relative;
}

.disciplina-concluida::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Notificações */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-left: 4px solid #1e7e34;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    border-left: 4px solid #c82333;
}

/* Modal de confirmação personalizado */
#modalConfirmarConclusao .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#modalConfirmarConclusao .modal-header {
    background: linear-gradient(135deg, #00214e 0%, #003d7a 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

#modalConfirmarConclusao .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#modalConfirmarConclusao .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#modalConfirmarConclusao .btn-close:hover {
    opacity: 1;
}

#modalConfirmarConclusao .modal-body {
    padding: 2rem 1.5rem;
    background: #f8f9fa;
}

#modalConfirmarConclusao .modal-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

#modalConfirmarConclusao .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

#modalConfirmarConclusao .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#modalConfirmarConclusao .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

#modalConfirmarConclusao .btn-secondary {
    background: #6c757d;
    border: none;
}

#modalConfirmarConclusao .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Animação de entrada do modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.8);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Ícone de graduação animado */
#modalConfirmarConclusao .fa-graduation-cap {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Alert dentro do modal */
#modalConfirmarConclusao .alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    border-radius: 8px;
    color: #0c5460;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem;
}

/* Modal de confirmação para revisões */
#modalConfirmarRevisao .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#modalConfirmarRevisao .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

#modalConfirmarRevisao .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#modalConfirmarRevisao .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#modalConfirmarRevisao .btn-close:hover {
    opacity: 1;
}

#modalConfirmarRevisao .modal-body {
    padding: 2rem 1.5rem;
    background: #f8f9fa;
}

#modalConfirmarRevisao .modal-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

#modalConfirmarRevisao .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

#modalConfirmarRevisao .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#modalConfirmarRevisao .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

#modalConfirmarRevisao .btn-secondary {
    background: #6c757d;
    border: none;
}

#modalConfirmarRevisao .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Ícone de cérebro animado */
#modalConfirmarRevisao .fa-brain {
    animation: pulse 2s infinite;
}

/* Alert dentro do modal de revisão */
#modalConfirmarRevisao .alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    border-radius: 8px;
    color: #0c5460;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem;
}

/* Botões para disciplinas já concluídas */
.btn-concluida {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-concluida:hover {
    transform: none;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Disciplinas concluídas - badges */
.badge.disciplina-concluida {
    position: relative;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: 2px solid #1e7e34;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge.disciplina-concluida::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ffc107;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Animação para disciplinas concluídas */
.disciplina-concluida .fa-check-circle {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    to {
        text-shadow: 0 1px 8px rgba(255, 193, 7, 0.6), 0 0 12px rgba(255, 193, 7, 0.4);
    }
}

/* Estados dos badges por status */
.badge.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: 1px solid #1e7e34;
}

.badge.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
    color: white !important;
    border: 1px solid #138496;
}

.badge.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%) !important;
    color: #212529 !important;
    border: 1px solid #e0a800;
}

/* Indicador visual para disciplinas concluídas */
.disciplina-item.disciplina-concluida {
    position: relative;
}

.disciplina-item.disciplina-concluida::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #212529;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: pulse 2s infinite;
}

/* Container personalizado para revisões */
.revisoes-container {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.revisoes-container h5 {
    color: #0c5460;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.revisoes-container ul {
    list-style: none;
    padding: 0;
}

.revisoes-container li {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.revisoes-container li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.revisoes-container li:last-child {
    margin-bottom: 0;
}

.revisoes-container strong {
    color: #00214e;
    font-weight: 600;
}

.revisoes-container .text-muted {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Container vazio para quando não há revisões */
.revisoes-empty {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.revisoes-empty h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

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

.discipline-icon {
    font-size: 12px;
    opacity: 0.8;
    flex-shrink: 0;
}

.discipline-name {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.revisoes-section {
    margin-top: auto;
    padding-top: 4px;
}

.revisao-badge {
    background: linear-gradient(135deg, #6f42c1 0%, #8e44ad 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    }

    100% {
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.6);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
    }

    100% {
        box-shadow: 0 2px 8px rgba(111, 66, 193, 0.6);
    }
}

/* Responsividade para calendário - MOVED TO student-mobile.css */

:root {
    /* Paleta baseada na logo - tons de azul escuro */
    --primary-color: #00214e;
    --primary-light: #003d7a;
    --primary-dark: #001a3a;
    --secondary-color: #4a5c7a;
    --accent-color: #1e4a7c;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #1a1a1a;

    /* Tons complementares */
    --text-primary: #00214e;
    --text-secondary: #4a5c7a;
    --text-muted: #6c757d;
    --border-color: #e2e8f0;
    --background-light: #f7fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.jumbotron {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

footer {
    margin-top: auto;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsividade - MOVED TO student-mobile.css */

/* Utilitários */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.border-radius-lg {
    border-radius: 0.5rem;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Estilos para login e cadastro de alunos */
.login-body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.student-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.form-control-student {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control-student:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background: white;
}

.btn-student {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-student:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 33, 78, 0.3);
    color: white;
}

.student-footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.student-footer h5 {
    color: var(--primary-color);
    font-weight: bold;
}

.student-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.student-footer a:hover {
    color: var(--primary-color);
}

/* Estilos para inputs radio - responsividade */
.form-check {
    padding-left: 1.5em;
    min-height: auto;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.25em;
    margin-left: -1.5em;
    margin-right: 0.75rem;
    vertical-align: top;
    flex-shrink: 0;
}

.form-check-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.5;
    word-break: break-word;
}

/* Mobile/Tablet form checks - MOVED TO student-mobile.css */

/* Garantir que alternativas das questões fiquem bem formatadas */
.questao-alternativas .form-check {
    margin-bottom: 1rem;
}

.questao-alternativas .form-check-label {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Estado desabilitado */
.form-check-input:disabled~.form-check-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botão de disciplina concluída */
.btn-concluida {
    opacity: 0.7;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.btn-concluida:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Alert-div - Notificações persistentes (não desaparecem automaticamente)
 * Uso:
 * <div class="alert-div alert-div-success alert-div-dismissible">
 *   Mensagem de sucesso
 *   <button type="button" class="btn-close" aria-label="Fechar"></button>
 * </div>
 * 
 * Tipos: alert-div-success, alert-div-danger, alert-div-warning, alert-div-info
 * Pode ser fechada manualmente clicando no botão X
 * Ou use JavaScript: showAlertDiv('Mensagem', 'success')
 */
.alert-div {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-div-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-div-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-div-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-div-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert-div-dismissible {
    padding-right: 3rem;
}

.alert-div-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}

.alert-div .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;
    cursor: pointer;
    width: 1em;
    height: 1em;
}

/* Divider com texto "ou" para separar opções de login */
.divider-with-text {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #dee2e6;
}

.divider-with-text::before {
    left: 0;
}

.divider-with-text::after {
    right: 0;
}

.divider-with-text span {
    background-color: white;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0 1rem;
    position: relative;
}

.alert-div .btn-close:hover {
    opacity: 0.75;
}