/*
================================================================================
  SECCIÓN 0: RESETEO GLOBAL Y BOX-SIZING
================================================================================
*/
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/*
================================================================================
  AT&T Order Checker - iOS Liquid Glass Theme v2.0
================================================================================
  Autor de la Modificación: darkboy
  Fecha de Actualización: 2024-10-14
  Descripción:
  Este archivo CSS transforma la interfaz de la v1 (Glassmorphism + Soft UI)
  a una estética moderna "Liquid Glass" inspirada en los principios de diseño
  de iOS. Se ha puesto especial atención en la paleta de colores nativa,
  las animaciones fluidas y una tipografía limpia para crear una experiencia
  de usuario premium.

  Principales Cambios:
  - TEMA CLARO POR DEFECTO: La interfaz ahora inicia en un tema claro y limpio.
  - PALETA DE COLORES iOS: Variables CSS actualizadas con los colores de sistema de Apple.
  - LIQUID GLASS MEJORADO: Fondos con desenfoque (backdrop-filter) más pronunciado.
  - SOMBRAS MODERNAS: Se eliminó el "Soft UI" en favor de sombras más sutiles y difusas.
  - ANIMACIONES NATIVAS: Se implementó un nuevo spinner y un toggle switch con animación tipo iOS.
  - TIPOGRAFÍA Y ESPACIADO: Refinamiento global para una mayor legibilidad y coherencia.
================================================================================
*/

/*
================================================================================
  SECCIÓN 1: VARIABLES DE TEMA (PALETA DE COLORES)
================================================================================
  Definimos aquí toda la paleta de colores para facilitar la consistencia
  y los cambios de tema. El tema por defecto es el claro.
*/

:root {
    /* --- TEMA CLARO (POR DEFECTO) --- */
    /* Colores de Fondo y Superficies */
    --bg-color: #f0f2f5; /* Un gris muy claro, estándar en apps de iOS */
    --glass-bg: rgba(242, 242, 247, 0.75); /* Material "grueso" de iOS */
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;

    /* Sombras y Elevación */
    --shadow-color: rgba(0, 0, 0, 0.08);
    
    /* Colores de Acento y Sistema (Paleta Nativa de iOS) */
    --accent-color: #007aff;      /* System Blue */
    --success-color: #34c759;     /* System Green */
    --error-color: #ff3b30;       /* System Red */
    --warning-color: #ff9500;     /* System Orange */
    --terminal-yellow: #ffcc00;   /* System Yellow */

    /* Colores de Texto */
    --text-primary: #000000;
    --text-secondary: rgba(60, 60, 67, 0.6);
    --text-placeholder: rgba(60, 60, 67, 0.3);
    --text-on-accent: #ffffff;
    --terminal-text-color: #333333;
}

body.dark-theme {
    /* --- TEMA OSCURO (OPCIONAL) --- */
    /* Colores de Fondo y Superficies */
    --bg-color: #000000;
    --glass-bg: rgba(28, 28, 30, 0.75); /* Material oscuro "grueso" de iOS */
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-bg: #1c1c1e;

    /* Sombras y Elevación */
    --shadow-color: rgba(0, 0, 0, 0.2);

    /* Colores de Acento y Sistema (Versiones para Dark Mode) */
    --accent-color: #0a84ff;
    --success-color: #30d158;
    --error-color: #ff453a;
    --warning-color: #ff9f0a;
    --terminal-yellow: #ffd60a;

    /* Colores de Texto */
    --text-primary: #ffffff;
    --text-secondary: rgba(235, 235, 245, 0.6);
    --text-placeholder: rgba(235, 235, 245, 0.3);
    --text-on-accent: #ffffff;
    --terminal-text-color: var(--success-color);
}

