/* ═══════════════════════════════════════════════
   VT220 Terminal Emulator — Main Stylesheet
   ═══════════════════════════════════════════════ */

/* ─── CSS VARIABLES (injected by JS per theme) ─── */
/* Fallback defaults so the page renders correctly even before JS runs */
:root {
    --term-color:        #ffb000;
    --term-color-dim:    rgba(255,176,0,0.55);
    --term-glow:         rgba(255,176,0,0.35);
    --color-amber:       #ffb000;
    --color-green:       #39ff14;
    --color-cyan:        #00e5ff;
    --color-white:       #e6f2ff;
    --color-bg-deep:     #0b0c10;
    --color-bg-panel:    rgba(18,20,30,0.88);
    --color-border-glass: rgba(255,255,255,0.08);
    --color-border-focus: rgba(255,176,0,0.45);
    --text-primary:      #e6e8f0;
    --text-muted:        #6b7280;
}

/* ─── PHOSPHOR THEMES ─── */
body.theme-amber {
    --term-color:     #ffb000;
    --term-color-dim: rgba(255,176,0,0.55);
    --term-glow:      rgba(255,176,0,0.35);
    --color-border-focus: rgba(255,176,0,0.45);
}
body.theme-green {
    --term-color:     #39ff14;
    --term-color-dim: rgba(57,255,20,0.55);
    --term-glow:      rgba(57,255,20,0.30);
    --color-border-focus: rgba(57,255,20,0.45);
}
body.theme-cyan {
    --term-color:     #00e5ff;
    --term-color-dim: rgba(0,229,255,0.55);
    --term-glow:      rgba(0,229,255,0.30);
    --color-border-focus: rgba(0,229,255,0.45);
}
body.theme-white {
    --term-color:     #e6f2ff;
    --term-color-dim: rgba(230,242,255,0.55);
    --term-glow:      rgba(230,242,255,0.20);
    --color-border-focus: rgba(230,242,255,0.35);
}

/* ─── RESET / BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--color-bg-deep);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── SPACE BACKGROUND ─── */
.space-bg {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: -1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(15,23,42,0.9) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(30,10,60,0.5) 0%, transparent 50%),
        linear-gradient(180deg, #050608 0%, #0a0b10 100%);
}

/* ─── HEADER ─── */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.5rem;
    background: rgba(10,11,16,0.92);
    border-bottom: 1px solid var(--color-border-glass);
    backdrop-filter: blur(8px);
    z-index: 100;
    flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.logo-icon { font-size: 1.1rem; color: var(--term-color); filter: drop-shadow(0 0 6px var(--term-glow)); }
.brand-text h1 { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; font-weight: 800; letter-spacing: 2px; color: var(--term-color); text-shadow: 0 0 12px var(--term-glow); }
.brand-text .sub-title { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.5px; }

/* ─── MAIN WORKSPACE — 3-column layout ─── */
.workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

/* ─── LEFT COLUMN ─── */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* height is determined by content */
}

/* ─── CONTROL DOCK ─── */
.control-dock {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border-glass);
    border-radius: 12px 12px 0 0;   /* rounded only at top */
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
    padding: 1rem;
}

/* ─── BOTTOM CONTROLS (gear + badge) ─── */
.bottom-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border-glass);
    border-top: none;
    border-radius: 0 0 12px 12px;   /* rounded only at bottom */
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
}

