/* 📺 TELETEXTO MODE - Estilo Retro Años 80/90 */

body.teletexto-mode {
    background: #000033 !important;
    font-family: 'Courier New', 'Courier', monospace !important;
    color: #00FF00 !important;
    overflow-x: hidden;
}

/* Efecto de escaneado CRT */
body.teletexto-mode::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 9999;
}

/* Container teletexto */
.teletexto-mode .container {
    max-width: 100% !important;
    padding: 0 !important;
    background: #000033 !important;
}

/* Header teletexto */
.teletexto-mode header {
    background: #0000AA !important;
    border: 3px solid #00FFFF !important;
    border-radius: 0 !important;
    padding: 1rem !important;
    margin: 0 !important;
}

.teletexto-mode .logo-text h1 {
    color: #FFFF00 !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    text-shadow: 2px 2px #FF00FF !important;
    letter-spacing: 3px !important;
}

.teletexto-mode .logo-text h1 span {
    color: #00FFFF !important;
}

.teletexto-mode .last-draw {
    color: #00FF00 !important;
    font-size: 1rem !important;
}

/* Ocultar imágenes en modo teletexto */
.teletexto-mode .logo-img,
.teletexto-mode .logo-bonoloto {
    display: none !important;
}

/* Botones header */
.teletexto-mode .btn-action {
    background: #00AA00 !important;
    color: #FFFF00 !important;
    border: 2px solid #00FF00 !important;
    border-radius: 0 !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.teletexto-mode .btn-action:hover {
    background: #00FF00 !important;
    color: #000033 !important;
    transform: none !important;
}

/* Panels */
.teletexto-mode .glass-panel {
    background: #000066 !important;
    border: 3px double #00FFFF !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 2rem !important;
}

.teletexto-mode .panel-header {
    background: #0000AA !important;
    border-bottom: 2px solid #FFFF00 !important;
    padding: 0.5rem 1rem !important;
}

.teletexto-mode .panel-header h2 {
    color: #FFFF00 !important;
    font-size: 1.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* Preset buttons teletexto */
.teletexto-mode .btn-preset {
    background: #AA0000 !important;
    color: #FFFF00 !important;
    border: 2px solid #FF0000 !important;
    border-radius: 0 !important;
    font-weight: bold !important;
    padding: 0.75rem !important;
}

.teletexto-mode .btn-preset.active {
    background: #FF0000 !important;
    color: #FFFFFF !important;
    border-color: #FFFF00 !important;
    animation: blink-teletexto 1s infinite !important;
}

.teletexto-mode .preset-subtitle {
    color: #00FFFF !important;
}

@keyframes blink-teletexto {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.7;
    }
}

/* Inputs y selects */
.teletexto-mode input[type="date"],
.teletexto-mode select,
.teletexto-mode .select-cliente {
    background: #000000 !important;
    color: #00FF00 !important;
    border: 2px solid #00FF00 !important;
    border-radius: 0 !important;
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
}

.teletexto-mode label {
    color: #00FFFF !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

/* Botón escrutar */
.teletexto-mode .btn-escrutar {
    background: #FF00FF !important;
    color: #FFFF00 !important;
    border: 3px solid #FFFF00 !important;
    border-radius: 0 !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 10px #FF00FF !important;
}

.teletexto-mode .btn-escrutar:hover {
    background: #FFFF00 !important;
    color: #FF00FF !important;
    transform: none !important;
}

/* Sorteo cards */
.teletexto-mode .sorteo-card {
    background: #001166 !important;
    border: 3px solid #00FFFF !important;
    border-radius: 0 !important;
    padding: 1rem !important;
}

.teletexto-mode .sorteo-fecha {
    color: #FFFF00 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

/* Bolas de números */
.teletexto-mode .ball-mini {
    background: #FFFF00 !important;
    color: #000033 !important;
    border: 3px solid #FF00FF !important;
    border-radius: 0 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    width: 40px !important;
    height: 40px !important;
}

.teletexto-mode .ball-mini.comp {
    background: #00FFFF !important;
    color: #000033 !important;
    border-color: #0000FF !important;
}

.teletexto-mode .ball-mini.reint {
    background: #FF00FF !important;
    color: #FFFF00 !important;
    border-color: #FFFF00 !important;
}

/* Premios */
.teletexto-mode .premio-row {
    border-bottom: 1px dashed #00FF00 !important;
}

.teletexto-mode .premio-cat {
    color: #00FFFF !important;
    font-weight: bold !important;
}

.teletexto-mode .premio-ganadores {
    color: #00FF00 !important;
    font-weight: bold !important;
}

.teletexto-mode .premio-importe {
    color: #FFFF00 !important;
    font-weight: bold !important;
}

.teletexto-mode .sorteo-bote-destacado {
    background: #FF0000 !important;
    color: #FFFF00 !important;
    border: 3px solid #FFFF00 !important;
    animation: blink-teletexto 1s infinite !important;
}

/* Lugares */
.teletexto-mode .lugares-section {
    background: #003300 !important;
    border: 3px solid #00FF00 !important;
    color: #FFFF00 !important;
}

.teletexto-mode .lugares-section strong {
    color: #00FFFF !important;
}

.teletexto-mode .lugares-section p {
    color: #FFFF00 !important;
    background: #004400 !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0.25rem 0 !important;
    border-left: 3px solid #00FF00 !important;
}

/* Stats */
.teletexto-mode .sorteo-stats {
    color: #00FF00 !important;
    border-top: 2px dashed #00FFFF !important;
    padding-top: 0.5rem !important;
}

/* Checkbox */
.teletexto-mode .checkbox-group label {
    color: #00FFFF !important;
}

/* Escrutinio results */
.teletexto-mode .escrutinio-card {
    background: #001166 !important;
    border: 3px solid #00FF00 !important;
}

.teletexto-mode .escrutinio-card.has-prize {
    border-color: #FFFF00 !important;
    box-shadow: 0 0 20px #FFFF00 !important;
}

.teletexto-mode .cliente-nombre {
    color: #FFFF00 !important;
}

.teletexto-mode .cliente-total {
    color: #00FF00 !important;
}

.teletexto-mode .cliente-total.ganador {
    color: #FF00FF !important;
    animation: blink-teletexto 1s infinite !important;
}

/* Números apostados en escrutinio */
.teletexto-mode .numero-apostado {
    background: #000000 !important;
    color: #00FF00 !important;
    border: 2px solid #00FF00 !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0.1rem !important;
    display: inline-block !important;
    font-weight: bold !important;
}

.teletexto-mode .numero-acertado {
    background: #00AA00 !important;
    color: #FFFF00 !important;
    border-color: #FFFF00 !important;
    box-shadow: 0 0 10px #00FF00 !important;
}

.teletexto-mode .numero-complementario {
    background: #0000AA !important;
    color: #00FFFF !important;
    border-color: #00FFFF !important;
}

.teletexto-mode .cliente-apuesta {
    background: #000033 !important;
    padding: 0.5rem !important;
}

.teletexto-mode .apuesta-info {
    color: #00FFFF !important;
}

/* Botón toggle teletexto */
.btn-teletexto {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FF00FF, #8B00FF);
    border: 2px solid #FFFF00;
    border-radius: 0.5rem;
    color: #FFFF00;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-teletexto:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #FF00FF;
}

.teletexto-mode .btn-teletexto {
    background: #00FF00 !important;
    color: #000033 !important;
    border-color: #00FF00 !important;
    animation: blink-teletexto 2s infinite;
}

/* Efecto de parpadeo para elementos destacados */
@keyframes glow-teletexto {

    0%,
    100% {
        text-shadow: 0 0 5px currentColor;
    }

    50% {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

.teletexto-mode .premio-importe {
    animation: glow-teletexto 2s infinite;
}