/*
================================================================================
  SECCIÓN 2: ESTILOS GLOBALES Y DE BASE
================================================================================
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === DEMO MODE - BLUR EFFECT === */
.demo-mode .sensitive-data,
.demo-mode .sensitive-data-display span:not(.icon) {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.demo-mode .sensitive-data:hover,
.demo-mode .sensitive-data-display:hover span:not(.icon) {
    filter: blur(0);
}


/*
================================================================================
  SECCIÓN 3: COMPONENTES PRINCIPALES (CONTENEDORES Y TARJETAS)
================================================================================
*/

/* Contenedor principal con el efecto Liquid Glass */
.glassmorphism-soft-ui {
    background: var(--glass-bg);
    border-radius: 24px;
    box-shadow: 0 10px 40px var(--shadow-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: background-color 0.4s ease, border-color 0.4s ease;
    overflow: hidden; /* <-- SOLUCIÓN #1: Previene el desbordamiento y arregla el zoom */
}

/* Tarjetas y superficies internas. Reemplaza el antiguo .soft-ui-card */
.soft-ui-card, .soft-ui-terminal {
    background-color: var(--card-bg);
    border-radius: 18px;
    /* Sombra más sutil y moderna que el Soft UI */
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 25px;
    margin-bottom: 20px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--glass-border);
}


/*
================================================================================
  SECCIÓN 4: CABECERA, NAVEGACIÓN Y TOGGLES
================================================================================
*/

.app-header {
    text-align: center;
    margin-top: 30px; 
    margin-bottom: 40px;
}

.app-header h1 {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: none; /* Eliminamos el text-shadow anterior para un look más limpio */
    margin: 0 0 30px 0; 
    transition: color 0.4s ease;
}

.app-header h1 strong {
    color: var(--accent-color);
}

.header-toggles {
    display: flex;
    justify-content: center;
    gap: 25px;
    align-items: center;
    margin-top: 15px;
}

.header-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.theme-icon {
    font-size: 1.4em;
}

/* --- Toggle Switch Estilo iOS --- */
.switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9e9eb;
    transition: background-color .4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.dark-theme .slider {
    background-color: #39393d;
}

.slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}

input:checked + .slider {
    background-color: var(--success-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/*
================================================================================
  SECCIÓN 5: LAYOUT PRINCIPAL Y FORMULARIO
================================================================================
*/

.main-grid {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.left-panel, .right-panel {
    min-width: 0; /* Previene overflow en grids */
}

@media (min-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* === FORM STYLES === */
.checker-form h2 {
    color: var(--accent-color);
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 0;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95em;
    color: var(--text-secondary);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: var(--bg-color);
    color: var(--text-primary);
    /* Sombra interna sutil, reemplazando el soft-ui */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1em;
}

.input-group input::placeholder {
    color: var(--text-placeholder);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.submit-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.submit-button:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(0, 122, 255, 0.35);
}

.submit-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 122, 255, 0.3);
}

.accuracy-guarantee {
    text-align: center;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 20px;
}


/*
================================================================================
  SECCIÓN 6: PANTALLA DE CARGA Y ESTADOS
================================================================================
*/

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    padding: 20px;
}

.loading-message {
    margin-top: 20px;
    font-size: 1em;
    color: var(--text-secondary);
}

/* --- Nuevo Spinner Estilo iOS --- */
.spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top-color: var(--accent-color);
    animation: ios-spinner-rotate 0.7s linear infinite;
}
body.dark-theme .spinner:before {
    border: 3px solid #444;
    border-top-color: var(--accent-color);
}

@keyframes ios-spinner-rotate {
    100% {
        transform: rotate(360deg);
    }
}
/* Se mantiene el spinner SVG anterior como fallback por si es necesario */
#loading-spinner {
    display: none;
}


/* --- Estados de Éxito y Error --- */
.status-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    min-height: 250px;
}

.status-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.status-message {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
}

