/* Estilos generales - Tema Dead Space */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: #0a0a12;
    color: #00ffea;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Fondo holográfico */
.holographic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 40, 60, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 60, 80, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(20, 0, 40, 0.2) 0%, transparent 50%);
    z-index: -2;
    opacity: 0.6;
}


@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

.container {
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Estilos del encabezado */
header {
    background-color: rgba(10, 15, 30, 0.85);
    color: #00ffea;
    padding: 1.5rem 0;
    text-align: center;
    border-radius: 0;
    margin-bottom: 2rem;
    border: 1px solid #00a2ff;
    box-shadow: 
        0 0 20px rgba(0, 162, 255, 0.3),
        inset 0 0 20px rgba(0, 162, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 98vw;
    margin-left: calc(-49vw + 50%);
    margin-right: calc(-49vw + 50%);
    max-width: 100vw;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #00ffea;
    position: relative;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 1px;
    color: #7ff0ff;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff0000;
}

.status-dot.active {
    background-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 0.9rem;
    color: #7ff0ff;
}

.flicker {
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.3;
    }
}

/* Estilos de las secciones principales */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Estilos de las tarjetas holográficas */
.card {
    background-color: rgba(15, 20, 40, 0.7);
    border-radius: 0;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #0066ff;
    transition: all 0.3s ease;
    
}

.card.holographic {
    background: 
        linear-gradient(135deg, rgba(10, 20, 40, 0.9) 0%, rgba(5, 15, 35, 0.9) 100%);
    box-shadow: 
        0 0 25px rgba(0, 102, 255, 0.3),
        inset 0 0 25px rgba(0, 102, 255, 0.1);
}

.card.holographic:hover {
    box-shadow: 
        0 0 35px rgba(0, 162, 255, 0.5),
        inset 0 0 25px rgba(0, 162, 255, 0.2);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #0066ff;
    position: relative;
}

.card-header h2 {
    color: #00ccff;
    margin-bottom: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00ffea;
    box-shadow: 0 0 10px #00ffea;
    animation: pulse 2s infinite;
}

/* Estilos del formulario */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #7ff0ff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(0, 20, 40, 0.7);
    border: 1px solid #0055aa;
    border-radius: 0;
    color: #00ffea;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
    background-color: rgba(0, 30, 60, 0.8);
}

.input-with-unit {
    position: relative;
    display: flex;
}

.input-with-unit .form-control {
    padding-right: 90px;
}

.input-unit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #00aaff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilos de las opciones de radio */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .radio-grid {
        grid-template-columns: 1fr;
    }
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 30, 60, 0.5);
    border: 1px solid #004488;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.radio-label:hover {
    background-color: rgba(0, 50, 100, 0.7);
    border-color: #00aaff;
}

.radio-option input[type="radio"]:checked + .radio-label {
    background-color: rgba(0, 80, 120, 0.7);
    border-color: #00ffea;
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.5);
}

.radio-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #00ccff;
}

.radio-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaddff;
}

/* Estilos de los botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #004488 0%, #0066cc 100%);
    color: #ffffff;
    border: 1px solid #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    width: 100%;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0055aa 0%, #0088ff 100%);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, #008844 0%, #00aa66 100%);
    color: #ffffff;
    border: 1px solid #00ffaa;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
    width: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #00aa55 0%, #00cc88 100%);
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.6);
    transform: translateY(-3px);
}

/* Estilos de la tabla */
.table-container {
    overflow-x: auto;
    padding: 20px;
    margin: 1rem 0;
    border: 1px solid #0055aa;
    background-color: rgba(0, 15, 30, 0.7);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    padding: 1rem;
    text-align: left;
    background-color: rgba(0, 40, 80, 0.8);
    font-weight: 600;
    color: #00ccff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 2px solid #00aaff;
}

table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #004488;
    color: #aaddff;
    font-size: 0.9rem;
}

table tr:hover {
    background-color: rgba(0, 60, 120, 0.3);
}

.data-id {
    color: #ffaa00;
    font-weight: bold;
}

.data-amount {
    color: #00ffaa;
    font-weight: bold;
}

