/* console/css/simulator.css */
/* Estilo industrial harmonizado com o MedSaaS - SEM SCROLL */
/* Data: 2026 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;700&display=swap');

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --accent-primary: #e91e63;
    --accent-secondary: #ff9800;
    --accent-danger: #f44336;
    --accent-success: #4caf50;
    --text-primary: #e0e0e0;
    --text-secondary: #9aa5b5;
    --border-color: #3f4a5a;
    --display-bg: #0a0c0e;
    --display-text: #e91e63;
    --panel-glow: 0 0 10px rgba(233, 30, 99, 0.3);
}

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

body {
    font-family: 'Roboto Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Remove scroll */
}

/* Cabeçalho do Simulador */
.simulator-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 2px solid var(--accent-primary);
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    height: 60px;
    z-index: 10;
}

.simulator-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.simulator-title h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.simulator-badge {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.simulator-controls {
    display: flex;
    gap: 10px;
}

.btn {
    font-family: 'Roboto Mono', monospace;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary { background: var(--accent-primary); color: white; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }

/* Container Principal */
.simulator-container {
    display: flex;
    flex: 1;
    padding: 10px;
    gap: 10px;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* Painel de Controle */
.control-panel {
    width: 350px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    background: var(--bg-tertiary);
    padding: 10px 15px;
    border-bottom: 2px solid var(--accent-primary);
}

.panel-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-content {
    padding: 10px;
    flex: 1;
    overflow-y: auto; /* Permite scroll apenas dentro do painel se necessário */
}

/* Display Digital */
.digital-display {
    background: var(--display-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

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

.display-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }
.display-value { font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 700; color: var(--display-text); cursor: pointer; }
.display-unit { font-size: 11px; color: var(--text-secondary); margin-left: 3px; }

/* Controles */
.control-group { margin-bottom: 10px; }
.control-label { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--text-secondary); font-size: 11px; text-transform: uppercase; }
.control-label span:last-child { color: var(--accent-primary); font-weight: 600; }

.numeric-control { display: flex; align-items: center; gap: 8px; }
.numeric-btn { width: 30px; height: 30px; background: var(--bg-tertiary); border: 1px solid var(--border-color); color: white; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.numeric-label { flex: 1; text-align: center; font-weight: bold; color: var(--accent-primary); font-size: 12px; }

/* Painel de Protocolos */
.protocol-panel {
    width: 280px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.protocol-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.protocol-item {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 3px;
    border-radius: 4px;
}

.protocol-item:hover { border-left: 3px solid var(--accent-primary); }
.protocol-item.active { border-left: 3px solid var(--accent-success); background: var(--bg-tertiary); }
.protocol-regiao { font-weight: 700; color: var(--text-primary); font-size: 12px; margin-bottom: 2px; }
.protocol-params { display: flex; gap: 10px; font-size: 10px; color: var(--text-secondary); }

/* Disparo */
.fire-button-container { text-align: center; padding: 10px 0; }
.fire-button {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(145deg, #f44336, #d32f2f);
    border: 3px solid #ff8a80; color: white;
    font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 14px;
    cursor: pointer; animation: pulse 2s infinite;
}

/* Visualizador */
.viewer-panel {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.viewer-content { flex: 1; position: relative; background: #000; }
.viewer-frame { width: 100%; height: 100%; border: none; }

/* Loading */
.loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 1000;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(244, 67, 54, 0.5); }
    50% { box-shadow: 0 0 20px rgba(244, 67, 54, 0.8); }
    100% { box-shadow: 0 0 10px rgba(244, 67, 54, 0.5); }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }
