/* ==========================================================================
   PulseGuard Modern Incident Command Center Design System v2
   ========================================================================== */

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

:root {
  /* Flutter App Dark Theme Palette Alignment (manager_app/lib/theme/app_theme.dart) */
  --bg-dark: #0b0e14;
  --bg-card: #121826;
  --bg-card-hover: #1a2336;
  --bg-header: rgba(11, 14, 20, 0.95);
  --bg-sidebar: #0b0e14;

  --border-color: rgba(255, 255, 255, 0.10);
  --border-highlight: rgba(0, 122, 255, 0.30);

  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  --text-dim: #5c6b73;

  /* Status / Severity Colors */
  --color-critical: #ff3b30;
  --color-high: #ff9500;
  --color-medium: #007aff;
  --color-low: #34c759;
  --color-purple: #007aff;
  --color-indigo: #007aff;

  /* Previous Color Palette (Commented out for easy fallback)
  --bg-dark: #0a0e17;
  --bg-card: rgba(18, 26, 42, 0.75);
  --bg-card-hover: rgba(26, 36, 56, 0.9);
  --bg-header: rgba(10, 14, 23, 0.92);
  --bg-sidebar: rgba(11, 16, 26, 0.95);

  --border-color: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(99, 102, 241, 0.4);

  --text-main: #f0f4fc;
  --text-muted: #8e9bb0;
  --text-dim: #4d5a6f;

  --color-critical: #ff3b30;
  --color-high: #ff9500;
  --color-medium: #3b82f6;
  --color-low: #22c55e;
  --color-purple: #a855f7;
  --color-indigo: #6366f1;
  */

  /* Fonts */
  --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Outfit', 'Noto Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Shadows & Radius */
  --glass-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.15);
  --card-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.08);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

/* ==========================================================================
   Light Theme Override Tokens
   ========================================================================== */
body.light-theme {
  /* Flutter App Theme Palette Alignment (Light Mode) */
  --bg-dark: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.97);
  --bg-sidebar: #ffffff;

  --border-color: #e2e8f0;
  --border-highlight: #007aff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --color-critical: #ff3b30;
  --color-high: #ff9500;
  --color-medium: #007aff;
  --color-low: #34c759;
  --color-purple: #007aff;
  --color-indigo: #007aff;

  --glass-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.04);
  --card-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.03);

  /* Previous Light Theme Tokens (Commented out for easy fallback)
  --border-highlight: #3b82f6;
  --color-medium: #3b82f6;
  --color-low: #22c55e;
  --color-purple: #a855f7;
  --color-indigo: #6366f1;
  */
}

/* Light theme input & form elements - all must be white with dark text */
body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: #94a3b8 !important;
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
  border-color: #007aff !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15) !important;
  outline: none;
}

body.light-theme .search-box {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

body.light-theme .search-box input {
  background: transparent !important;
  color: #0f172a !important;
}

body.light-theme .select-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-theme .endpoint-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .oncall-quick-bar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .ep-tier-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .sidebar-section-label {
  color: #94a3b8 !important;
}

body.light-theme .nav-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.light-theme .modal-card {
  background: #ffffff !important;
}

body.light-theme .note-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* ==========================================================================
   Global Reset & Base Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: var(--font-sans) !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Buttons System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  border: 1px solid transparent;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  gap: 6px;
}

.btn-simulate, .btn-primary {
  background: var(--color-indigo);
  color: #ffffff !important;
  border-color: var(--color-indigo);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-simulate:hover, .btn-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  color: var(--text-primary) !important;
  transform: translateY(-1px);
}

.btn-secondary svg, .btn-simulate svg, .btn svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Header Navigation Bar
   ========================================================================== */

.navbar {
  height: 58px;
  padding: 0 20px;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-medium);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-title) !important;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-indigo);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* On-Call Quick Bar - Perfectly Centered */
.oncall-quick-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: var(--radius-lg);
  z-index: 2;
}

.oncall-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chip-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.chip-user {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.oncall-chip.primary .chip-user {
  color: var(--color-indigo);
  font-weight: 700;
}

.oncall-divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

/* Nav Actions Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 1;
}

.btn {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.btn-simulate {
  background: linear-gradient(135deg, #007aff, #0056b3);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.18);
}

.btn-simulate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.28);
}

.btn-simulate:active {
  transform: translateY(0);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.btn-icon:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
}

/* Header User Profile Widget */
.header-user-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: border-color 0.2s;
}

