/* ============================================
   VPS Manager Dashboard - Dark Theme
   Premium glassmorphism design
   ============================================ */

:root {
  /* Color palette */
  --bg-dark: #0a0e1a;
  --bg-card: rgba(16, 22, 40, 0.85);
  --bg-card-hover: rgba(22, 30, 55, 0.95);
  --bg-sidebar: rgba(12, 17, 32, 0.95);
  --bg-input: rgba(20, 28, 50, 0.8);
  --bg-modal: rgba(8, 12, 24, 0.95);
  
  --border-subtle: rgba(100, 120, 180, 0.12);
  --border-glow: rgba(100, 140, 255, 0.25);
  
  --text-primary: #e8ecf4;
  --text-secondary: #8892a8;
  --text-muted: #5a6478;
  
  --accent-blue: #4d7cff;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --accent-yellow: #fbbf24;
  --accent-red: #f87171;
  --accent-purple: #a78bfa;
  --accent-orange: #fb923c;
  
  --gradient-blue: linear-gradient(135deg, #4d7cff 0%, #22d3ee 100%);
  --gradient-green: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  --gradient-red: linear-gradient(135deg, #f87171 0%, #fb923c 100%);
  --gradient-purple: linear-gradient(135deg, #a78bfa 0%, #4d7cff 100%);
  
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 30px rgba(77, 124, 255, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --topbar-height: 64px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(77, 124, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 120, 180, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 120, 180, 0.5); }

/* ============== LOGIN SCREEN ============== */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: var(--bg-dark);
}

.login-container { position: relative; }

.login-glow {
  position: absolute;
  width: 400px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(77, 124, 255, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.login-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 420px;
  max-width: 90vw;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.login-header { text-align: center; margin-bottom: 36px; }

.login-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: var(--gradient-blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 8px 32px rgba(77, 124, 255, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 14px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group label i { margin-right: 6px; color: var(--accent-blue); }

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(77, 124, 255, 0.15);
}

.form-group input::placeholder { color: var(--text-muted); }

.btn-login {
  width: 100%;
  padding: 14px;
  background: var(--gradient-blue);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(77, 124, 255, 0.4); }
.btn-login:active { transform: translateY(0); }

.login-error {
  margin-top: 16px;
  padding: 12px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  font-size: 13px;
  text-align: center;
}

/* ============== APP LAYOUT ============== */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============== SIDEBAR ============== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.logo-text h2 { font-size: 16px; font-weight: 700; white-space: nowrap; }
.logo-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-toggle:hover { color: var(--text-primary); background: var(--bg-input); }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-item i { font-size: 18px; width: 20px; text-align: center; }

.nav-item:hover {
  background: rgba(77, 124, 255, 0.08);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(77, 124, 255, 0.15);
  color: var(--accent-blue);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--accent-blue);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-subtle);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}

/* ============== MAIN CONTENT ============== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============== TOPBAR ============== */
.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

.topbar-title h1 { font-size: 18px; font-weight: 700; }
.topbar-breadcrumb { font-size: 12px; color: var(--text-muted); }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-clock {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.user-avatar {
  width: 34px; height: 34px;
  background: var(--gradient-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

/* ============== PAGES ============== */
.page { display: none; padding: 24px 28px 40px; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== INFO BAR ============== */
.info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.info-chip i { color: var(--accent-blue); font-size: 13px; }

/* ============== METRICS GRID ============== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.metric-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.metric-icon.cpu { background: var(--gradient-blue); }
.metric-icon.ram { background: var(--gradient-green); }
.metric-icon.disk { background: var(--gradient-purple); }
.metric-icon.network { background: var(--gradient-red); }

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-body { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Gauge */
.gauge-container { position: relative; width: 120px; height: 120px; }

.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }

.gauge-bg {
  fill: none;
  stroke: rgba(100, 120, 180, 0.1);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.cpu-gauge { stroke: var(--accent-blue); filter: drop-shadow(0 0 6px rgba(77, 124, 255, 0.5)); }
.ram-gauge { stroke: var(--accent-green); filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.5)); }
.disk-gauge { stroke: var(--accent-purple); filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5)); }

.gauge-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 700;
}

.metric-details { display: flex; gap: 24px; }

.detail-item {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.detail-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

/* Network card */
.network-stats { width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }

.net-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.net-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.net-icon.download { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.net-icon.upload { background: rgba(77, 124, 255, 0.15); color: var(--accent-blue); }

.net-label { font-size: 12px; color: var(--text-muted); }
.net-value { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============== CHARTS ============== */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.chart-header h3 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-header h3 i { color: var(--accent-blue); }

.chart-badge {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border-radius: 100px;
  font-weight: 600;
}

.chart-body { padding: 16px; }

/* ============== DOCKER PAGE ============== */
.page-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-blue);
  color: white;
}

.btn-primary:hover { box-shadow: 0 4px 16px rgba(77, 124, 255, 0.4); transform: translateY(-1px); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-success { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); border: 1px solid rgba(52, 211, 153, 0.2); }
.btn-danger { background: rgba(248, 113, 113, 0.15); color: var(--accent-red); border: 1px solid rgba(248, 113, 113, 0.2); }
.btn-warning { background: rgba(251, 191, 36, 0.15); color: var(--accent-yellow); border: 1px solid rgba(251, 191, 36, 0.2); }
.btn-info { background: rgba(77, 124, 255, 0.15); color: var(--accent-blue); border: 1px solid rgba(77, 124, 255, 0.2); }

.btn-success:hover { background: rgba(52, 211, 153, 0.25); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.25); }
.btn-warning:hover { background: rgba(251, 191, 36, 0.25); }
.btn-info:hover { background: rgba(77, 124, 255, 0.25); }

/* Containers Grid */
.containers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.container-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.container-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.container-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.container-name i { color: var(--accent-cyan); font-size: 20px; }

.container-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.container-status.running {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
}

.container-status.exited, .container-status.stopped {
  background: rgba(248, 113, 113, 0.12);
  color: var(--accent-red);
}

.container-status.created, .container-status.paused {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-yellow);
}

.container-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.container-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.container-info-row i { width: 16px; font-size: 12px; color: var(--text-muted); }
.container-info-row strong { color: var(--text-primary); font-weight: 500; }

.container-ports {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.port-badge {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(77, 124, 255, 0.1);
  color: var(--accent-blue);
  border-radius: 6px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.container-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Loading */
.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-placeholder i { font-size: 32px; margin-bottom: 12px; color: var(--accent-blue); }
.loading-placeholder p { font-size: 14px; }

/* ============== PROCESSES TABLE ============== */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.table-header h3 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-header h3 i { color: var(--accent-blue); }

.table-count { font-size: 12px; color: var(--text-muted); }

.table-responsive { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(100, 120, 180, 0.05);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: rgba(77, 124, 255, 0.05); }

.loading-cell { text-align: center; padding: 40px; color: var(--text-muted); }

/* CPU/MEM bar in table */
.usage-bar {
  width: 60px;
  height: 6px;
  background: rgba(100, 120, 180, 0.1);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.usage-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.usage-bar-fill.low { background: var(--accent-green); }
.usage-bar-fill.medium { background: var(--accent-yellow); }
.usage-bar-fill.high { background: var(--accent-red); }

/* ============== MODAL ============== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-modal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-large { max-width: 800px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i { color: var(--accent-blue); }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

.logs-output {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 60vh;
  overflow-y: auto;
}

/* ============== TOAST NOTIFICATIONS ============== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-blue); }

.toast i { font-size: 16px; }
.toast.success i { color: var(--accent-green); }
.toast.error i { color: var(--accent-red); }
.toast.info i { color: var(--accent-blue); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============== SIDEBAR OVERLAY (Mobile) ============== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }

  .main-content { margin-left: 0; }

  .mobile-menu-btn { display: block; }

  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .charts-section { grid-template-columns: 1fr; }
  .containers-grid { grid-template-columns: 1fr; }

  .topbar { padding: 0 16px; }
  .page { padding: 16px; }
  .info-bar { display: none; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
}
