@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;700&display=swap');

:root {
    --bg-dark: #0f021d;
    --neon-purple: #8e00ff;
    --neon-pink: #d600ff;
    --neon-blue: #00d2ff;
    --glass-bg: rgba(20, 5, 30, 0.8);
    --glass-border: rgba(214, 0, 255, 0.3);
    --text-main: #ffffff;
    --text-dim: #bda6d5;
    --vc-purple: #8b008b;
    /* Color de cabecera de tabla */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 5% 5%, rgba(214, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 95% 95%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
        url('https://www.transparenttextures.com/patterns/dark-matter.png');
    color: var(--text-main);
    min-height: 100vh;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.system-container {
    width: 95%;
    /* Abarca la mayoría de la pantalla */
    max-width: 1500px;
    position: relative;
}

/* Glass UI Panel Estilo Imagen 3 */
.main-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

/* Header Estilo Imagen 3 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem 3rem;
    border-radius: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-vc {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(to bottom, #ff00de 20%, #ff8c00 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -5px;
}

.date-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2.5rem;
    border-radius: 10px;
}

.date-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: white;
    font-weight: 700;
}

/* Table UI Estilo Imagen 3 */
.table-container {
    margin: 0 auto 2rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background-color: var(--vc-purple);
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid #000;
}

tbody td {
    padding: 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    font-size: 1.1rem;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Botones con estilo Imagen 3 */
.controls {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.btn-action {
    padding: 0.8rem 2.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.btn-add {
    background: #d600ff;
    /* Rosa Neón */
    color: white;
    box-shadow: 0 0 15px rgba(214, 0, 255, 0.4);
}

.btn-add:hover {
    box-shadow: 0 0 30px rgba(214, 0, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.8);
}

.btn-pdf {
    background: #00d2ff;
    /* Azul Neón */
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-pdf:hover {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.8);
}

.btn-excel {
    background: #217346;
    color: white;
    box-shadow: 0 0 15px rgba(33, 115, 70, 0.4);
}

.btn-excel:hover {
    box-shadow: 0 0 30px rgba(33, 115, 70, 0.8), 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Efectos de Hover Iluminados */
.btn-delete {
    background: transparent;
    border: 1px solid #ff0000;
    color: #ff0000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-delete:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

.btn-view-all {
    background: #444;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--neon-purple) !important;
    color: white !important;
    border-color: white;
    box-shadow: 0 0 25px rgba(142, 0, 255, 0.8), 0 0 5px rgba(255,255,255,0.5);
    transform: scale(1.05);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--glass-bg);
    padding: 4rem;
    border-radius: 20px;
    border: 2px solid var(--neon-purple);
    width: 500px;
}

/* Paginación - Estilos de Iluminación */
/* Paginación - Estilos de Iluminación - REMOVIDO PARA USAR ESTILO GENERICO */
/* 
#btn-prev,
#btn-next {
    background: rgb(255, 255, 255) !important;
    border: 1px solid var(--neon-purple);
    color: var(--neon-blue);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(142, 0, 255, 0.1);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

#btn-prev:hover:not(:disabled),
#btn-next:hover:not(:disabled) {
    background: var(--neon-purple) !important;
    color: white;
    box-shadow: 0 0 25px rgba(142, 0, 255, 0.6);
    transform: scale(1.05);
    border-color: white;
}

#btn-prev:disabled,
#btn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: none;
}
*/

#page-indicator {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(214, 0, 255, 0.2);
    font-family: 'Orbitron', sans-serif;
}

/* PDF Estilo Imagen 1 */
#pdf-section {
    position: fixed;
    top: 100%;
    left: 0;
    width: 210mm;
    background: white;
    color: black;
    z-index: -1;
    visibility: hidden;
}

.pdf-page {
    padding: 2cm;
    font-family: Arial, sans-serif;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.pdf-header h1 {
    font-size: 28px;
    font-weight: 900;
}

.pdf-title {
    text-align: center;
    text-decoration: underline;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #000;
}

.pdf-table th {
    background-color: var(--vc-purple);
    color: white;
    border: 1.5px solid #000;
    padding: 12px;
    font-size: 13px;
    font-weight: 900;
}

.pdf-table td {
    border: 1.5px solid #000;
    padding: 10px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
}

.pdf-table tr.total-row td {
    background-color: white;
    border-top: 2px solid #000;
    font-weight: 900;
}