/* Estilos de las estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.8) 0%, rgba(0, 20, 40, 0.9) 100%);
    color: #aaddff;
    padding: 1.5rem;
    border: 1px solid #0088ff;
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 0 25px rgba(0, 136, 255, 0.4);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #00ccff;
    text-align: center;
    border-bottom: 1px solid #0088ff;
    padding-bottom: 0.5rem;
}

.stat-data {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-data p {
    display: flex;
    justify-content: space-between;
}

.stat-label {
    color: #7ff0ff;
    font-size: 0.9rem;
}

.stat-value {
    color: #00ffaa;
    font-weight: bold;
    font-size: 1rem;
}

.total-card {
    background: linear-gradient(135deg, rgba(0, 60, 100, 0.9) 0%, rgba(0, 30, 60, 1) 100%);
    border-color: #00ffea;
    grid-column: 1 / -1;
}

.total-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: #00ffea;
    text-shadow: 0 0 10px #00ffea;
    margin: 1rem 0;
}

.stat-subtext {
    text-align: center;
    color: #7ff0ff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilos del estado de carga */
.loading {
    text-align: center;
    padding: 2rem;
    color: #00ccff;
}

.loading-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spinner {
    border: 3px solid rgba(0, 40, 80, 0.3);
    border-top: 3px solid #00ffea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 1rem;
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos de mensajes */
.message {
    padding: 1rem;
    border-radius: 0;
    margin: 1rem 0;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border: 1px solid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success {
    background-color: rgba(0, 80, 40, 0.7);
    color: #00ffaa;
    border-color: #00ffaa;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
}

.error {
    background-color: rgba(80, 0, 0, 0.7);
    color: #ff5555;
    border-color: #ff5555;
    box-shadow: 0 0 15px rgba(255, 85, 85, 0.3);
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #ffaa00;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Panel de estado del sistema */
.system-footer {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(10, 20, 40, 0.8);
    border: 1px solid #0055aa;
    box-shadow: 0 0 15px rgba(0, 85, 170, 0.2);
}

.system-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #004488;
}

.status-label {
    color: #7ff0ff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-value {
    color: #00ffaa;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}

.status-value.error {
    color: #ff5555;
    text-shadow: 0 0 5px #ff5555;
}
/* AGREGA ESTOS NUEVOS ESTILOS AL FINAL DEL ARCHIVO */

/* Efecto de cuadrícula holográfica */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Efecto de distorsión holográfica */
.hologram-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, transparent 50%, rgba(0, 255, 234, 0.05) 50%);
    background-size: 100% 4px;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    animation: hologramDistortion 8s ease-in-out infinite;
}

@keyframes hologramDistortion {
    0%, 100% { transform: translateY(0) skewY(0deg); }
    50% { transform: translateY(-20px) skewY(0.5deg); }
}

/* Efecto de glitch ocasional */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 255, 234, 0.1) 50%, transparent 50%),
        linear-gradient(90deg, rgba(255, 0, 234, 0.1) 50%, transparent 50%);
    background-size: 100% 2px, 2px 100%;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    animation: glitch 15s infinite;
}

@keyframes glitch {
    0%, 95% { opacity: 0; }
    96% { opacity: 0.3; transform: translateX(-5px); }
    97% { opacity: 0.5; transform: translateX(5px); }
    98% { opacity: 0.3; transform: translateX(-5px); }
    99% { opacity: 0.5; transform: translateX(5px); }
    100% { opacity: 0; }
}

/* Mejoras para las tarjetas holográficas */
.card.holographic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #0c033b, #040b89, #044f49, #000000);
    z-index: -1;
    border-radius: 0;
    animation: borderGlow 3s linear infinite;
    opacity: 0.5;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Mejoras para el título */