/* ─── DOCK INTERNALS ─── */
.dock-section { display: flex; flex-direction: column; gap: 0.5rem; }
.dock-divider { height: 1px; background: var(--color-border-glass); margin: 0.65rem 0; }
.dock-divider-strong { height: 2px; background: linear-gradient(90deg, var(--term-color), transparent); margin: 0.8rem 0; opacity: 0.8; }
.dock-label { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 0.15rem; }
.dock-label-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--term-color);
    text-shadow: 0 0 8px var(--term-glow);
    margin-bottom: 0.4rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--color-border-glass);
}
.default-cmd-display { padding: 0.35rem 0.55rem; background: rgba(10,11,15,0.75); border: 1px solid var(--color-border-glass); border-radius: 6px; font-family: 'Fira Code', monospace; font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-text-preview { color: var(--term-color-dim); }

/* ─── CREDENTIAL BUTTONS ─── */
.credential-buttons-container { display: flex; flex-direction: column; gap: 0.35rem; }
.btn-credential { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.45rem 0.6rem; background: rgba(10,11,15,0.7); border: 1px solid var(--color-border-glass); border-radius: 6px; color: var(--text-muted); font-size: 0.68rem; cursor: pointer; transition: all 0.2s; text-align: left; }
.btn-credential:hover:not(:disabled) { border-color: var(--term-color); color: var(--term-color); background: rgba(255,176,0,0.05); }
.btn-credential:disabled { opacity: 0.45; cursor: not-allowed; }
.slot-btn { font-family: 'Fira Code', monospace; font-size: 0.65rem; }
.guest-btn { border-style: dashed; }
.cred-btn-content { display: flex; align-items: center; gap: 0.5rem; width: 100%; }
.cred-btn-info { display: flex; flex-direction: column; }
.cred-btn-user { font-size: 0.7rem; font-weight: 600; color: var(--text-primary); }
.cred-btn-note { font-size: 0.58rem; color: var(--text-muted); }

/* ─── CONNECTION STATUS BADGE ─── */
.connection-status-badge {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    flex: 1;   /* fill remaining space after gear button */
}
.connection-status-badge.disconnected { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.connection-status-badge.connected    { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4); color: #34d399; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.connection-status-badge.disconnected .status-dot { background: #ef4444; box-shadow: 0 0 4px #ef4444; }
.connection-status-badge.connected    .status-dot { background: #34d399; box-shadow: 0 0 4px #34d399; animation: pulse-glow 1.5s infinite alternate; }

/* ─── SETTINGS GEAR BUTTON ─── */
.btn-settings-gear {
    width: 30px; height: 30px;
    border-radius: 6px;
    border: 1px solid var(--color-border-glass);
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.btn-settings-gear:hover { color: var(--term-color); border-color: var(--term-color); box-shadow: 0 0 12px var(--term-glow); transform: rotate(90deg); }

/* ─── TERMINAL DECK (center column: monitor + logger stacked) ─── */
.terminal-deck {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ─── CRT MONITOR CASE ─── */
.crt-monitor-case {
    background: linear-gradient(145deg, #1a1c24, #0f1015);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 0.75rem 0.75rem 0.5rem;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
    width: fit-content;
    max-width: 820px;
}
.crt-screen-bezel {
    position: relative;
    background: #0a0b0f;
    border-radius: 8px;
    padding: 0.5rem;
    border: 2px solid #1a1c24;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}
.badge-dec-vt220 { display: flex; gap: 0.25rem; align-items: baseline; margin-bottom: 0.35rem; padding: 0 0.25rem; }
.badge-dec { font-family: 'Orbitron', sans-serif; font-size: 0.5rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.badge-model { font-family: 'Orbitron', sans-serif; font-size: 0.65rem; font-weight: 800; color: var(--term-color); letter-spacing: 2px; text-shadow: 0 0 8px var(--term-glow); }

/* ─── CRT SCREEN ─── */
.crt-screen-container { position: relative; width: fit-content; background-color: #050608; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 30px rgba(0,0,0,1); border: 2px solid #000; min-height: 400px; }

.crt-glass-reflection { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; background: radial-gradient(circle at 50% 15%, rgba(255,255,255,0.03) 0%, transparent 60%); }
.crt-scanlines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; opacity: 0.15; background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.25) 50%); background-size: 100% 4px; transition: opacity 0.3s; }
.crt-screen-flicker { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; background: rgba(18,16,16,0.2); opacity: 0; transition: opacity 0.3s; }
body.flicker-active .crt-screen-flicker { animation: flicker-anim 0.15s infinite; }
.crt-glow-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; background: radial-gradient(circle at 50% 50%, var(--term-glow) 0%, transparent 70%); opacity: 0.18; }
.terminal-screen-frame { width: fit-content; height: 100%; min-height: 400px; padding: 10px; overflow: hidden; }

.monitor-controls { display: flex; justify-content: flex-end; align-items: center; width: 100%; padding: 0.5rem 0.4rem 0; gap: 0.4rem; font-family: 'Orbitron', sans-serif; }
.power-label { font-size: 0.5rem; font-weight: 700; color: #8c92ac; }
.power-led { width: 7px; height: 7px; border-radius: 50%; transition: all 0.3s; }
.power-led.off { background-color: #2a1111; box-shadow: inset 0 1px 2px #000; }
.power-led.on  { background-color: #ef4444; box-shadow: 0 0 6px #ef4444, 0 0 12px #ef4444; }

/* ─── LOGGER ─── */
.glass-card { background: var(--color-bg-panel); border: 1px solid var(--color-border-glass); border-radius: 10px; backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
.logger-panel {
    width: auto;
    margin: 0;
}
/* Disable 132 cols button */
#btn-cols-132 { display: none; }
.logger-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--color-border-glass); padding-bottom: 0.3rem; margin-bottom: 0.4rem; }
.logger-header h3 { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.logger-output { height: 100px; overflow-y: auto; font-family: 'Fira Code', monospace; font-size: 0.65rem; display: flex; flex-direction: column; gap: 0.2rem; }
.log-line { word-break: break-all; line-height: 1.3; }
.log-line.system  { color: var(--text-muted); }
.log-line.error   { color: #f87171; }
.log-line.success { color: #34d399; }
.log-line.data-tx { color: var(--term-color-dim); }
.log-line.data-rx { color: #fff; opacity: 0.95; }

/* ─── SLIDE-OUT DRAWER ─── */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.drawer-overlay.active { opacity: 1; visibility: visible; }

.drawer { position: fixed; top: 0; right: -420px; width: 400px; height: 100%; background: linear-gradient(180deg, rgba(18,20,30,0.97), rgba(12,13,18,0.98)); backdrop-filter: blur(16px); border-left: 1px solid var(--color-border-glass); z-index: 999; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; padding: 1.25rem; box-shadow: -8px 0 30px rgba(0,0,0,0.5); }
.drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border-glass); }
.drawer-header h2 { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 1px; color: var(--term-color); display: flex; align-items: center; gap: 0.5rem; }
.drawer-close { background: none; border: 1px solid var(--color-border-glass); border-radius: 6px; color: var(--text-muted); cursor: pointer; font-size: 1rem; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.drawer-close:hover { color: #ef4444; border-color: #ef4444; }

.drawer-section { margin-bottom: 1.25rem; }
.drawer-section h3 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.75px; color: var(--text-primary); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; padding-bottom: 0.35rem; border-bottom: 2px solid; border-image: linear-gradient(90deg, var(--term-color), transparent) 1; }
.drawer-section-body { display: flex; flex-direction: column; gap: 0.5rem; }

/* ─── CRUD LIST ─── */
.crud-list { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.5rem; max-height: 200px; overflow-y: auto; }
.crud-item { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 0.5rem; background: rgba(10,11,15,0.6); border: 1px solid var(--color-border-glass); border-radius: 6px; font-size: 0.75rem; transition: border-color 0.2s; }
.crud-item:hover { border-color: rgba(255,255,255,0.15); }
.crud-item.is-default { border-color: var(--term-color); box-shadow: inset 0 0 8px var(--term-glow); }
.crud-item-text { flex: 1; font-family: 'Fira Code', monospace; font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crud-item-note { font-size: 0.6rem; color: var(--text-muted); margin-left: 0.5rem; }
.crud-item-actions { display: flex; gap: 0.25rem; margin-left: 0.5rem; flex-shrink: 0; }
.crud-action-btn { width: 22px; height: 22px; border: 1px solid var(--color-border-glass); border-radius: 4px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.6rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.crud-action-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.25); }
.crud-action-btn.default-btn.active { color: var(--term-color); border-color: var(--term-color); background: rgba(255,176,0,0.1); }
.crud-action-btn.delete-btn:hover { color: #ef4444; border-color: #ef4444; }

.crud-add-row { display: flex; gap: 0.4rem; }
.crud-add-row input { flex: 1; }
.crud-add-form { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.25rem; }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); z-index: 1001; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.glass-modal { background: linear-gradient(135deg, rgba(30,32,48,0.95), rgba(18,20,28,0.98)); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 1.75rem; width: 380px; max-width: 90%; box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.1); transform: scale(0.92); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.modal-overlay.active .glass-modal { transform: scale(1); }
.glass-modal h2 { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 1px; color: var(--term-color); text-align: center; margin-bottom: 0.25rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.modal-subtitle { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }

/* ─── SHARED FORM STYLES ─── */
.form-row { display: flex; gap: 0.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.5rem; }
.col-8 { flex: 8; } .col-6 { flex: 6; } .col-4 { flex: 4; }
label { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
input[type="text"], input[type="number"], input[type="password"], select { width: 100%; padding: 0.45rem 0.6rem; background: rgba(10,11,15,0.75); border: 1px solid var(--color-border-glass); border-radius: 5px; color: var(--text-primary); font-family: inherit; font-size: 0.8rem; transition: all 0.2s; }
input:focus, select:focus { outline: none; border-color: var(--term-color); box-shadow: 0 0 8px var(--color-border-focus); }
.checkbox-row { display: flex; justify-content: space-between; gap: 0.5rem; }
.custom-checkbox { display: flex; align-items: center; gap: 0.35rem; cursor: pointer; font-size: 0.65rem; color: var(--text-muted); user-select: none; }
.custom-checkbox input { display: none; }
.checkbox-box { width: 13px; height: 13px; border: 1px solid var(--color-border-glass); border-radius: 3px; display: inline-block; position: relative; background: rgba(10,11,15,0.75); }
.custom-checkbox input:checked + .checkbox-box { background: var(--term-color); border-color: var(--term-color); box-shadow: 0 0 5px var(--term-glow); }
.custom-checkbox input:checked + .checkbox-box::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #000; font-size: 7px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 0.75rem; border: none; border-radius: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--term-color); color: #0f1015; box-shadow: 0 3px 12px var(--term-glow); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 16px var(--term-glow); }
.btn-danger { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover:not(:disabled) { background: #ef4444; color: #fff; box-shadow: 0 3px 12px rgba(239,68,68,0.4); }
.btn-accent { background: transparent; color: var(--term-color); border: 1px solid var(--term-color); }
.btn-accent:hover:not(:disabled) { background: var(--term-color); color: #0f1015; box-shadow: 0 3px 12px var(--term-glow); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text-primary); border: 1px solid var(--color-border-glass); }
.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.btn-small { padding: 0.2rem 0.45rem; font-size: 0.6rem; border-radius: 4px; background: rgba(255,255,255,0.05); border: 1px solid var(--color-border-glass); color: var(--text-muted); cursor: pointer; }
.btn-small:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-small-accent { padding: 0.4rem 0.6rem; font-size: 0.7rem; border-radius: 5px; background: var(--term-color); color: #0f1015; border: none; cursor: pointer; font-weight: 700; transition: all 0.2s; }
.btn-small-accent:hover { box-shadow: 0 0 10px var(--term-glow); }
.w-100 { width: 100%; }
.w-50  { width: 50%; flex: 1; }
.mt-1  { margin-top: 0.4rem; }

/* ─── CONNECT/DISCONNECT ROW ─── */
.connect-row { display: flex; gap: 0.35rem; width: 100%; }

/* ─── THEME PICKER ─── */
.theme-picker { display: flex; gap: 0.4rem; align-items: center; height: 28px; }
.theme-btn { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.theme-btn:hover { transform: scale(1.2); }
.theme-btn.active { border-color: #fff; transform: scale(1.1); }
.btn-amber { background-color: var(--color-amber); }
.btn-green { background-color: var(--color-green); }
.btn-cyan  { background-color: var(--color-cyan); }
.btn-white { background-color: var(--color-white); }

.btn-group-toggle { display: flex; background: rgba(10,11,15,0.75); border: 1px solid var(--color-border-glass); border-radius: 5px; padding: 2px; height: 28px; }
.btn-toggle { flex: 1; background: transparent; border: none; border-radius: 3px; color: var(--text-muted); font-size: 0.65rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-toggle.active { background: var(--term-color); color: #0f1015; box-shadow: 0 0 5px var(--term-glow); }

/* ─── XTERM ─── */
.xterm .xterm-screen { filter: drop-shadow(0 0 2px var(--term-glow)); }
.xterm-rows { font-family: 'Fira Code', 'VT323', monospace !important; font-weight: 500 !important; }

/* ─── FOOTER ─── */
.app-footer { text-align: center; padding: 1rem; background: rgba(10,11,15,0.85); border-top: 1px solid var(--color-border-glass); font-size: 0.6rem; color: var(--text-muted); flex-shrink: 0; }

/* ─── ANIMATIONS ─── */
@keyframes flash       { 0% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes pulse-glow  { 0% { filter: drop-shadow(0 0 2px var(--term-glow)); } 100% { filter: drop-shadow(0 0 8px var(--term-glow)); } }
@keyframes flicker-anim { 0%{opacity:.18} 5%{opacity:.25} 10%{opacity:.16} 15%{opacity:.22} 20%{opacity:.17} 25%{opacity:.28} 30%{opacity:.19} 35%{opacity:.24} 40%{opacity:.15} 45%{opacity:.26} 50%{opacity:.2} 55%{opacity:.17} 60%{opacity:.23} 65%{opacity:.18} 70%{opacity:.27} 75%{opacity:.21} 80%{opacity:.19} 85%{opacity:.24} 90%{opacity:.16} 95%{opacity:.22} 100%{opacity:.18} }

/* ─── QUICK LOGIN ROW ─── */
.quick-login-row { display: flex; gap: 0.35rem; width: 100%; margin-bottom: 0.4rem; }
.quick-login-row .login-btn { flex: 1.6; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.quick-login-row .cmd-btn   { flex: 1; text-align: center; border-color: rgba(255,176,0,0.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── MACRO OLEU BUTTON ─── */
.btn-macro-oleu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffb000, #f97316);
    color: #0f1015;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255, 176, 0, 0.2);
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-macro-oleu i {
    font-size: 0.85rem;
    color: #0f1015;
}

.btn-macro-oleu:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffc83b, #ff7b00);
    box-shadow: 0 5px 16px rgba(255, 176, 0, 0.4);
    transform: translateY(-1px);
}

.btn-macro-oleu:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 176, 0, 0.3);
}

.btn-macro-oleu:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-glass);
    color: var(--text-muted);
}
