/* =========================================
   CSS STYLES 
   ========================================= */
:root {
  --bg: #fafafa;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #1e40ff;
}

html.dark {
  --bg: #0f172a;
  --text: #ffffff;
  --muted: #94a3b8;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid #e5e7eb;
}

/* LEFT */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  color: #214dde;
  font-weight: 800;
}

.brand-text h2 {
  margin: 0;
  font-size: 14px;
  color: #22c55e;
  letter-spacing: 1px;
  font-weight: 800;
}

/* CENTER */
.nav-center {
  display: flex;
  gap: 26px;
}

/* NAV LINKS DEFAULT */
.nav-center a {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

/* LIGHT MODE HOVER */
.nav-center a:hover {
  color: #0f172a;
}

/* DARK MODE DEFAULT */
html.dark .nav-center a {
  color: #94a3b8;
}

/* DARK MODE HOVER */
html.dark .nav-center a:hover {
  color: #ffffff;
}

.nav-center a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
}

/* RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* THEME DROPDOWN */
.theme-dropdown {
  position: relative;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: var(--bg);
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
}

/* DARK MODE FIX */
html.dark .theme-toggle {
  color: #ffffff;
  border-color: #334155;
}

.theme-menu {
  position: absolute;
  top: 120%;
  right: 0;
  display: none;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 160px;
  z-index: 100;
}

.theme-menu div {
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
}

.theme-menu div:hover {
  background: #f1f5f9;
}

html.dark .theme-menu div:hover {
  background: #1e293b;
}

/* LOGIN */
.login-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

/* MENU */
.menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0f172a;
}

/* DARK MODE FIX */
html.dark .menu-btn {
  color: #ffffff;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border-bottom: 1px solid #e5e7eb;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-center {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}