/* Estilos comunes para templates de resultados de quiz y otros templates relacionados */

/* ===== ESTILOS BASE PARA RESULTADOS ===== */
.results-container {
    padding: 2rem 0;
}

.results-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.results-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
    text-align: center;
}

.results-body {
    padding: 2rem;
}

/* ===== ESTILOS PARA ESTADÍSTICAS ===== */
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ESTILOS PARA TABLAS ===== */
.results-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.results-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.results-table tbody tr {
    transition: all 0.3s ease;
}

.results-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.01);
}

.results-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* ===== ESTILOS PARA BOTONES ===== */
.results-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

.results-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.results-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.results-btn-outline:hover {
    background: #667eea;
    color: white;
}

/* ===== ESTILOS PARA ALERTAS ===== */
.results-alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.results-alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.results-alert-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #f57c00;
    border-left: 4px solid #ff9800;
}

.results-alert-info {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

/* ===== ESTILOS PARA BADGES ===== */
.results-badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.results-badge-success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.results-badge-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #f57c00;
}

.results-badge-danger {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

/* ===== ESTILOS PARA PROGRESS BARS ===== */
.results-progress {
    height: 10px;
    border-radius: 5px;
    background: #e9ecef;
    overflow: hidden;
}

.results-progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.results-progress-success {
    background: linear-gradient(90deg, #4caf50, #45a049);
}

.results-progress-warning {
    background: linear-gradient(90deg, #ff9800, #f57c00);
}

.results-progress-danger {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

/* ===== ESTILOS PARA LEADERBOARD - CONSISTENTES CON INDEX.HTML ===== */
.leaderboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.leaderboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-table th {
    border-top: none;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.leaderboard-table td {
    vertical-align: middle;
    padding: 1rem;
}

.leaderboard-table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* ===== ESTILOS PARA HISTORIAL - CONSISTENTES CON INDEX.HTML ===== */
.history-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.history-item:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.history-item:last-child {
    border-bottom: none;
}

/* ===== ESTILOS PARA ANALYTICS - CONSISTENTES CON INDEX.HTML ===== */
.analytics-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.analytics-chart {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ESTILOS PARA PUBLIC INDEX - CONSISTENTES CON INDEX.HTML ===== */
.public-index-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.public-index-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.public-index-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.public-index-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .results-card {
        margin-bottom: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* ===== ANIMACIONES ===== */
.results-fade-in {
    animation: resultsFadeIn 0.5s ease-in-out;
}

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

.results-slide-in {
    animation: resultsSlideIn 0.5s ease-in-out;
}

@keyframes resultsSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 