.header-user-widget:hover {
  border-color: var(--border-highlight);
}

.user-avatar-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007aff, #0056b3);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.user-display-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-logout {
  background: rgba(255, 59, 48, 0.1);
  color: var(--color-critical);
  border: 1px solid rgba(255, 59, 48, 0.2);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-logout:hover {
  background: var(--color-critical);
  color: #ffffff;
  border-color: var(--color-critical);
  box-shadow: 0 0 14px rgba(255, 59, 48, 0.35);
}

.btn-signin {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 16px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-signin:hover {
  background: var(--color-indigo);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

/* ==========================================================================
   App Layout & Sidebar
   ========================================================================== */
.app-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: calc(100vh - 58px);
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}

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

.sidebar-bottom-nav {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Sidebar section labels */
.sidebar-section-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 14px 10px 6px;
  display: block;
}

.sidebar-section-label:first-child {
  padding-top: 4px;
}

/* Nav items - anchor tags used as nav links */
.nav-item {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  background: rgba(0, 122, 255, 0.08);
  color: var(--text-main);
  border: none;
}

.nav-item.active {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
  font-weight: 700;
}

.nav-item.active:hover {
  background: rgba(0, 122, 255, 0.18);
  color: #007aff;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: #007aff;
  border-radius: 0 3px 3px 0;
}

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.nav-item:hover svg,
.nav-item.active svg {
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 59, 48, 0.15);
  color: var(--color-critical);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 48, 0.2);
  min-width: 20px;
  text-align: center;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 8px;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
  padding: 24px 28px;
  overflow-y: auto;
  min-width: 0;
}

/* Tab system */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-header {
  margin-bottom: 22px;
}

.tab-header h2 {
  font-family: var(--font-title) !important;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.tab-header p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.modal-header-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-icon-close {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}

.btn-icon-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* Custom Confirmation Modal */
.confirm-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-header-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.confirm-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-icon-box.danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-critical);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.confirm-icon-box.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.confirm-icon-box.info {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-indigo);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.confirm-icon-box.success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-low);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.confirm-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.confirm-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.confirm-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.btn-confirm-action {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-confirm-action.danger {
  background: var(--color-critical);
  color: #fff;
}
.btn-confirm-action.danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-confirm-action.warning {
  background: #f59e0b;
  color: #fff;
}
.btn-confirm-action.warning:hover {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-confirm-action.info, .btn-confirm-action.primary {
  background: var(--color-indigo);
  color: #fff;
}
.btn-confirm-action.info:hover, .btn-confirm-action.primary:hover {
  background: #4f46e5;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-icon-close:hover {
  background: rgba(255, 59, 48, 0.12);
  color: var(--color-critical);
  border-color: rgba(255, 59, 48, 0.3);
}

.modal-title {
  font-family: var(--font-title) !important;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.modal-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

body.light-theme .modal-meta-grid {
  background: #f8fafc;
}

.meta-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 3px;
}

.meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
  word-break: break-all;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-notes-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.note-item {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.note-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.note-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.4;
}

.add-note-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.add-note-box input {
  flex: 1;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.add-note-box input:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   Simulate Modal
   ========================================================================== */
.sim-form-group {
  margin-bottom: 16px;
}

.sim-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.sim-form-group input,
.sim-form-group select {
  width: 100%;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.sim-form-group input:focus,
.sim-form-group select:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==========================================================================

   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--glass-shadow);
  pointer-events: all;
  animation: toastSlideIn 0.25s ease, toastFadeOut 0.3s ease 2.7s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.toast.success {
  border-left: 3px solid var(--color-low);
}

.toast.error {
  border-left: 3px solid var(--color-critical);
}

.toast.info {
  border-left: 3px solid var(--color-indigo);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ==========================================================================
   Responsive / Mobile Sidebar (Hamburger Menu)
   ========================================================================== */
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -230px;
    top: 58px;
    height: calc(100vh - 58px);
    z-index: 150;
    transition: left 0.25s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    width: 210px;
  }

  body.sidebar-open .sidebar {
    left: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 140;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  body.sidebar-open .sidebar-overlay {
    display: block;
  }

  .btn-hamburger {
    display: flex !important;
  }

  .oncall-quick-bar {
    display: none !important;
    /* hide on mobile to save space */
  }
}

@media (min-width: 1025px) {
  .btn-hamburger {
    display: none !important;
  }

  .sidebar-overlay {
    display: none !important;
  }
}