:root {
  --bg: #fff;
  --fg: #111;
  --muted: #666;
  --brand: #0066cc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  color: var(--fg);
  background: var(--bg);
}
header {
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}
.hamburger-btn {
  font-size: 20px;
  background: transparent;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.menu-dropdown a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--fg);
}
.auth-section {
  font-size: 14px;
  color: var(--muted);
}
.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 12px;
}
h1,
h2 {
  margin: 12px 0;
}
.form-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  background: #fafafa;
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 8px;
}
.form-card input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form-card button {
  padding: 10px;
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* Button styles */
.button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f6f8fa;
  color: #333;
}

.button:hover {
  background: #eef1f4;
  text-decoration: none;
}

.button.primary {
  background: #2196F3;
  border-color: #2196F3;
  color: white;
}

.button.primary:hover {
  background: #1976D2;
  border-color: #1976D2;
  color: white;
}

/* Login options layout */
.login-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .login-options {
    grid-template-columns: 1fr;
  }
}

.login-option {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.login-option h3 {
  margin-top: 0;
  color: #333;
}

.login-option p {
  margin-bottom: 20px;
  color: #666;
}

.advanced-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.advanced-section h3 {
  color: #666;
  font-size: 16px;
}
footer {
  margin: 48px 0 24px;
  text-align: center;
  color: #999;
}
.nav a {
  margin-right: 12px;
  color: var(--brand);
  text-decoration: none;
}
.card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}


/* Hamburger dropdown popup */
.hamburger-menu {
  position: relative;
  display: inline-block;
}
.menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  display: none;
  z-index: 1000;
}
.hamburger-menu.open .menu-dropdown {
  display: block;
}
.menu-dropdown a {
  padding: 8px 12px;
}
.menu-dropdown a:hover {
  background: #f6f8fa;
}


/* Modal components */
#modal-root {
  position: fixed;
  inset: 0;
  pointer-events: none; /* only overlays inside receive events */
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: auto;
}
.modal {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
  width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}
.modal-footer {
  border-top: 1px solid #eee;
  border-bottom: none;
  justify-content: flex-end;
}
.modal-body {
  padding: 14px;
  overflow: auto;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.modal-footer button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #f6f8fa;
  border-radius: 6px;
  cursor: pointer;
}
.modal-footer button:hover {
  background: #eef1f4;
}

/* Dropdown divider for injected tools */
.menu-divider {
  height: 1px;
  background: #eee;
  margin: 6px 0;
}
