/**
 * FORMATAÇÃO ORIGINAL DASHBOARD - CSS FIXES
 * Sistema educacional brasileiro - PRESERVANDO TODAS AS CORES ORIGINAIS
 */

/* Hero Section Original */
.hero-premium {
    position: relative;
    overflow: hidden;
    min-height: 280px !important;
    height: 280px !important;
    background: linear-gradient(135deg, #2d1b69 0%, #4c51bf 50%, #553c9a 100%) !important;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 25px 25px;
    animation: float 20s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-title-distributed {
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.title-main {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.title-highlight {
    display: block;
    font-weight: 800;
    color: #fbbf24 !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

.hero-subtitle-compact {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.feature-grid-compact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CARDS DOS FILHOS - FONTE BRANCA COM NEGRITO */
.child-card {
    background: rgba(45, 55, 72, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

.child-card h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.child-card .info-item span {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.child-card .btn {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}



.child-card .btn-modern-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: none !important;
}

.child-card .btn-modern-success:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px);
}

.modern-card {
    background: rgba(45, 55, 72, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

.modern-card h4, .modern-card h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* TEXTO BRANCO NEGRITO GERAL COM CONTRASTE MELHORADO */
.card-header h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.table th, .table td {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    background: rgba(30, 35, 45, 0.95) !important;
}

/* OVERRIDE PARA BADGE SISTEMA EDUCACIONAL - CONTRASTE APRIMORADO */
.badge.bg-warning.text-warning {
    color: #ffffff !important;
    font-weight: 700 !important;
    background-color: rgba(30, 35, 45, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.hero-badge-inline .badge {
    color: #ffffff !important;
    font-weight: 700 !important;
    background-color: rgba(30, 35, 45, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* ================================
   AI SOURCE BADGES
   ================================ */
.bg-purple {
    background-color: #6f42c1 !important;
}

.badge {
    font-weight: bold;
}
}

.feature-item-compact i {
    font-size: 1rem;
}

.icon-circle-center {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.icon-circle-center i {
    font-size: 2rem;
    color: white;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Statistics Cards - CORES ORIGINAIS EXATAS */
.stat-card {
    transition: all 0.3s ease;
    color: white !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.stat-card h3, .stat-card p {
    color: white !important;
}

.gradient-purple {
    background: linear-gradient(135deg, #5a67d8 0%, #553c9a 100%) !important;
}

.gradient-blue {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%) !important;
}

.gradient-green {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%) !important;
}

.gradient-orange {
    background: linear-gradient(135deg, #ed8936 0%, #c05621 100%) !important;
}

.gradient-teal {
    background: linear-gradient(135deg, #319795 0%, #2c7a7b 100%) !important;
}

.gradient-pink {
    background: linear-gradient(135deg, #d53f8c 0%, #b83280 100%) !important;
}

.shadow-modern {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Action Cards */
.action-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5a67d8 0%, #553c9a 100%);
}

.action-icon.gradient-green {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.action-icon.gradient-blue {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

/* Buttons */
.btn-modern-primary {
    background: linear-gradient(135deg, #5a67d8 0%, #553c9a 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-modern-success {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-modern-info {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border: none;
    color: white;
    font-weight: 600;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-premium {
        min-height: 200px !important;
        height: 200px !important;
    }
    
    .hero-title-distributed {
        font-size: 1.5rem !important;
    }
    
    .feature-grid-compact {
        justify-content: center;
    }
    
    .icon-circle-center {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle-center i {
        font-size: 1.5rem;
    }
}

/* Force visibility and color inheritance */
.stat-card * {
    color: inherit !important;
}

.gradient-purple, .gradient-blue, .gradient-green, 
.gradient-orange, .gradient-teal, .gradient-pink {
    color: white !important;
}

.gradient-purple *, .gradient-blue *, .gradient-green *, 
.gradient-orange *, .gradient-teal *, .gradient-pink * {
    color: white !important;
}