/* ==========================================================================
   GGM Sign - Modern UI Design System
   GIGAMEDIA Theme (Bleu #2596be & Blanc)
   ========================================================================== */

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

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Menlo, monospace;

  /* LIGHT THEME PALETTE (DEFAULT) */
  --bg-app: #f4f7fa;
  --bg-sidebar: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.95);
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-muted: #f1f5f9;

  --border-subtle: #e2e8f0;
  --border-normal: #cbd5e1;
  --border-focus: #02448c;
  --ring-focus: rgba(2, 68, 140, 0.20);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-disabled: #94a3b8;

  /* GIGAMEDIA Brand Colors */
  --brand-primary: #02448c;
  --brand-primary-hover: #01336a;
  --brand-secondary: #003366;
  --brand-accent: #02448c;
  --brand-accent-hover: #01336a;
  --brand-accent-subtle: rgba(2, 68, 140, 0.08);
  --brand-accent-border: rgba(2, 68, 140, 0.20);

  --success: #059669;
  --success-subtle: rgba(5, 150, 105, 0.10);
  --success-border: rgba(5, 150, 105, 0.25);

  --warning: #d97706;
  --warning-subtle: rgba(217, 119, 6, 0.10);

  --danger: #e11d48;
  --danger-subtle: rgba(225, 29, 72, 0.10);
  --danger-border: rgba(225, 29, 72, 0.25);

  --purple: #7c3aed;
  --purple-subtle: rgba(124, 58, 237, 0.10);

  /* Radius & Shadows */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-elevated: 0 10px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);

  --transition: 0.15s ease;
}

/* DARK THEME OVERRIDES (IF TOGGLED) */
:root[data-theme="dark"],
html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"] {
  --bg-app: #080c14;
  --bg-sidebar: #0d131f;
  --bg-header: rgba(13, 19, 31, 0.88);
  --bg-surface: #121a29;
  --bg-surface-hover: #172235;
  --bg-input: #0b101b;
  --bg-muted: #1c2638;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-normal: rgba(255, 255, 255, 0.14);
  --border-focus: #38bdf8;
  --ring-focus: rgba(56, 189, 248, 0.30);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-disabled: #475569;

  --brand-primary: #38bdf8;
  --brand-primary-hover: #0ea5e9;
  --brand-accent: #38bdf8;
  --brand-accent-hover: #0ea5e9;
  --brand-accent-subtle: rgba(56, 189, 248, 0.12);
  --brand-accent-border: rgba(56, 189, 248, 0.25);

  --success: #10b981;
  --success-subtle: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.25);

  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] #login-screen {
  background: radial-gradient(circle at top center, rgba(56, 189, 248, 0.08) 0%, transparent 70%), #080c14;
}

[data-theme="dark"] .login-card {
  background: #121a29;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .form-control {
  background: #0b101b;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .btn-secondary {
  background: #121a29;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .btn-secondary:hover {
  background: #172235;
  border-color: rgba(255, 255, 255, 0.25);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 0.875rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* SVG Icons Utility */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.icon svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   AUTHENTICATION & LOGIN SCREEN
   ========================================================================== */
#login-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top center, rgba(37, 150, 190, 0.08) 0%, transparent 70%), var(--bg-app);
  padding: 1.5rem;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #02448c 0%, #002d5e 100%);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--brand-accent-subtle);
  border: 1px solid var(--brand-accent-border);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.login-error-box {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--danger-subtle);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.815rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
#app-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Test Mode Banner */
.test-role-banner {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.5rem 1.5rem;
  font-size: 0.815rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.test-role-banner button {
  background: #ffffff;
  border: 1px solid #86efac;
  color: #15803d;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.test-role-banner button:hover {
  background: #f0fdf4;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-accent-subtle);
  border: 1px solid var(--brand-accent-border);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text h1 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--brand-accent-subtle);
  border: 1px solid var(--brand-accent-border);
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* App Container & Sidebar */
.app-container {
  display: flex;
  flex: 1;
  position: relative;
}

.app-sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

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

.nav-item.active {
  background: var(--brand-accent-subtle);
  color: var(--brand-primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--brand-primary);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.nav-icon {
  font-size: 1.1rem;
  color: inherit;
  opacity: 0.9;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-weight: 600;
}

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

.view-section {
  display: none;
  animation: fadeIn 0.2s ease;
}

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

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

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.section-title h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   COMPONENTS: BUTTONS, BADGES, INPUTS & PANELS
   ========================================================================== */

/* Panels */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

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

.panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  font-size: 0.815rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.btn-primary {
  background: #02448c;
  color: #ffffff;
  border-color: #02448c;
  box-shadow: 0 1px 2px rgba(2, 68, 140, 0.25);
}

.btn-primary:hover {
  background: #01336a;
  border-color: #01336a;
}

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

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

.btn-success {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.btn-success:hover {
  background: #047857;
}

.btn-danger {
  background: var(--danger-subtle);
  color: var(--danger);
  border-color: var(--danger-border);
}

.btn-danger:hover {
  background: rgba(225, 29, 72, 0.18);
}

.btn-icon {
  padding: 0.45rem;
  width: 32px;
  height: 32px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  line-height: 1.3;
  white-space: nowrap;
}

.badge-blue {
  background: var(--brand-accent-subtle);
  color: var(--brand-primary);
  border: 1px solid var(--brand-accent-border);
}

.badge-purple {
  background: var(--purple-subtle);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-success {
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-warning, .badge-amber {
  background: var(--warning-subtle);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-danger {
  background: var(--danger-subtle);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.badge-neutral {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.52rem 0.8rem;
  font-size: 0.825rem;
  font-family: var(--font-sans);
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--ring-focus);
}

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

.password-input-wrap input {
  padding-right: 2.25rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-subtle);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.blue { background: var(--brand-accent-subtle); color: var(--brand-primary); }
.stat-icon.green { background: var(--success-subtle); color: var(--success); }
.stat-icon.purple { background: var(--purple-subtle); color: var(--purple); }
.stat-icon.amber { background: var(--warning-subtle); color: var(--warning); }

.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.table-responsive::-webkit-scrollbar {
  display: none;
}

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

.custom-table th {
  padding: 0.65rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  white-space: nowrap;
}

.custom-table td {
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.custom-table tbody tr:hover td {
  background: var(--bg-surface-hover);
}

/* Studio Editor Split Layout */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}

.tag-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag-chip {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover {
  background: var(--brand-accent-subtle);
  border-color: var(--brand-accent-border);
}

/* Preview Box */
.preview-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.preview-devices {
  display: flex;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.device-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.device-btn.active {
  background: var(--bg-surface);
  color: var(--brand-primary);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
}

.signature-preview-container {
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  min-height: 240px;
  overflow-x: auto;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-dialog > form {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 88vh;
  overflow: hidden;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

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

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  background: var(--bg-surface);
}

/* Targeting Selector Component inside Modals */
.targeting-selector-box {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.targeting-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 20px;
}

.targeting-controls-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.targeting-scroll-list {
  max-height: 125px;
  overflow-y: auto;
  background: var(--bg-input);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-normal);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.815rem;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  transition: all 0.25s ease;
  min-width: 280px;
}

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