/* Animaciones de Checkmark y Cross (Colores actualizados) */
.checkmark, .cross {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
    stroke-width: 2.5;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 10px auto;
    box-shadow: inset 0px 0px 0px var(--card-bg);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark {
    stroke: var(--success-color);
    box-shadow: inset 0px 0px 0px var(--success-color);
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.5;
    stroke-miterlimit: 10;
    stroke: var(--success-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

.cross {
    stroke: var(--error-color);
    box-shadow: inset 0px 0px 0px var(--error-color);
}
.cross__path {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px; } }


/*
================================================================================
  SECCIÓN 7: TERMINAL
================================================================================
*/

.terminal-container {
    padding: 0;
    overflow: hidden;
    margin-top: 0;
}

.terminal-header {
    background-color: #e8e8e8;
    padding: 10px 12px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
body.dark-theme .terminal-header {
    background-color: #3a3a3c;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terminal-header .button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.terminal-header .red { background-color: #ff5f56; }
.terminal-header .yellow { background-color: #ffbd2e; }
.terminal-header .green { background-color: #27c93f; }

.terminal-header .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9em;
}

.terminal-body {
    background-color: var(--card-bg);
    color: var(--terminal-text-color);
    font-family: "SF Mono", "Menlo", "Monaco", monospace;
    padding: 15px;
    height: 140px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-size: 0.9em;
}


/*
================================================================================
  SECCIÓN 8: DETALLES DE FACTURA (RESULTADOS)
================================================================================
*/

.details-section {
    width: 100%;
    padding: 20px 0;
}

.result-card {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.card-title {
    color: var(--text-primary);
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 0;
}

.card-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 15px;
}
.card-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1em;
    word-break: break-word;
}
.info-item:last-child {
    margin-bottom: 0;
}

.info-item span.icon {
    font-size: 1.4em;
    color: var(--accent-color);
    width: 25px;
    text-align: center;
}
.info-item strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 12px;
    background-color: var(--bg-color);
    border-radius: 12px;
}
.device-info img {
    width: 80px;
    height: auto;
    border-radius: 8px;
}


/*
================================================================================
  SECCIÓN 9: BOTONES DE ACCIÓN Y FOOTER
================================================================================
*/

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.action-buttons button {
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

#savePdfBtn {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
}
#savePdfBtn:hover {
    filter: brightness(1.1);
}

#checkOtherBtn, #resetFormBtn /* Unificamos estilo para botones secundarios */ {
    background-color: var(--bg-color);
    color: var(--accent-color);
    border: 1px solid var(--glass-border);
}
#checkOtherBtn:hover, #resetFormBtn:hover {
    background-color: var(--glass-border);
}


/* === FOOTER === */
.app-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8em;
    color: var(--text-secondary);
}

.security-disclaimer p {
    margin-bottom: 10px;
}


/*
================================================================================
  SECCIÓN 10: MODAL DE BIENVENIDA
================================================================================
*/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    position: relative;
    padding: 30px; 
    max-height: 85vh;
    overflow-y: auto;
    margin: 20px auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}


.modal-title {
    color: var(--text-primary);
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.modal-body p {
    margin: 10px 0 15px;
    line-height: 1.6;
    font-size: 1em;
    color: var(--text-secondary);
}
.modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}
.modal-body a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.modal-body a:hover {
    text-decoration: underline;
}

