/**
 * ESTILOS CUSTOMIZADOS PARA DASHBOARD - PRESERVADO ORIGINAL
 * Sistema educacional brasileiro
 */

/* FORMATAÇÃO ORIGINAL PRESERVADA */
@import url('dashboard-fixes.css');

/* Variáveis CSS */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Layout geral */
body {
    background-color: #1a1d23;
    color: #e9ecef;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

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

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Barras de progresso */
.progress {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    border-radius: 10px;
    font-weight: 600;
    transition: width 0.8s ease-in-out;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position-x: 1rem; }
}

/* Badges */
.badge {
    font-size: 0.85em;
    padding: 0.5em 0.8em;
    border-radius: 6px;
}

/* Botões */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Alertas */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.alert-dismissible .btn-close {
    padding: 1rem 1.25rem;
}

/* Estatísticas do dashboard */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.stats-card .stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.stats-card .stats-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

/* Cards de IA */
.ai-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.ai-card:hover::before {
    left: 100%;
}

.ai-card h5 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.ai-card p {
    margin-bottom: 0.25rem;
}

.ai-card small {
    opacity: 0.8;
}

/* Progresso detalhado */
.progress-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.progress-section h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-section .progress {
    height: 20px;
    margin-top: 0.5rem;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    z-index: 1;
}

.loading::before {
    content: '⏳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 2;
    animation: pulse 1s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .stats-card {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .stats-card .stats-icon {
        position: static;
        display: block;
        margin-bottom: 1rem;
    }
    
    .progress-section {
        padding: 0.75rem;
    }
    
    .ai-card {
        margin-bottom: 1rem;
    }
}

/* Dark theme adjustments */
.table-dark {
    --bs-table-bg: #2d3238;
}

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

/* Navbar customizations */
.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--info-color)) 1;
}