/* portal_estilos.css */

:root {
    --primary-color: #3b82f6;
    /* blue-500 */
    --primary-hover: #2563eb;
    /* blue-600 */
    --sidebar-bg: #0f172a;
    /* Force dark slate-900 constant for sidebar */
    --body-bg: #f3f4f6;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --card-footer-bg: #f9fafb;
    --card-footer-text: #3b82f6;
}

.dark-mode {
    --primary-color: #60a5fa;
    /* blue-400 */
    --primary-hover: #3b82f6;
    /* blue-500 */
    --sidebar-bg: #0f172a;
    /* Keep dark regardless of theme */
    --body-bg: #020617;
    /* Darker slate for main content in dark mode */
    --card-bg: #1e293b;
    /* slate-800 for cards */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #1e293b;
    --card-footer-bg: #0f172a;
    --card-footer-text: #60a5fa;
}

/* Adjust waves container background for dark mode */
.dark-mode .waves-container {
    background: #020617 !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

.portal-title {
    color: var(--text-primary);
    transition: color 0.3s;
}

.portal-subtitle {
    color: var(--text-secondary);
    transition: color 0.3s;
}

#sidebar {
    /* Background is handled by Tailwind classes in HTML to ensure consistency with blurry circles,
       but we keep the variable as a fallback and freeze the transition. */
    background-color: var(--sidebar-bg) !important;
}

#sidebar-toggle.lg\:hidden {
    display: none;
}

@media (max-width: 1024px) {
    #sidebar {
        position: fixed;
        left: -256px;
        top: 0;
        height: 100%;
        z-index: 50;
    }

    #sidebar.open {
        left: 0;
    }

    #sidebar-toggle.lg\:hidden {
        display: block;
    }
}

.category-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background-color 0.2s, color 0.2s;
}

.category-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.category-link.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.category-link i {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.75rem;
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.test-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Estilo Crystal (Glassmorphism) */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    
    border-radius: 1.25rem;
    /* Efecto 3D base: Sombra de profundidad sólida */
    box-shadow: 0 4px 0 0 rgba(30, 41, 59, 0.1), 
                0 10px 15px -3px rgba(0, 0, 0, 0.05);
    
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.dark-mode .test-card-link {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.3), 
                0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.test-card-link:hover {
    transform: translateY(-8px);
    /* Elevación con sombra de profundidad oscura (en lugar de azul) */
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 0 0 #1e293b, 
                0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: #1e293b;
}

.dark-mode .test-card-link:hover {
    background: rgba(30, 41, 59, 0.85);
    /* Usar un gris/slate más claro para que el relieve 3D sea visible en fondos oscuros */
    box-shadow: 0 12px 0 0 #475569, 
                0 20px 25px -5px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.test-card-link:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 0 #1e293b, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.25rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-icon {
    font-size: 2.25rem;
    color: var(--primary-color);
}

.card-title {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    transition: color 0.3s;
}



.card-footer {
    display: none;
}

/* Animación de entrada para las tarjetas */
@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.test-card-link {
    animation: card-fade-in 0.5s ease-out forwards;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.report-header .logo {
    height: 50px;
    margin-right: 1rem;
}

/* Badge PRO */
.badge-pro {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
}

.test-card-link {
    position: relative;
    animation: card-fade-in 0.5s ease-out forwards;
}