:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-hover: #334155;
  --bg-glass: rgba(15, 23, 42, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(96, 165, 250, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.app-header {
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 20;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.accent-text {
  color: var(--accent-blue);
  font-weight: 400;
}

.subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Mode Switcher Segmented Control */
.mode-switcher-container {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mode-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.mode-pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.mode-pill-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* Badges */
.header-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-badge.live {
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

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

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

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  flex: 1;
  overflow: hidden;
}

/* Sidebars */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.right-sidebar {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}

/* Panels */
.panel {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 16px;
}

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

.panel-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Layer Toggles */
.layer-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary);
  user-select: none;
}

.toggle-item input {
  display: none;
}

.toggle-switch {
  width: 34px;
  height: 18px;
  background: #334155;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: var(--transition);
}

.toggle-item input:checked + .toggle-switch {
  background: var(--accent-blue);
}

.toggle-item input:checked + .toggle-switch::after {
  transform: translateX(16px);
}

/* Scenario Buttons */
.scenario-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  color: var(--text-primary);
}

.scenario-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.scenario-icon {
  font-size: 1.25rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.scenario-meta strong {
  font-size: 0.85rem;
  display: block;
}

.scenario-meta p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Editor Tabs */
.editor-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.tab-btn {
  flex: 1;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Drawing Mode Preview Styles */
#drawing-preview-layer,
#walls-group {
  pointer-events: none;
}

.drawing-active {
  cursor: crosshair !important;
}

.drawing-vertex {
  fill: var(--accent-amber);
  stroke: #fff;
  stroke-width: 2;
  animation: vertex-pulse 1s infinite ease-in-out;
  transform: none !important;
  transition: none !important;
}

@keyframes vertex-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.drawing-line {
  stroke: var(--accent-amber);
  stroke-width: 2.5;
  stroke-dasharray: 6,4;
  fill: none;
  transform: none !important;
  transition: none !important;
}

.drawing-polygon-preview {
  fill: rgba(245, 158, 11, 0.2);
  stroke: var(--accent-amber);
  stroke-width: 2;
  stroke-dasharray: 6,4;
  transform: none !important;
  transition: none !important;
}

.custom-room-polygon {
  fill: rgba(59, 130, 246, 0.25);
  stroke: rgba(96, 165, 250, 0.8);
  stroke-width: 2;
  cursor: pointer;
}

.custom-room-polygon:hover {
  fill: rgba(59, 130, 246, 0.45);
  stroke: #fff;
  stroke-width: 3;
}

/* Forms */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.input-select, .input-text {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.input-select:focus, .input-text:focus {
  border-color: var(--accent-blue);
}

.editor-hint {
  font-size: 0.75rem;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* Canvas Area */
.canvas-area {
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.canvas-card {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Simulation Banner */
.simulation-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 15;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  animation: banner-pulse 1s infinite alternate;
}

@keyframes banner-pulse {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-50%) scale(1.02); }
}

.svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#house-svg {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
}

/* SVG Interactive Styles */
.room-wall-line {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.45));
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.room-zone {
  fill: rgba(30, 41, 59, 0.35);
  stroke: rgba(148, 163, 184, 0.15);
  stroke-width: 1.5;
  cursor: pointer;
}

.room-zone:hover {
  fill: rgba(59, 130, 246, 0.18);
  stroke: rgba(96, 165, 250, 0.6);
  stroke-width: 2;
}

.room-zone.active-zone {
  fill: rgba(59, 130, 246, 0.28);
  stroke: var(--accent-blue);
  stroke-width: 3;
}

.room-zone.motion-active {
  fill: rgba(245, 158, 11, 0.25);
  stroke: var(--accent-amber);
  animation: zone-glow-amber 1.5s infinite;
}

.room-zone.panic-active {
  fill: rgba(239, 68, 68, 0.4);
  stroke: var(--accent-red);
  animation: zone-glow-red 0.6s infinite;
}

@keyframes zone-glow-amber {
  0%, 100% { fill: rgba(245, 158, 11, 0.15); }
  50% { fill: rgba(245, 158, 11, 0.35); }
}

@keyframes zone-glow-red {
  0%, 100% { fill: rgba(239, 68, 68, 0.2); }
  50% { fill: rgba(239, 68, 68, 0.55); }
}

/* Sensor Pins */
.sensor-pin, .custom-pin {
  cursor: pointer;
  transition: none !important;
}

.sensor-pin .pin-halo {
  pointer-events: none;
  transition: none !important;
}

.sensor-pin .pin-body {
  fill: #0f172a;
  transition: none !important;
}

.sensor-pin:hover .pin-halo {
  opacity: 0.8;
}

.sensor-pin:hover .pin-body {
  stroke: #ffffff !important;
}

.pin-panic .pin-halo {
  fill: rgba(239, 68, 68, 0.3);
}

.pin-panic .pin-body {
  stroke: #ef4444;
}

.pin-panic:hover .pin-halo {
  fill: rgba(239, 68, 68, 0.65);
  stroke: #ef4444;
  stroke-width: 1.5;
}

.pin-panic:hover .pin-body {
  stroke: #ffffff;
  stroke-width: 2.5px;
}

.pin-active .pin-halo {
  fill: rgba(245, 158, 11, 0.5);
  animation: pulse-pin 1.2s infinite ease-in-out;
}

.pin-active .pin-body {
  stroke: var(--accent-amber);
}

.panic-trigger-active .pin-halo {
  fill: rgba(239, 68, 68, 0.8);
  animation: pulse-panic-pin 0.5s infinite ease-in-out;
}

@keyframes pulse-pin {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.25; }
}

