/* ====================================================================
   MAYDAY TEAM — PREMIUM SERVER CONTROL PANEL STYLESHEET
   Aesthetics: Deep Dark Glassmorphism, Neon Accents, Modern Typography
==================================================================== */

:root {
    --bg-main: #07090e;
    --bg-body: #07090e;
    --bg-card: rgba(16, 24, 40, 0.75);
    --bg-card-hover: rgba(23, 33, 56, 0.9);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(99, 102, 241, 0.35);
    
    --primary: #6366f1;
    --color-primary: #6366f1;
    --color-accent: #a855f7;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.4);
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.4);
    --info: #06b6d4;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.18s ease;
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, body.dark-theme {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}
.orb-1 { width: 500px; height: 500px; background: #6366f1; top: -100px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: #06b6d4; bottom: -150px; right: -150px; }
.orb-3 { width: 400px; height: 400px; background: #10b981; top: 40%; left: 35%; opacity: 0.1; }

/* Glass Panel Base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

/* Utility Classes */
.hidden { display: none !important; }

/* ====================================================================
   LOGIN OVERLAY MODAL
==================================================================== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.login-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-glow);
    animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}
.login-brand .brand-icon {
    font-size: 42px;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 0 16px var(--primary-glow));
}
.login-brand h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}
.login-brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.login-form .input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper input,
.input-group input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 15, 28, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}
.input-wrapper input:focus,
.input-group input:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.95);
}
.toggle-pwd-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: var(--transition-fast);
}
.toggle-pwd-btn:hover { opacity: 1; }

.login-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: var(--text-dim);
}

/* ====================================================================
   BUTTONS & BADGES
==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
    user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border-color: var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--success-glow);
}
.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.btn-danger-outline {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}
.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.badge-cs { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }

/* ====================================================================
   DASHBOARD LAYOUT
==================================================================== */
.app-container, .dashboard-wrapper {
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar, .top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
}
.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-badge {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.logo-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.server-node-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s infinite ease-in-out;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.3); opacity: 0.4; }
}

.header-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 8px;
}
.stat-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; font-weight: 600; }
.stat-val { font-size: 13px; font-weight: 700; color: var(--text-main); font-family: var(--font-mono); }

/* ====================================================================
   METRICS WIDGETS
==================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.metric-card {
    padding: 22px 24px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}
.metric-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.cpu-icon { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); }
.ram-icon { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); }
.disk-icon { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }

.metric-header h3 { font-size: 15px; font-weight: 700; }
.metric-header .sub-label { font-size: 12px; color: var(--text-muted); }

.metric-value-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.metric-main-val {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}
.metric-sub-val {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}
.fill-cpu { background: linear-gradient(90deg, #6366f1, #a855f7); }
.fill-ram { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.fill-disk { background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* BTOP-Style Per-Core CPU Usage Breakdown */
.cores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.core-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform var(--transition-fast);
}
.core-item:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.3);
}
.core-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.core-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.core-val {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
}
.core-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}
.core-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.core-bar-fill.low { background: linear-gradient(90deg, #10b981, #34d399); }
.core-bar-fill.medium { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.core-bar-fill.high { background: linear-gradient(90deg, #ef4444, #f87171); }

.metric-mini-breakdown {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.metric-mini-breakdown b {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Top Processes Panel */
.top-procs-panel {
    padding: 18px 24px;
    margin-bottom: 24px;
}
.top-procs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.top-procs-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-procs-title h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}
.top-procs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.proc-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.proc-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.proc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}
.proc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.proc-pid {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.proc-raw-cmd {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 10px;
}
.proc-mem-badge {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.proc-item-loading {
    font-size: 12px;
    color: var(--text-dim);
    padding: 10px;
}

/* ====================================================================
   ACTION TOOLBAR & FILTERS
==================================================================== */
.action-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    margin-bottom: 24px;
}
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}
.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.bulk-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ====================================================================
   CS2 QUICK CONTROL BOX
==================================================================== */
.cs2-quick-control {
    padding: 20px 24px;
    margin-bottom: 28px;
    border-color: rgba(99, 102, 241, 0.2);
}
.quick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.quick-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quick-title h4 { font-size: 15px; font-weight: 700; }
.status-indicator { font-size: 12px; color: var(--text-muted); }

.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.toggle-box {
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toggle-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.btn-group { display: flex; gap: 4px; }
.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}
.btn-outline-active {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}
.select-group { display: flex; gap: 8px; }

/* ====================================================================
   SERVER CARDS GRID
==================================================================== */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-title-row h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.refresh-indicator { font-size: 11px; color: var(--text-dim); }

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.server-card {
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
}
.server-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.server-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.server-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.server-type-icon {
    font-size: 22px;
}
.server-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}
.server-sub-tag {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.status-badge.online {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-badge.online .status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: pulseGlow 1.5s infinite;
}
.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-badge.offline .status-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.server-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.meta-item { display: flex; align-items: center; gap: 4px; }

.server-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
}
.server-card-actions .btn { flex: 1; }
.btn-icon-only { flex: 0 0 36px !important; padding: 0 !important; width: 36px; height: 36px; }

/* ====================================================================
   TERMINAL / CONSOLE MODAL
==================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
    width: 100%;
    background: #090d16;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-lg { max-width: 960px; height: 640px; }
.modal-sm { max-width: 440px; padding: 24px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.6);
}
.modal-header-left, .modal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.modal-header h3 { font-size: 15px; font-weight: 700; }
.auto-scroll-label { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition-fast);
}
.btn-close:hover { color: #fff; }

.terminal-body {
    flex: 1;
    background: #04060a;
    padding: 16px;
    overflow-y: auto;
    font-family: var(--font-mono);
}
.terminal-logs {
    color: #e2e8f0;
    font-size: 12.5px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-footer {
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #030508;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 6px 12px;
}
.terminal-input-row input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
}
.prompt-sign { color: var(--primary); font-weight: 700; font-family: var(--font-mono); }
.quick-commands-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.quick-tag { font-size: 11px; color: var(--text-dim); }

.modal-footer-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ====================================================================
   TOAST NOTIFICATIONS
==================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20000;
}
.toast {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: rgba(16, 24, 40, 0.95);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 13px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.success { border-color: rgba(16, 185, 129, 0.4); color: #34d399; }
.toast.error { border-color: rgba(239, 68, 68, 0.4); color: #f87171; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-container { padding: 16px 12px; }
    .navbar { flex-direction: column; gap: 14px; align-items: flex-start; }
    .nav-right { width: 100%; justify-content: space-between; }
    .action-toolbar { flex-direction: column; align-items: stretch; }
    .bulk-actions { width: 100%; justify-content: stretch; }
    .bulk-actions .btn { flex: 1; }
}
