/* ==========================================================================
   FMW DIGITAL MARKETING AGENCY - MAIN DESIGN SYSTEM
   Theme: Luxury Golden Black (Deep Obsidian, Metallic Gold, Gold Glassmorphism)
   ========================================================================== */

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

:root {
  /* Core Golden Black Palette */
  --bg-primary: #050507;
  --bg-secondary: #0a0a0f;
  --bg-tertiary: #111117;
  --bg-card: rgba(16, 16, 22, 0.78);
  --bg-card-hover: rgba(26, 23, 18, 0.88);
  --bg-glass: rgba(10, 10, 14, 0.8);
  
  /* Gold Accents & Tones */
  --gold-primary: #d4af37;
  --gold-light: #f7e29a;
  --gold-bright: #fff0b3;
  --gold-dark: #aa771c;
  --gold-bronze: #885c14;
  --gold-amber: #c59b27;

  /* Borders with Gold Glow */
  --border-subtle: rgba(212, 175, 55, 0.16);
  --border-medium: rgba(212, 175, 55, 0.32);
  --border-glow: rgba(212, 175, 55, 0.55);
  --border-bright: rgba(247, 226, 154, 0.7);

  /* Status Accents */
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-danger: #ef4444;

  /* Luxurious Gold Gradients */
  --gradient-brand: linear-gradient(135deg, #f7d070 0%, #d4af37 38%, #b38728 72%, #fbf5b7 100%);
  --gradient-gold-metallic: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gradient-gold-subtle: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(247, 208, 112, 0.05) 100%);
  --gradient-card: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #fbf5b7 30%, #d4af37 70%, #aa771c 100%);
  --gradient-text-gold: linear-gradient(135deg, #fcf6ba 0%, #d4af37 50%, #aa771c 100%);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cinzel', 'Space Grotesk', serif;
  --font-subheading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #b8b8c2;
  --text-muted: #757582;
  --text-gold: #f5df8b;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px rgba(212, 175, 55, 0.28);
  --shadow-gold-heavy: 0 12px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.25);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Lights - Golden Black Radiance */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #d4af37 0%, rgba(212, 175, 55, 0.2) 50%, transparent 75%);
  top: -15%;
  right: -10%;
}

.ambient-orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #aa771c 0%, rgba(170, 119, 28, 0.2) 50%, transparent 75%);
  bottom: 10%;
  left: -15%;
  animation-delay: -7s;
}

.ambient-orb-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #fcf6ba 0%, rgba(212, 175, 55, 0.3) 40%, transparent 75%);
  top: 45%;
  right: 25%;
  animation-delay: -12s;
  opacity: 0.1;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* App Container */
#app-root {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Global Navigation Bar */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  z-index: 100;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.top-navbar.scrolled {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(212, 175, 55, 0.25);
  background: rgba(5, 5, 8, 0.96);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo with FMW Crest Image */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.45));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.7));
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gradient-gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.02em;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-primary);
}

/* Action Area & Role Switcher */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Role Switcher Pill */
.role-switcher {
  display: flex;
  align-items: center;
  background: rgba(212, 175, 55, 0.06);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.role-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-btn.active {
  background: var(--gradient-brand);
  color: #050507;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(212, 175, 55, 0.45);
}

.role-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: #050507;
  font-weight: 800;
}

/* General Buttons - Golden Black Luxury */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #050507;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shineGold 3.5s infinite;
}

@keyframes shineGold {
  0% { left: -100%; }
  25% { left: 100%; }
  100% { left: 100%; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.55);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--gold-light);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.btn-cyan {
  background: linear-gradient(135deg, #aa771c 0%, #d4af37 100%);
  color: #050507;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

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

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #ffffff;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 5, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-card {
  background: #09090e;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-gold-heavy);
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-slow);
  position: relative;
}

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

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #050507;
}

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  padding: 18px 28px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(12, 12, 16, 0.96);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-gold-heavy);
  backdrop-filter: blur(20px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 440px;
  transform: translateX(120%);
  transition: transform var(--transition-slow);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.toast-success .toast-icon {
  background: rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Form inputs & styles */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  background: rgba(20, 19, 24, 0.95);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Badges - Golden Black Accents */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-brand {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.badge-emerald {
  background: rgba(212, 175, 55, 0.2);
  color: #fcf6ba;
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.badge-cyan {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}
