/* MonitorLeitura - Estilos Customizados */

/* Variáveis de cores do tema */
:root {
    --primary-color: #7367f0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Cards personalizados */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Status badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-excelente {
    background-color: var(--success-color);
    color: white;
}

.status-bom {
    background-color: var(--info-color);
    color: white;
}

.status-regular {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.status-iniciante {
    background-color: var(--danger-color);
    color: white;
}

/* Cards de alunos */
.student-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    cursor: pointer;
}

.student-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Métricas */
.metric-card {
    text-align: center;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s ease-in-out;
    background: white;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.metric-card i {
    margin-bottom: 0.5rem;
}

/* Card de boas-vindas */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.welcome-card .card-body {
    position: relative;
    z-index: 2;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #e3e6f0);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 1;
}

/* Progress bars customizadas */
.progress {
    height: 0.5rem;
    border-radius: 0.375rem;
    background-color: #e3e6f0;
}

.progress-bar {
    border-radius: 0.375rem;
    transition: width 0.6s ease;
}

.progress-sm {
    height: 0.375rem;
}

/* Avatar do aluno */
.student-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Botões customizados */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5f59d9;
    border-color: #5f59d9;
    transform: translateY(-1px);
}

/* Menu lateral */
.menu-link {
    border-radius: 0.375rem;
    margin: 0.125rem 0;
}

.menu-link:hover {
    background-color: rgba(115, 103, 240, 0.1);
    color: var(--primary-color);
}

.menu-item.active > .menu-link {
    background-color: var(--primary-color);
    color: white;
}

/* Navbar */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Footer */
.footer {
    border-top: 1px solid #e3e6f0;
}

/* Responsividade */
@media (max-width: 768px) {
    .student-card {
        margin-bottom: 1rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -17px;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.3s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #2b2b2b;
        --dark-color: #f8f9fa;
    }
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(115, 103, 240, 0.25);
}

/* Tooltips customizados */
.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}
