/* ==============================================================================
# CSS DE DISEÑO PREMIUM - PANEL DE SOPORTE IA
# ============================================================================== */

:root {
    --bg-dark: #070b19;
    --bg-card: rgba(16, 22, 46, 0.65);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #8892b0;
    --accent-blue: #00f0ff;
    --accent-purple: #ab00ff;
    --accent-green: #39ff14;
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    height: 100vh;
    overflow: hidden;
}

/* Contenedor Principal con flexbox */
.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar lateral con Glassmorphism */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-card);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 24px;
}

.logo-area h2 {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.logo-area h2 span {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-blue);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-card);
}

.avatar {
    font-size: 28px;
}

.profile-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.profile-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Área de contenido principal */
.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Header superior */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 20px;
}

.header-title h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-title p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

.stats-bar {
    display: flex;
    gap: 15px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    min-width: 120px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Grid de contenido de tarjetas */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
    flex-grow: 1;
}

/* Estilo general de Tarjetas */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 12px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

/* Indicador de pulso en vivo */
.pulse-indicator {
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-green);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Lista de Sesiones */
.session-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.session-item:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 240, 255, 0.02);
}

.pc-icon {
    font-size: 32px;
}

.session-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent-purple);
    color: #fff;
}

.session-meta, .session-os {
    font-size: 12px;
    color: var(--text-muted);
}

.resource-usage {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resource-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.resource-bar span {
    width: 35px;
    font-weight: 600;
}

.resource-bar .bar {
    flex-grow: 1;
    margin: 0 10px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.resource-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
}

/* Panel de control de Scripts */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    flex-grow: 1;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

.script-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.script-btn:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(171, 0, 255, 0.1));
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.1);
}

.btn-icon {
    font-size: 24px;
}

.btn-text h4 {
    font-size: 14px;
    font-weight: 600;
}

.btn-text p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Terminal de logs */
.terminal-body {
    background: #03060f;
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 15px;
    font-family: monospace;
    font-size: 12px;
    flex-grow: 1;
    overflow-y: auto;
    height: 160px;
}

.terminal-line {
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
}

.terminal-line.system { color: #53bdeb; }
.terminal-line.cmd { color: #f0c674; }
.terminal-line.output { color: #b5bd68; }
.terminal-line.err { color: #cc6666; }

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.clear-btn:hover {
    color: #fff;
}

/* Simulador de Chat */
.chat-body {
    border: 1px solid var(--border-card);
    border-radius: 10px;
    background: rgba(3, 6, 15, 0.5);
    padding: 15px;
    height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.msg.bot {
    background: #202c33;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.user {
    background: #005c4b;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.msg-meta {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.chat-footer {
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex-grow: 1;
    background: #202c33;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 13px;
}

.chat-footer input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.send-btn {
    background: var(--accent-blue);
    color: #070b19;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: var(--font-family);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 240, 255, 0.3);
}

/* ==============================================================================
# ESTILOS DEL MÓDULO DE SOPORTE MÓVIL
# ============================================================================== */
.mobile-viewer-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-wrapper {
    width: 100%;
    max-width: 250px;
    background: #0f1322;
    border-radius: 30px;
    padding: 12px;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 10px auto;
}

.phone-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 20px;
    overflow: hidden;
    cursor: crosshair;
    background: #000;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Anillo indicador de clics de accesibilidad (remoto) */
.pointer-ring {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 10px var(--accent-green);
    animation: ring-pulse 1s infinite alternate;
}

@keyframes ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

