/* ==========================================================================
   CURA SAAS CONTROL PLANE AGENT - DESIGN SYSTEM & STYLES
   ========================================================================== */

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

:root {
  /* Color Palette - Deep Dark Tech Mode */
  --bg-dark: #070a12;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(17, 24, 39, 0.65);
  --bg-input: rgba(15, 23, 42, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.35);
  --border-active: rgba(139, 92, 246, 0.5);

  /* Primary Accent Colors */
  --cura-cyan: #06b6d4;
  --cura-cyan-glow: rgba(6, 182, 212, 0.25);
  --cura-violet: #8b5cf6;
  --cura-violet-glow: rgba(139, 92, 246, 0.25);
  --cura-blue: #3b82f6;

  /* Status Colors */
  --status-running-bg: rgba(16, 185, 129, 0.12);
  --status-running-text: #10b981;
  --status-running-border: rgba(16, 185, 129, 0.3);

  --status-deploying-bg: rgba(6, 182, 212, 0.12);
  --status-deploying-text: #06b6d4;
  --status-deploying-border: rgba(6, 182, 212, 0.3);

  --status-stopped-bg: rgba(239, 68, 68, 0.15);
  --status-stopped-text: #ef4444;
  --status-stopped-border: rgba(239, 68, 68, 0.35);

  --status-error-bg: rgba(239, 68, 68, 0.12);
  --status-error-text: #ef4444;
  --status-error-border: rgba(239, 68, 68, 0.3);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Shadows */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 100%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(7, 10, 18, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.4);
}

/* Glassmorphism Panel Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.glass-panel-interactive {
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.glass-panel-interactive:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -10px rgba(6, 182, 212, 0.12);
}

/* Detail Modal Tiles */
.detail-tile {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  transition: border-color var(--transition-normal), background var(--transition-normal);
}
.detail-tile:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}
.detail-tile-label {
  color: var(--text-dim);
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.detail-tile-value {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  word-break: break-word;
}

/* Audit Log System Badges & Components */
.badge-level-info {
  background: rgba(14, 165, 233, 0.15);
  color: var(--cura-cyan);
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
}
.badge-level-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
}
.badge-level-warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
}
.badge-level-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
}

.category-pill {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
  text-transform: capitalize;
}

.log-instance-link {
  color: var(--cura-cyan);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: color var(--transition-normal);
}
.log-instance-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}


/* Auth Container */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
  z-index: 10;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.auth-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cura-cyan), var(--cura-violet));
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--cura-cyan), var(--cura-violet));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 20px var(--cura-cyan-glow);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cura-cyan);
  font-weight: 600;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--cura-cyan);
  box-shadow: 0 0 15px var(--cura-cyan-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cura-cyan), #0284c7);
  color: white;
  box-shadow: 0 4px 15px var(--cura-cyan-glow);
}
.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

.demo-credentials-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(6, 182, 212, 0.05);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.demo-credentials-box strong {
  color: var(--cura-cyan);
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Navbar */
.navbar {
  height: 70px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Main Navigation Tabs */
.main-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.25));
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.nav-tab-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cura-violet), #7c3aed);
  color: white;
  font-weight: 700;
}

/* View Container Switching */
.app-view {
  display: none;
  animation: fadeInView 0.3s ease-in-out forwards;
}

.app-view.active {
  display: block;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #c4b5fd;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.admin-badge .status-dot,
.user-dropdown-wrapper .status-dot {
  background: #10b981;
  color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.pulsing,
.status-pill .status-dot {
  animation: pulse-dot-generic 2s infinite;
}

@keyframes pulse-dot-generic {
  0% { transform: scale(0.92); opacity: 0.8; box-shadow: 0 0 0 0 currentColor; }
  70% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 0 6px transparent; }
  100% { transform: scale(0.92); opacity: 0.8; box-shadow: 0 0 0 0 transparent; }
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Dashboard Top Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cura-cyan), var(--cura-violet));
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cura-cyan);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-change {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--status-running-text);
}

/* Toolbar & Table Section */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 750px;
}

.table-container {
  overflow-x: auto;
  border-radius: 16px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.custom-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: background-color var(--transition-fast);
}

.custom-table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.5);
}

/* Instance Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-pill.running,
.status-pill.active {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-pill.deploying {
  background: var(--status-deploying-bg);
  color: var(--status-deploying-text);
  border: 1px solid var(--status-deploying-border);
}

.status-pill.stopped,
.status-pill.disabled,
.status-pill.deaktiviert {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.status-pill.error,
.status-pill.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Modal & Dialog Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ==========================================
   GLOBAL MODAL BACKDROP BLUR SYSTEM
   Blurs everything behind open modals 100% reliably across all browsers
   ========================================== */
#app-screen,
#auth-screen,
#activity-widget {
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1), -webkit-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body:has(.modal-overlay.active) #app-screen,
body:has(.modal-overlay.active) #auth-screen,
body:has(.modal-overlay.active) #activity-widget,
body:has(.modal-overlay[style*="display: flex"]) #app-screen,
body:has(.modal-overlay[style*="display: flex"]) #auth-screen,
body:has(.modal-overlay[style*="display: flex"]) #activity-widget,
body.modal-open #app-screen,
body.modal-open #auth-screen,
body.modal-open #activity-widget {
  filter: blur(10px) brightness(0.65);
  -webkit-filter: blur(10px) brightness(0.65);
  pointer-events: none !important;
  user-select: none !important;
}

.modal-content {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  outline: none;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: scale(1.05);
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 15, 26, 0.5);
}

/* Wizard Stepper Progress */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.wizard-step.active .step-number {
  border-color: var(--cura-cyan);
  background: var(--cura-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--cura-cyan-glow);
}

.wizard-step.completed .step-number {
  border-color: var(--status-running-text);
  background: var(--status-running-text);
  color: #000;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.wizard-step.active .step-label {
  color: var(--text-main);
}

/* Plan Selection Cards */
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plan-card {
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.4);
  transition: all var(--transition-fast);
  text-align: center;
}

.plan-card:hover, .plan-card.selected {
  border-color: var(--cura-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.plan-card.selected {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.plan-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.plan-price {
  font-size: 0.8rem;
  color: var(--cura-cyan);
  margin-bottom: 0.75rem;
}

/* Terminal Console View */
.terminal-window {
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: var(--font-mono);
  overflow: hidden;
}

.terminal-bar {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-body {
  padding: 1.25rem;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #38bdf8;
}

.log-line {
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.75rem;
}

.log-time {
  color: var(--text-dim);
  user-select: none;
}

.log-info { color: #38bdf8; }
.log-success { color: #4ade80; }
.log-warn { color: #fbbf24; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--cura-cyan);
  vertical-align: middle;
  animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 6rem;
  right: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9990;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem;
  color: var(--text-main);
  animation: toast-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 300px;
}

.toast.success { border-left: 4px solid var(--status-running-text); }
.toast.info { border-left: 4px solid var(--cura-cyan); }
.toast.error { border-left: 4px solid var(--status-error-text); }

@keyframes toast-slide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Status Pill for Tester */
.status-pill.tester {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-tester {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Telemetry Progress Bars */
.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Info Callout */
.info-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
}

/* Inline Code */
code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--cura-cyan);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .main-content { padding: 1rem; }
  .plan-cards-grid { grid-template-columns: 1fr; }
  .search-filter-group { max-width: 100%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 1.2s linear infinite;
  display: inline-block;
}

