/* ═══════════════════════════════════════════════════════════════
   BusyShadow — Shared Styles
   Dark, professional "corporate stealth tool" aesthetic
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #1a1a26;
  --surface-3: #22222e;
  --border: #2a2a3a;
  --border-focus: #4ade80;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --text-muted: #555570;
  --accent: #4ade80;
  --accent-dim: #22c55e20;
  --accent-hover: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #a78bfa;
  --blue: #3b82f6;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ─── Top Navigation Bar ───────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .logo-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--bg);
  font-weight: 700;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-links a {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all 0.2s;
}

.navbar-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.navbar-links .btn-nav-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.navbar-links .btn-nav-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

/* ─── Auth Forms ───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 2rem 2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-card .auth-subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px #4ade8015;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px #4ade8025;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--surface-3);
}

/* ─── Error / Success Messages ─────────────────────────────── */
.alert {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  display: none;
}

.alert-error {
  background: #ef444415;
  border: 1px solid #ef444430;
  color: #fca5a5;
}

.alert-success {
  background: #4ade8015;
  border: 1px solid #4ade8030;
  color: #86efac;
}

.alert.show { display: block; }

/* ─── Auth Footer Links ────────────────────────────────────── */
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
}

/* ─── Dashboard Styles ─────────────────────────────────────── */
.dashboard-wrapper {
  padding: 80px 2rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.dash-header {
  margin-bottom: 2.5rem;
}

.dash-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.dash-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.dash-card:hover {
  border-color: #3a3a4a;
}

.dash-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.dash-card-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dash-card-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.plan-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-badge.free {
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.plan-badge.stealth {
  background: #4ade8015;
  color: var(--accent);
  border: 1px solid #4ade8030;
}

.plan-badge.operator {
  background: #f59e0b15;
  color: var(--amber);
  border: 1px solid #f59e0b30;
}

.plan-badge.executive {
  background: #ef444415;
  color: var(--red);
  border: 1px solid #ef444430;
}

/* ─── Calendar Connection Card ─────────────────────────────── */
.connect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.connect-card .connect-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid #4ade8020;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.connect-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.connect-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 400px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

/* ─── Upgrade Banner ───────────────────────────────────────── */
.upgrade-banner {
  background: linear-gradient(135deg, var(--surface) 0%, #1a1a2a 100%);
  border: 1px solid #4ade8025;
  border-radius: 14px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
}

.upgrade-banner-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.upgrade-banner-text p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ─── Quick Actions ────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}

.quick-action:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--text);
}

.quick-action .qa-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.quick-action .qa-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.quick-action .qa-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 1px;
}

/* ─── Footer ───────────────────────────────────────────────── */
.page-footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 4rem;
}

.page-footer p {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.page-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .auth-card { padding: 1.75rem; }
  .dashboard-wrapper { padding: 80px 1rem 1rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .upgrade-banner { flex-direction: column; text-align: center; }
  .quick-actions { grid-template-columns: 1fr; }
}
