/* Blueflame Performance — Shared Design Tokens & Base Styles */
/* Referenced by all apps on the main server (port 3000) */

:root {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-card: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(2,6,23,0.98));
  --bg-card-solid: #0f172a;
  --border: #1e3a5f;
  --border-subtle: rgba(55,65,81,0.5);
  --text-primary: #e5e7eb;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59,130,246,0.5);
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --gradient-blue: linear-gradient(135deg, #60a5fa, #2563eb);
  --gradient-card: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(15,23,42,0.95));
  --sidebar-w: 260px;
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse at top, #0f172a 0%, #020617 50%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 3px; }

/* Toast Notifications */
.toast-notification {
  position: fixed; top: 20px; right: 20px;
  padding: 12px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  z-index: 10000;
  animation: toastIn 0.3s ease;
  font-family: inherit;
}
.toast-notification.success { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.toast-notification.error { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.toast-notification.info { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Common Button Styles */
.btn-shared-primary {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.btn-shared-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.4); }

/* Glass Panel */
.glass-shared {
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(2,6,23,0.98));
  border: 1px solid rgba(55,65,81,0.5);
  border-radius: 14px;
}

/* Sidebar Base */
.sidebar-shared {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #020617, #0b1120);
  border-right: 1px solid var(--border);
  padding: 16px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

/* Logo */
.logo-shared {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.logo-shared img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.logo-shared h1 { font-size: 20px; font-weight: 800; font-style: italic; color: #fff; letter-spacing: 1.5px; }
.logo-shared p { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; }

/* Nav Group */
.nav-group-shared {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 8px;
}

/* Form Inputs */
.input-shared {
  background: rgba(15,23,42,0.9);
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 12px;
  padding: 10px 12px;
  font-family: inherit;
}
.input-shared:focus { outline: none; border-color: #3b82f6; }

/* Modal */
.modal-shared {
  background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(2,6,23,0.99));
  border: 1px solid #1e3a5f;
  border-radius: 14px;
}
