/* === PARTE 1 v2.2: RECUADRO DE ESTADO ROJO/AZUL, CANDADO PURO SUPERIOR, PESTAÑAS Y PALOMITA CENTRAL === */

/* 1. Candado minimalista puro (sin texto) junto al boton Cerrar */
.modal-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.pure-header-padlock {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.pure-header-padlock:hover { transform: scale(1.06); }
.pure-header-padlock svg { width: 22px; height: 22px; stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pure-header-padlock.pad-unlocked {
    background: rgba(16, 185, 129, 0.14);
    border: 1.8px solid #10B981;
    color: #10B981;
}
.pure-header-padlock.pad-locked {
    background: rgba(220, 38, 38, 0.16);
    border: 1.8px solid #EF4444;
    color: #EF4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.28);
}
.pure-header-padlock svg { stroke: currentColor; }

/* 2. Recuadro superior de Estado del Dispositivo (Rojo ejecutivo cuando esta bloqueado) */
.status-exec-banner {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1.5px solid var(--border-soft);
    transition: background 0.22s ease, border-color 0.22s ease;
}
.status-exec-banner.st-is-active {
    background: linear-gradient(135deg, rgba(23, 98, 176, 0.09), rgba(34, 199, 214, 0.12));
    border-color: rgba(34, 199, 214, 0.45);
}
.status-exec-banner.st-is-locked {
    background: linear-gradient(135deg, #B91C1C 0%, #DC2626 55%, #EF4444 100%);
    border-color: #FCA5A5;
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}
.status-exec-banner.st-is-pending {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(245, 158, 11, 0.22));
    border-color: rgba(245, 158, 11, 0.55);
}
.status-exec-banner.st-is-locked .st-conn-text { color: rgba(255, 255, 255, 0.92); }
.status-exec-banner.st-is-locked .badge-locked {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.55);
}
.status-exec-banner.st-is-locked .st-actions-divider {
    border-top-color: rgba(255, 255, 255, 0.24);
}
.status-exec-banner.st-is-locked .btn-outline {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}
.st-actions-divider {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 11px;
    border-top: 1px solid var(--border-soft);
}

/* 3. Pestañas limpias dentro de la Ficha Android */
.ficha-tabs-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--navy-bar);
    padding: 8px;
    border-radius: 14px;
}
.ficha-tab-btn {
    flex: 1;
    min-width: 145px;
    padding: 9px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #CBD5E1;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.ficha-tab-btn.active {
    background: linear-gradient(135deg, #1762B0, #22C7D6);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(34, 199, 214, 0.28);
}
.switch-sub-desc {
    display: block;
    font-size: 0.71rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 4. Palomita Central Animada (Toast de Ejecucion Exitosa estilo FDL evolucionado) */
.idevios-check-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.idevios-check-overlay.visible { opacity: 1; }
.idevios-check-card {
    background: rgba(7, 37, 64, 0.92);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(60, 226, 236, 0.55);
    border-radius: 22px;
    padding: 22px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 42px rgba(4, 16, 32, 0.52);
    transform: scale(0.86);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.idevios-check-overlay.visible .idevios-check-card { transform: scale(1); }
.idevios-check-svg {
    width: 56px;
    height: 56px;
}
.idevios-check-circle {
    fill: rgba(34, 199, 214, 0.16);
    stroke: #3CE2EC;
    stroke-width: 2.5;
}
.idevios-check-path {
    fill: none;
    stroke: #3CE2EC;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}
.idevios-check-overlay.visible .idevios-check-path {
    animation: drawIdeviOSCheck 0.38s 0.08s ease forwards;
}
.idevios-check-label {
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}
@keyframes drawIdeviOSCheck {
    to { stroke-dashoffset: 0; }
}