header h1 {
    background: linear-gradient(90deg, 
        #00ffea, #0088ff, #00ffea);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s ease-in-out infinite alternate;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Efecto de escaneo en las filas de la tabla */
table tr {
    position: relative;
    overflow: hidden;
}

table tr::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 234, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

table tr:hover::after {
    left: 100%;
    transition: left 1s ease;
}

/* Mejoras para los botones */
.btn {
    background: linear-gradient(45deg, 
        rgba(0, 68, 136, 0.9), 
        rgba(0, 102, 204, 0.9));
    border: 2px solid #00ffea;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 255, 234, 0.3) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* Efecto de partículas flotantes */
.floating-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-particles span {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background: #00ffea;
    border-radius: 50%;
    opacity: 0;
    animation: float 10s linear infinite;
}

.floating-particles span:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}
.floating-particles span:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}
.floating-particles span:nth-child(3) {
    top: 40%;
    left: 40%;
    animation-delay: 4s;
}
.floating-particles span:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: 6s;
}
.floating-particles span:nth-child(5) {
    top: 30%;
    left: 90%;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* Mejoras para inputs */
.form-control {
    background: rgba(0, 20, 40, 0.5);
    border: 2px solid #0066ff;
    position: relative;
}

.form-control:focus {
    border-color: #00ffea;
    box-shadow: 
        0 0 20px rgba(0, 255, 234, 0.5),
        inset 0 0 10px rgba(0, 255, 234, 0.1);
}

/* Indicadores de datos en tiempo real */
.realtime-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #00ffaa;
}

.realtime-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

/* Efecto de carga de datos */
.data-stream {
    position: relative;
}

.data-stream::before {
    content: '█ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: rgba(0, 255, 234, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1;
    opacity: 0.5;
    overflow: hidden;
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Efecto de terminal typing en mensajes */
.terminal-text {
    font-family: 'Courier New', monospace;
    border-right: 2px solid #00ffea;
    animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: #00ffea; }
}
.filters-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #00ffea;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.btn-pagination {
    background: rgba(0, 255, 234, 0.1);
    border: 1px solid #00ffea;
    color: #00ffea;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pagination:hover {
    background: rgba(0, 255, 234, 0.2);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #00ffea;
    font-family: 'Share Tech Mono', monospace;
}
/* Estilos para los botones de acción */
.data-actions {
    text-align: center;
    white-space: nowrap;
}

.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 8px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-edit {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.btn-edit:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.1);
}

.btn-delete {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.btn-delete:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: scale(1.1);
}

.btn-history {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.btn-history:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: scale(1.1);
}

/* Estilos para modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
    border: 1px solid #00ffff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.modal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-bottom: 1px solid #00ffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #00ffff;
    font-size: 18px;
}

.btn-close {
    background: none;
    border: none;
    color: #ff5555;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-close:hover {
    color: #ff0000;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #00ffff;
    text-align: right;
    background: rgba(0, 0, 0, 0.3);
}

/* Estilos para JSON data */
.json-data {
    max-width: 300px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px;
    font-size: 12px;
    max-height: 150px;
    overflow-y: auto;
}

.json-data div {
    margin: 3px 0;
    padding-bottom: 3px;
    border-bottom: 1px dashed #444;
}

.json-data div:last-child {
    border-bottom: none;
}

.json-data strong {
    color: #00ffff;
}

