:root {
    --primary: #42ccba;
    --success: #3baa64;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --text: #1e293b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
}


/* 1. Fondo base con degradado suave que cambia */
.animated-bg {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Degradado inicial corporativo */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    position: relative;
    /* Añadimos la animación de color al fondo base */
    animation: changeBackgroundColor 20s ease infinite;
}

/* 2. El Mosaico Animado (Sigue siendo un pseudo-elemento) */
.animated-bg::before {
    content: "";
    position: absolute;
    /* Extendemos un poco más para cubrir el movimiento sin bordes */
    top: -120px; 
    left: -120px;
    right: -120px;
    bottom: -120px;
    
    /* CONFIGURACIÓN DEL MOSAICO */
    /* REEMPLAZA '/img/BYTECH-01.png' por la ruta real de tu logo transparente */
    background-image: url('/imgsprt/BYTECH\ ICONO_NEGRO.png'); 
    background-size: 100px; /* <--- TAMAÑO DEL LOGO */
    background-repeat: repeat;
    opacity: 0.04; /* <--- Súper sutil */
    z-index: 1; /* Detrás de la card */
    
    /* ANIMACIÓN DEL MOVIMIENTO */
    /* Aumentamos el tiempo a 60s para que sea muy lento y profesional */
    animation: moveMosaicoInfinito 15s linear infinite;
    
    /* Pequeña rotación para dar dinamismo técnico */
    transform: rotate(-3deg);
}

/* 3. Definición del Movimiento PERFECTAMENTE INFINITO */
@keyframes moveMosaicoInfinito {
    from {
        /* Punto de partida: posición original */
        background-position: 0 0;
    }
    to {
        /* Punto final: movemos exactamente UNA UNIDAD del mosaico (100px) */
        /* Esto hace que el final encaje PERFECTO con el principio */
        background-position: -100px -100px; /* <--- DEBE COINCIDIR CON background-size */
    }
}

/* 4. Definición del Cambio Sutil de Color de Fondo 
@keyframes changeBackgroundColor {
    0%, 100% {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    50% {
        /* Cambiamos ligeramente a un tono más azulado/tecnológico en el medio 
        background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    }
}*/

/* Asegura que la card de login resalte y esté por encima */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 10; /* Por encima del mosaico animado */
    position: relative; /* Necesario para el z-index */
    border: 1px solid #e2e8f0;
}



/************************************************************************************************************************/


.main-logo {
    height: 70px; /* Ajusta el tamaño de tu logo PNG aquí */
    width: auto;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Tarjetas y Formulario 
.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}*/

h2 { border-left: 5px solid var(--primary); padding-left: 15px; }

/* Inputs Estilizados */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box; /* Evita que el input se salga del borde */
}

button {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

button:hover { opacity: 0.9; transform: translateY(-1px); }

/* Etiquetas de Urgencia */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
}
.alta { background: var(--danger); }
.media { background: var(--warning); }
.baja { background: var(--success); }





/***********************************************************************************************/

/*ESTILOS PARA LOS REPORTES PARA LOS USUARIOS*/


/* Estilos para la Tabla de Reportes */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden; /* Para que los bordes redondeados funcionen */
}

.report-table th, .report-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.report-table th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.report-table tr:hover {
    background-color: #f8fafc;
}

/* Tarjetas de Resumen (Stats) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}