@keyframes pulse-panic-pin {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.pulsing-path {
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Inspector */
.inspector-body {
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.info-label {
  color: var(--text-muted);
}

.info-val {
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.badge {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-purple { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Event Log */
.event-stream {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
}

.event-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-sm);
}

.event-entry .time {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.event-entry .desc {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Z-Score Widget */
.zscore-card {
  padding: 8px 0;
}

.zscore-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-green);
  font-family: 'JetBrains Mono', monospace;
}

.zscore-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.zscore-bar-container {
  height: 6px;
  background: #334155;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.zscore-bar {
  height: 100%;
  background: var(--accent-green);
  transition: width 0.5s ease;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  width: 92%;
  max-width: 540px;
  padding: 22px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Floating Navigation Toolbar */
.canvas-nav-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.canvas-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.canvas-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.canvas-nav-btn.active {
  background: #2563eb;
  border-color: #60a5fa;
}

.zoom-level-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 4px;
  user-select: none;
  min-width: 48px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

/* Panning cursor */
.panning-active {
  cursor: grab !important;
}

.panning-active:active, .is-panning {
  cursor: grabbing !important;
}

/* Blueprint Themes & Color Modes */
.bp-theme-dark .svg-container, .bp-theme-dark #house-svg {
  background: #0d1117 !important;
}
.bp-theme-dark #bg-grid-rect {
  fill: #0d1117 !important;
}
.bp-theme-dark #custom-bg-image {
  filter: none;
}

.bp-theme-invert #bg-grid-rect {
  fill: #0d1117 !important;
}
.bp-theme-invert #custom-bg-image {
  filter: invert(1) contrast(1.1);
}

.bp-theme-navy .svg-container, .bp-theme-navy #house-svg {
  background: #0c1e38 !important;
}
.bp-theme-navy #bg-grid-rect {
  fill: #0c1e38 !important;
}
.bp-theme-navy #custom-bg-image {
  filter: invert(1) drop-shadow(0 0 1px rgba(56, 189, 248, 0.4));
}

.bp-theme-light .svg-container, .bp-theme-light #house-svg {
  background: #f8fafc !important;
}
.bp-theme-light #bg-grid-rect {
  fill: #f8fafc !important;
}
.bp-theme-light #bg-pattern-rect {
  opacity: 0.08;
}
.bp-theme-light #custom-bg-image {
  filter: invert(1) contrast(1.15) brightness(0.85) !important;
}

.hidden {
  display: none !important;
}

.print-only {
  display: none;
}

/* ==========================================================================
   Print Stylesheet for Blueprint & Device Schedule Export
   ========================================================================== */
@media print {
  @page {
    size: letter landscape;
    margin: 10mm;
  }

  body, html {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt;
    height: auto !important;
    overflow: visible !important;
  }

  .app-header,
  .sidebar,
  .canvas-nav-toolbar,
  .simulation-banner,
  .modal-overlay,
  .btn {
    display: none !important;
  }

  .app-container {
    height: auto !important;
    display: block !important;
  }

  .main-layout {
    display: block !important;
    height: auto !important;
  }

  .canvas-area {
    padding: 0 !important;
    height: auto !important;
    display: block !important;
  }

  .canvas-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 0 !important;
  }

  .svg-container {
    width: 100% !important;
    max-height: 520px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    margin-bottom: 20px !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  #house-svg {
    background: #ffffff !important;
    width: 100% !important;
    height: auto !important;
  }

  #bg-grid-rect {
    fill: #ffffff !important;
  }

  #bg-pattern-rect {
    display: none !important;
  }

  #custom-bg-image {
    filter: invert(1) contrast(1.2) brightness(0.7) !important;
  }

  /* Printable Schedule Block */
  .print-only {
    display: block !important;
    page-break-before: auto;
  }

  .print-header {
    border-bottom: 2px solid #0f172a;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .print-header h1 {
    font-size: 16pt;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
  }

  .print-header .print-meta {
    font-size: 8.5pt;
    color: #475569;
    text-align: right;
  }

  .print-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
    margin-top: 10px;
    page-break-inside: auto;
  }

  .print-schedule-table th,
  .print-schedule-table td {
    border: 1px solid #cbd5e1;
    padding: 5px 8px;
    text-align: left;
  }

  .print-schedule-table th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 7.5pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-schedule-table tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-schedule-table tr:nth-child(even) {
    background-color: #f8fafc !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-vlan-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 7pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-vlan-10 {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd;
  }

  .print-vlan-20 {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca;
  }

  .print-vlan-1 {
    background: #f3e8ff !important;
    color: #6b21a8 !important;
    border: 1px solid #e9d5ff;
  }
}

/* Project Manager & Cloud Sync Styles */
.btn-project-manager {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-project-manager:hover {
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

.cloud-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cloud-sync-dot.online {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.cloud-sync-dot.offline {
  background: #94a3b8;
}

.cloud-sync-dot.syncing {
  background: #f59e0b;
  animation: pulse-sync 0.8s infinite;
}

@keyframes pulse-sync {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.project-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(30, 41, 59, 0.6);
}

.project-card.active-project {
  border-color: #3b82f6;
  background: rgba(37, 99, 235, 0.12);
}

.project-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

.project-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

