/* ==========================================================================
   💎 KOTAK NEO ALGO HUB - STYLE SYSTEM REBUILD (LUXURIOUS & SHARP TERMINAL)
   ========================================================================== */

:root {
    /* Color Palette - Bloomberg Dark Terminal Inspired */
    --color-bg-base: #030508;
    --color-bg-surface: #0a0e17;
    --color-bg-surface-accent: #0f1522;
    --color-border: #182235;
    --color-border-focus: #b89834;
    
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #475569;
    
    /* Accents */
    --color-accent-gold: #cfa832;
    --color-accent-gold-glow: rgba(207, 168, 50, 0.15);
    --color-accent-gold-hover: #e6c154;
    
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.08);
    --color-success-glow: rgba(16, 185, 129, 0.2);
    
    --color-error: #f43f5e;
    --color-error-bg: rgba(244, 63, 94, 0.08);
    --color-error-glow: rgba(244, 63, 94, 0.2);
    
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.08);

    /* Layout metrics */
    --border-radius: 4px; /* Sharp technical design */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   🧱 GRID STRUCTURE
   ========================================================================== */

.terminal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Panel */
.terminal-sidebar {
    background-color: var(--color-bg-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px;
    justify-content: space-between;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.brand-icon {
    background: linear-gradient(135deg, var(--color-accent-gold), #8a6c17);
    border-radius: var(--border-radius);
    color: var(--color-bg-base);
    font-weight: 700;
    font-size: 18px;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--color-accent-gold-glow);
}

.brand-text h1 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
}

.brand-text span {
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.nav-button {
    background: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-button:hover {
    color: var(--color-text-primary);
    background-color: var(--color-bg-surface-accent);
}

.nav-button.active {
    color: var(--color-accent-gold);
    background-color: rgba(207, 168, 50, 0.05);
    border-color: rgba(207, 168, 50, 0.25);
}

.nav-button.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background-color: var(--color-accent-gold);
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.nav-badge {
    background-color: var(--color-error);
    border-radius: 10px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    margin-left: auto;
}

.sidebar-status-banner {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.status-indicator-dot {
    border-radius: 50%;
    height: 7px;
    width: 7px;
    background-color: var(--color-error);
    display: inline-block;
}

.status-indicator-dot.online {
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success-glow);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Main Display */
.terminal-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 32px 40px;
    background-color: var(--color-bg-base);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.header-details h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 2px;
}

.header-details p {
    color: var(--color-text-secondary);
    font-size: 12.5px;
}

/* ==========================================================================
   🎛️ BUTTONS & INPUT FIELDS
   ========================================================================== */

.terminal-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    transition: var(--transition);
}

.terminal-btn.btn-sm {
    padding: 5px 10px;
    font-size: 11.5px;
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-base);
}
.btn-primary:hover {
    background-color: var(--color-accent-gold-hover);
    box-shadow: 0 0 10px rgba(207, 168, 50, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-text-primary);
}
.btn-outline:hover {
    background-color: var(--color-bg-surface);
    border-color: var(--color-text-secondary);
}

.btn-danger {
    background-color: var(--color-error);
    color: #ffffff;
}
.btn-danger:hover {
    background-color: #ff5270;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}

.btn-icon {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

.w-full {
    width: 100%;
}

/* ==========================================================================
   🖥️ TECHNICAL CARDS & PANELS
   ========================================================================== */

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
    align-items: start;
}

.panel-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-header {
    border-bottom: 1px solid rgba(24, 34, 53, 0.5);
    padding-bottom: 12px;
}

.panel-tag {
    color: var(--color-accent-gold);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.panel-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-footer {
    margin-top: 4px;
}

#rollover-tasks-list .terminal-table-container {
    max-height: 220px;
    overflow-y: auto;
}

.panel-description {
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.card-alert {
    border-color: rgba(244, 63, 94, 0.35);
}
.card-alert:hover {
    border-color: var(--color-error);
}

.narrow-panel {
    max-width: 600px;
}

/* Stat lists */
.stat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid rgba(24, 34, 53, 0.3);
    padding-bottom: 8px;
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-lbl {
    color: var(--color-text-secondary);
}

.stat-val {
    color: var(--color-text-primary);
    font-weight: 500;
}

.stat-val.code {
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.highlight {
    color: var(--color-accent-gold);
}

/* ==========================================================================
   ⚙️ INPUT GROUPS & FORMS
   ========================================================================== */

.panel-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-container label {
    color: var(--color-text-secondary);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fields-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

input[type="text"],
input[type="password"] {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    padding: 10px 12px;
    transition: var(--transition);
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--color-border-focus);
    outline: none;
    box-shadow: 0 0 6px var(--color-accent-gold-glow);
}

.panel-form select {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    padding: 10px 12px;
    transition: var(--transition);
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.panel-form select:focus {
    border-color: var(--color-border-focus);
    outline: none;
    box-shadow: 0 0 6px var(--color-accent-gold-glow);
}

.panel-form select option {
    background-color: var(--color-bg-elevated, #1e293b);
    color: var(--color-text-primary);
}

.field-with-btn {
    display: flex;
    gap: 8px;
}

.field-with-btn input {
    flex-grow: 1;
}

.margin-top-md {
    margin-top: 16px;
}

/* ==========================================================================
   📋 TECHNICAL PORTFOLIO TABLES
   ========================================================================== */

.portfolio-section {
    margin-top: 12px;
}

.section-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.section-title h3 {
    font-size: 15px;
    font-weight: 600;
}

.section-title .section-subtitle {
    color: var(--color-text-muted);
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.switcher-tabs {
    display: flex;
    gap: 4px;
    background-color: var(--color-bg-surface-accent);
    padding: 3px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.switcher-tab {
    background: none;
    border: none;
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    transition: var(--transition);
}

.switcher-tab.active {
    background-color: var(--color-bg-surface);
    color: var(--color-accent-gold);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.section-tab-panel {
    display: none;
}

.section-tab-panel.active {
    display: block;
}

.terminal-table-container {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-bg-surface);
}

.terminal-table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 13px;
}

.terminal-table th {
    background-color: var(--color-bg-surface-accent);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 12px 16px;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.terminal-table td {
    border-bottom: 1px solid rgba(24, 34, 53, 0.4);
    padding: 12px 16px;
    color: var(--color-text-primary);
}

.terminal-table tr:last-child td {
    border-bottom: none;
}

.terminal-table tr:hover td {
    background-color: var(--color-bg-surface-accent);
}

.code {
    font-family: var(--font-mono);
    font-size: 11.5px;
}

/* Badges */
.pill-badge {
    border-radius: var(--border-radius);
    font-size: 9.5px;
    font-weight: 700;
    padding: 2.5px 6px;
    text-transform: uppercase;
    display: inline-block;
}

.pill-offline {
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid rgba(244, 63, 94, 0.15);
}

.pill-online {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.text-success { color: var(--color-success); }
.text-danger { color: var(--color-error); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* ==========================================================================
   📜 LOGS TERMINAL
   ========================================================================== */

.log-terminal-card {
    flex-grow: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.log-terminal-header {
    background-color: var(--color-bg-surface-accent);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.log-filter-menu {
    display: flex;
    gap: 4px;
}

.log-filter {
    background: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    transition: var(--transition);
}

.log-filter:hover {
    background-color: var(--color-bg-surface);
}

.log-filter.active {
    background-color: var(--color-bg-surface);
    border-color: var(--color-border);
    color: var(--color-accent-gold);
}

.log-toggles {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Custom checkbox */
.terminal-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-secondary);
    cursor: pointer;
    user-select: none;
}

.log-terminal-body {
    background-color: #020305;
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    overflow-y: auto;
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.log-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono), monospace;
    font-size: 13px;
    transition: background-color 0.2s ease;
    border-left: 3px solid transparent;
}
.log-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}
.log-row.info { border-left-color: var(--color-border-focus); }
.log-row.warning { border-left-color: var(--color-warning); }
.log-row.error { border-left-color: var(--color-error); }

.log-time {
    color: #64748b;
    flex-shrink: 0;
    min-width: 85px;
    user-select: none;
}
.log-req-id {
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 70px;
    text-align: center;
    border: 1px solid transparent;
}
.log-level-badge {
    flex-shrink: 0;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    min-width: 55px;
    text-align: center;
    letter-spacing: 0.5px;
}
.log-level-badge.info {
    background-color: rgba(14, 116, 144, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.2);
}
.log-level-badge.warning {
    background-color: rgba(180, 83, 9, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.log-level-badge.error {
    background-color: rgba(153, 27, 27, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}
.log-msg-text {
    flex-grow: 1;
    word-break: break-word;
    color: #cbd5e1;
}
.log-msg-text strong {
    color: #ffffff;
}
.log-code {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 1px 4px;
    border-radius: 3px;
    color: #f472b6;
    font-family: inherit;
}
.log-details {
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 3px solid transparent;
}
.log-details.text-success {
    border-left-color: #10b981;
    color: #a7f3d0;
}
.log-details.text-danger {
    border-left-color: #ef4444;
    color: #fca5a5;
}
.log-side-buy {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 11px;
}
.log-side-sell {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 11px;
}
.badge-entry {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 11px;
}
.badge-exit {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 11px;
}

/* ==========================================================================
   🚨 OVERLAYS & MODALS
   ========================================================================== */

.modal-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1000;
}

.modal-overlay.open {
    display: flex;
}

.terminal-modal {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    max-width: 440px;
    width: 90%;
    padding: 24px;
}

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

.modal-danger {
    border-color: rgba(244, 63, 94, 0.4);
}

.modal-body {
    margin-top: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-body p {
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

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

/* ==========================================================================
   🔔 NOTIFICATION TOASTS
   ========================================================================== */

#toast-wrapper {
    bottom: 24px;
    position: fixed;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.toast {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent-gold);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 500;
    min-width: 260px;
    padding: 12px 16px;
    animation: toast-slide-in 0.25s cubic-bezier(0, 0, 0.2, 1);
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-error); }

@keyframes toast-slide-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Helper Animation classes */
.animate-spin {
    animation: icon-spin 1s linear infinite;
}
.animate-spin.stop {
    animation: none;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glowing-btn {
    animation: emergency-glow 2s infinite;
}

@keyframes emergency-glow {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.25); }
    70% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* Tab Panels */
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ==========================================================================
   📱 MOBILE & RESPONSIVE LAYOUTS
   ========================================================================== */

@media (max-width: 992px) {
    .control-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .terminal-layout {
        grid-template-columns: 1fr; /* Sidebar collapses to a row */
    }

    /* Transform Sidebar to Persistent Bottom Tab Bar */
    .terminal-sidebar {
        flex-direction: row;
        height: 60px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0 10px;
        border-right: none;
        border-top: 1px solid var(--color-border);
        background-color: var(--color-bg-surface);
        z-index: 999;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    }

    /* Hide desktop branding components */
    .brand-header {
        display: none;
    }
    
    .sidebar-status-banner {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        width: 100%;
        height: 100%;
        justify-content: space-around;
        align-items: center;
        gap: 0;
    }

    .nav-button {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 6px 0;
        width: 25%;
        height: 100%;
        font-size: 9.5px;
        font-weight: 500;
        border-radius: 0;
    }

    .nav-button.active {
        background-color: transparent;
        border-color: transparent;
    }

    .nav-button.active::before {
        display: none; /* Hide sidebar side indicator line */
    }
    
    .nav-button.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20%;
        right: 20%;
        height: 2.5px;
        background-color: var(--color-accent-gold);
        border-radius: 2px 2px 0 0;
    }

    .nav-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 22px);
        margin: 0;
    }

    /* Modify Main Content area for bottom nav clearance */
    .terminal-main {
        padding: 20px 20px 80px 20px; /* Safe padding at bottom to clear nav */
        height: 100vh;
        overflow-y: auto;
    }

    .terminal-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .header-details h2 {
        font-size: 18px;
    }
    
    .header-details p {
        font-size: 11px;
    }

    /* Table adjustments */
    .terminal-table th, 
    .terminal-table td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .fields-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Custom Webkit scrollbar for terminal panels */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.3);
}