/* Botón para volver */
.btn-back {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #666;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Estilos para filtros extendidos */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

/* Responsive */
@media (max-width: 768px) {
    .data-actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-action {
        width: 100%;
        margin: 2px 0;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
}
.full-width-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 20px;
    margin-bottom: 2rem;
    box-sizing: border-box;
}
/* Estilos para Gastos Categorizados */
.form-section {
    background: rgba(10, 25, 50, 0.5);
    padding: 20px;
    border: 1px solid #0066ff;
    margin-bottom: 20px;
}

.form-section h3 {
    color: #00ccff;
    margin-bottom: 20px;
    border-bottom: 1px solid #0066ff;
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Estados de gastos */
.estado-pendiente {
    color: #ff9900;
    background: rgba(255, 153, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.estado-cancelado {
    color: #00cc00;
    background: rgba(0, 204, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.estado-vencido {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    animation: blinkRed 2s infinite;
}

.estado-proximo-vencer {
    color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    animation: blinkYellow 2s infinite;
}

@keyframes blinkRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blinkYellow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Estilos para modal de autenticación */
#modalAuthGastos {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Botón de cerrar sesión */
.btn-logout {
    background: linear-gradient(135deg, #ff5555 0%, #cc0000 100%);
    border: 1px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #ff7777 0%, #ee0000 100%);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

/* Icono de candado en el header de la página de gastos */
.header-lock {
    color: #00ffea;
    margin-left: 10px;
    animation: pulse 2s infinite;
}



/* Badge de categorías */
.badge-categoria {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin: 2px;
}

.badge-carnicos { background: #ff6b6b; color: white; }
.badge-barra { background: #4ecdc4; color: white; }
.badge-abarrotes { background: #45b7d1; color: white; }
.badge-apoyos { background: #96ceb4; color: white; }
.badge-artistas { background: #ffeaa7; color: #333; }
.badge-pasajes { background: #dda0dd; color: white; }
.badge-servicios { background: #98d8c8; color: white; }
.badge-chorizos { background: #f7a1c4; color: white; }
.badge-planillas { background: #a2d5f2; color: white; }
.badge-openpay { background: #ffd166; color: #333; }
.badge-impuestos { background: #06d6a0; color: white; }
.badge-otros { background: #8a8a8a; color: white; }

/* Estilos para estadísticas avanzadas */

/* Resultado financiero */
.resultado-financiero {
    text-align: center;
    padding: 30px;
}

.resultado-principal {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px currentColor;
}

.resultado-principal.ganancia {
    color: #00ffaa;
}

.resultado-principal.perdida {
    color: #ff5555;
}

.resultado-detalle {
    color: #aaddff;
    font-size: 1.1em;
}

/* Margen de ganancia */
.margen-ganancia {
    text-align: center;
    padding: 20px;
}

.margen-valor {
    font-size: 3em;
    font-weight: bold;
    margin: 15px 0;
}

.margen-valor.positivo {
    color: #00ffaa;
}

.margen-valor.negativo {
    color: #ff5555;
}

.margen-descripcion {
    color: #aaddff;
    margin: 10px 0;
    font-size: 1.1em;
}

.margen-bar {
    height: 10px;
    background: rgba(0, 102, 204, 0.3);
    border-radius: 5px;
    margin: 20px auto;
    max-width: 300px;
    overflow: hidden;
}

.margen-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ccff, #00ffaa);
    border-radius: 5px;
}

/* Créditos pendientes */
.creditos-pendientes {
    text-align: center;
    padding: 20px;
}

.credito-total {
    font-size: 2em;
    margin-bottom: 15px;
}

.credito-total.pendiente {
    color: #ffaa00;
}

.credito-total.cancelado {
    color: #00ffaa;
}

.credito-alerta, .credito-ok {
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.credito-alerta {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid #ffaa00;
    color: #ffaa00;
}

.credito-ok {
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid #00ffaa;
    color: #00ffaa;
}

/* KPIs */
.kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kpi-item {
    background: rgba(0, 51, 102, 0.3);
    border: 1px solid rgba(0, 204, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.kpi-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 204, 255, 0.5);
    border-color: #00ccff;
}

.kpi-icon {
    font-size: 2.5em;
    color: #00ccff;
    margin-right: 15px;
}

.kpi-content {
    flex: 1;
}

.kpi-valor {
    font-size: 1.8em;
    font-weight: bold;
    color: #00ffea;
    margin-bottom: 5px;
}

.kpi-valor.positivo {
    color: #00ffaa;
}

.kpi-valor.negativo {
    color: #ff5555;
}

.kpi-label {
    color: #aaddff;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Recomendaciones */
.recomendaciones {
    padding: 20px;
}

.recomendaciones-list {
    list-style: none;
    padding: 0;
}

.recomendaciones-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(0, 51, 102, 0.3);
    border-left: 4px solid #00ccff;
    border-radius: 5px;
    color: #aaddff;
    display: flex;
    align-items: flex-start;
}

.recomendaciones-list li i {
    margin-right: 10px;
    margin-top: 3px;
}

/* Montos y desgloses */
.monto-total {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 204, 255, 0.3);
}

.monto-label {
    display: block;
    color: #aaddff;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.monto-valor {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 0 0 15px currentColor;
}

.monto-valor.ingresos {
    color: #00ffaa;
}

.monto-valor.gastos {
    color: #ff5555;
}

.desglose-ingresos, .desglose-gastos {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.desglose-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(0, 51, 102, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.desglose-item:hover {
    background: rgba(0, 51, 102, 0.4);
    transform: translateX(5px);
}

.desglose-label {
    color: #aaddff;
    flex: 1;
}

.desglose-label i {
    margin-right: 8px;
    color: #00ccff;
}

.desglose-valor {
    font-weight: bold;
    margin: 0 15px;
    color: #00ffea;
}

.desglose-porcentaje {
    color: #888;
    font-size: 0.9em;
}

/* Tabla resumen */
#tablaResumen {
    width: 100%;
    border-collapse: collapse;
}

#tablaResumen th {
    background: rgba(0, 51, 102, 0.5);
    color: #00ccff;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #00ccff;
}

#tablaResumen td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 204, 255, 0.2);
    color: #aaddff;
}

.fila-ingreso {
    background: rgba(0, 255, 170, 0.05);
}

.fila-gasto {
    background: rgba(255, 85, 85, 0.05);
}

.fila-total {
    background: rgba(0, 51, 102, 0.5);
    font-weight: bold;
    border-top: 2px solid #00ccff;
}

/* Contenedores de gráficos */
.chart-container {
    position: relative;
    width: 100%;
    padding: 20px;
    background: rgba(0, 51, 102, 0.2);
    border-radius: 10px;
    margin-top: 20px;
}

/* Botones adicionales */
.btn-logout {
    background: linear-gradient(135deg, #ff5555, #ff0000);
    border: 1px solid #ff5555;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 0 20px rgba(255, 85, 85, 0.7);
}

/* Animación de carga específica */
@keyframes pulse-analysis {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading.analysis {
    animation: pulse-analysis 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .resultado-principal {
        font-size: 1.8em;
    }
    
    .margen-valor {
        font-size: 2em;
    }
    
    .kpis-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .desglose-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .desglose-valor, .desglose-porcentaje {
        margin-left: 30px;
        margin-top: 5px;
    }
}
/* Agrega al final de styles.css */
.full-width {
    width: 100%;
    grid-column: 1 / -1;
}

.system-footer.full-width {
    margin-top: 20px;
    background: rgba(0, 10, 20, 0.8);
    border: 1px solid #00ccff;
    border-radius: 8px;
    padding: 15px;
}
/* Contenedor de gráfico de ancho completo */
.chart-container-full-width {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 20, 40, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.1);
}

/* Contenedor de gráfico con altura fija */
.chart-container-fixed-height {
    width: 100%;
    height: 500px; /* Altura máxima fija */
    max-height: 500px; /* Límite máximo */
    overflow-y: auto; /* Scroll vertical si es necesario */
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 20, 40, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.1);
}

/* Asegurar que el canvas dentro se ajuste al contenedor */
.chart-container-full-width canvas,
.chart-container-fixed-height canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 400px; /* Altura máxima para el canvas */
}

/* Para la tarjeta de distribución detallada */
.full-width-card {
    grid-column: 1 / -1; /* Ocupa todas las columnas */
    width: 100%;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .chart-container-fixed-height {
        height: 400px;
        max-height: 400px;
    }
    
    .chart-container-full-width {
        overflow-x: scroll;
    }
}
/* Mensaje de éxito para Excel */
.excel-success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.excel-success-content {
    background: linear-gradient(135deg, #001428, #002244);
    border: 2px solid #00ffea;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(0, 255, 234, 0.3);
    animation: pulse 2s infinite;
}

.excel-success-content i {
    font-size: 60px;
    color: #21a366; /* Color verde Excel */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(33, 163, 102, 0.5);
}

.excel-success-content h3 {
    color: #00ffea;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.excel-success-content p {
    color: #aaddff;
    margin-bottom: 25px;
    line-height: 1.5;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 234, 0.3); }
    50% { box-shadow: 0 0 60px rgba(0, 255, 234, 0.5); }
}
/* Estilos para propinas */
.data-propina {
    text-align: center;
}

.propina-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffcc00);
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: pulse-gold 2s infinite;
}

.propina-badge small {
    font-size: 0.8em;
    opacity: 0.9;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* Estilos para estadísticas de propinas */
.estadisticas-propinas {
    padding: 20px;
}

.propina-total-general {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.propina-total-monto {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin: 10px 0;
}

.propina-total-cantidad {
    color: #aaddff;
    font-size: 0.9em;
}

.propinas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.propina-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.propina-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.propina-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.propina-header h4 {
    color: #ffd700;
    margin: 0;
    font-size: 1.1em;
}

.propina-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.propina-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.propina-label {
    color: #aaddff;
    font-size: 0.9em;
}

.propina-valor {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
}

.propina-progress {
    margin-top: 10px;
    height: 6px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.propina-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffcc00);
    border-radius: 3px;
    transition: width 1s ease;
}
/* Estilos para el resumen de turno */
.turno-summary {
    background: linear-gradient(145deg, rgba(0, 20, 40, 0.9), rgba(0, 30, 60, 0.9));
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.turno-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ccff, transparent);
    animation: pulse 2s infinite;
}

.turno-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
    padding-bottom: 8px;
}

.turno-header h4 {
    color: #00ccff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.turno-header i {
    color: #00ffea;
}

.turno-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.turno-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 40, 80, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(0, 150, 255, 0.1);
    transition: all 0.3s ease;
}

.turno-item:hover {
    background: rgba(0, 60, 120, 0.5);
    border-color: rgba(0, 200, 255, 0.3);
    transform: translateY(-2px);
}

.turno-item.highlight {
    background: linear-gradient(135deg, rgba(0, 80, 160, 0.7), rgba(0, 120, 200, 0.7));
    border-color: #00aaff;
    grid-column: span 2;
    font-weight: bold;
}

.turno-label {
    color: #aaddff;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
}

.turno-value {
    color: #00ffea;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.turno-item.highlight .turno-value {
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}
/* Estilos para colores de montos en historial de caja */
.ingreso-color {
    color: #00ff9d !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.gasto-color {
    color: #ff3d71 !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 61, 113, 0.5);
}

/* Opcional: Añadir iconos de flecha */
.ingreso-color::before {
    content: '↑ ';
    font-weight: bold;
}

.gasto-color::before {
    content: '↓ ';
    font-weight: bold;
}
/* --- OPTIMIZACIONES PARA MÓVIL (SISTEMA DE INVENTARIO) --- */

@media (max-width: 768px) {
    /* Ajuste de Contenedor */
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    /* Transformar Filtros a una sola columna */
    .filters-container {
        grid-template-columns: 1fr !important; /* Fuerza una columna */
        gap: 10px;
    }

    .filter-group {
        width: 100%;
    }

    .btn-warning, .btn-small {
        width: 100%;
        height: 50px !important; /* Más grandes para dedos */
    }

    /* --- MAGIA: Transformar Tabla en Tarjetas --- */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        background: rgba(0, 20, 40, 0.6);
        border: 1px solid #0066ff;
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 0 15px rgba(0, 162, 255, 0.2);
    }

    td {
        border: none !important;
        position: relative;
        padding-left: 50% !important;
        text-align: right !important;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(0, 162, 255, 0.1) !important;
    }

    td:last-child {
        border-bottom: none !important;
        text-align: center !important;
        padding-left: 10px !important;
        background: rgba(0, 255, 234, 0.05);
        margin-top: 10px;
    }

    /* Etiquetas para cada dato */
    td:before {
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #00ccff;
        content: attr(data-label); /* Necesita ajuste en HTML */
        text-transform: uppercase;
        font-size: 0.8rem;
    }

    /* Botón de edición en móvil */
    .btn-action {
        width: 100%;
        padding: 12px !important;
        font-size: 1.1rem;
    }

    /* Modales responsivos */
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}