.api-update-alert {
    color: var(--error-color);
    font-weight: 600;
    border: 1px solid var(--error-color);
    background-color: rgba(255, 59, 48, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-color);
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close-btn:hover {
    background: #ccc;
    color: var(--text-primary);
}
body.dark-theme .modal-close-btn:hover {
    background: #555;
}


/*
================================================================================
  SECCIÓN 11: DISEÑO RESPONSIVO
================================================================================
*/

@media (max-width: 899px) {
    body, .container {
        padding: 10px;
    }
    .main-grid {
        grid-template-columns: 1fr;
    }
    .app-header h1 {
        font-size: 1.8em;
    }
    .soft-ui-card, .soft-ui-terminal {
        padding: 20px;
    }
    .terminal-body {
        height: 120px;
    }
    .action-buttons {
        grid-template-columns: 1fr;
    }
    .status-message {
        font-size: 1em;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-title {
        font-size: 1.3em;
    }
    
    #notification-bar {
        margin: -10px -10px 20px -10px; /* <-- SOLUCIÓN #2: Ajusta el margen para coincidir con el nuevo padding del contenedor */
        border-top-left-radius: 24px; 
        border-top-right-radius: 24px;
    }
}


/* --- ADICIÓN: Estilos para la navegación y botones secundarios --- */

/* Contenedor de los enlaces de navegación */
.header-nav {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio entre los botones */
    margin-bottom: 20px; /* Espacio debajo de la navegación */
    flex-wrap: wrap; /* Permite que los botones pasen a la siguiente línea en pantallas pequeñas */
}

/* Estilo base para los botones-píldora de iOS */
.ios-button-pill {
    display: inline-block;
    padding: 8px 18px; /* Padding para darles forma de botón */
    border-radius: 20px; /* Bordes completamente redondeados */
    text-decoration: none; /* Quitar el subrayado del enlace */
    font-weight: 500; /* Un grosor de fuente medio, típico de iOS */
    font-size: 0.9em;
    background-color: var(--glass-border); /* Un fondo semitransparente sutil */
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Efecto al pasar el ratón por encima */
.ios-button-pill:hover {
    background-color: rgba(120, 120, 128, 0.2);
    color: var(--accent-color);
}
/* ----------------------------------------------------------------- */

/* --- MODIFICACIÓN: Mejorar el botón de Trustpilot para que coincida --- */

/* Se aplica el mismo estilo de píldora, pero con un color de acento verde */
.trustpilot-widget {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background-color: rgba(52, 199, 89, 0.15); /* Fondo verde traslúcido */
    border: none;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.trustpilot-widget a {
    color: var(--success-color); /* Texto verde */
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9em;
}
.trustpilot-widget:hover {
    background-color: rgba(52, 199, 89, 0.25);
    box-shadow: none;
}
/* --------------------------------------------------------------------- */

/*
================================================================================
  SECCIÓN 12: BARRA DE NOTIFICACIÓN (INTEGRADA)
================================================================================
*/

#notification-bar {
    position: relative;
    background-color: var(--warning-color);
    color: #000000; /* Texto oscuro para que contraste bien con el amarillo */
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    padding: 15px 45px 15px 25px; /* Espacio para el texto y botón */
    
    /* Truco para que ocupe todo el ancho y se pegue a los bordes redondeados */
    margin: -20px -20px 20px -20px; /* Margen negativo para anular el padding del contenedor */
    
    /* Bordes redondeados SOLO en la parte superior para coincidir con el contenedor */
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;

    /* Línea sutil para separar del contenido */
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-theme #notification-bar {
    color: #000000; /* Mantenemos el texto oscuro para mejor legibilidad */
}

#notification-bar p {
    margin: 0;
    display: inline;
    line-height: 1.4;
}

#close-notification-bar {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#close-notification-bar:hover {
    opacity: 1;
}

/*
================================================================================
  SECCIÓN 13: INDICADOR DE ESTADO DE LA API
================================================================================
*/
#api-status-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px; /* Espacio debajo de los toggles */
    padding: 6px 12px;
    border-radius: 12px;
    background-color: var(--glass-border);
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-placeholder); /* Color inicial (comprobando) */
    animation: pulse-checking 1.5s infinite;
}

.status-text {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Estado Online */
#api-status-indicator.online {
    background-color: rgba(52, 199, 89, 0.15); /* Fondo verde traslúcido */
}
#api-status-indicator.online .status-dot {
    background-color: var(--success-color);
    animation: pulse-online 1.5s infinite;
}
#api-status-indicator.online .status-text {
    color: var(--success-color);
}

/* Estado Offline */
#api-status-indicator.offline {
    background-color: rgba(255, 59, 48, 0.1); /* Fondo rojo traslúcido */
}
#api-status-indicator.offline .status-dot {
    background-color: var(--error-color);
    animation: none; /* Sin animación cuando está offline */
}
#api-status-indicator.offline .status-text {
    color: var(--error-color);
}

/* Animaciones del punto */
@keyframes pulse-checking {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

@keyframes pulse-online {
    0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}