
:root {
  --shell-bg: #f8fafc;
  --shell-header-bg: #ffffff;
  --shell-header-border: #e2e8f0;
  --shell-text: #334155;
  --shell-header-text: #1e293b;
  --shell-surface: #ffffff;
  --shell-border: #e2e8f0;
  --shell-brand: #2563eb;
}

:root[data-theme="dark"] {
  --shell-bg: #0f172a;
  --shell-header-bg: #0f172a;
  --shell-header-border: #1e293b;
  --shell-text: #cbd5e1;
  --shell-header-text: #f8fafc;
  --shell-surface: #1e293b;
  --shell-border: #334155;
  --shell-brand: #3b82f6;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--shell-bg);
  color: var(--shell-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Shell Header Styles */
.shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--shell-header-bg);
  border-bottom: 1px solid var(--shell-header-border);
  padding: 0.75rem 1.5rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.shell-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.shell-brand img {
  height: 36px;
  display: block;
}

.menu-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Dropdown Navigation Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background-color: var(--shell-surface);
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 220px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 1000;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--shell-header-text);
  background: none;
  border: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: var(--shell-bg);
}

.dropdown-divider {
  border: 0;
  border-top: 1px solid var(--shell-border);
  margin: 0.5rem 0;
}

/* Interactive Burger Toggle */
.burger-btn {
  background: none;
  border: 1px solid var(--shell-border);
  color: var(--shell-header-text);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.burger-btn:hover {
  background-color: var(--shell-bg);
}

/* Main Content */
main {
  flex: 1;
}

/* Shell Footer */
.shell-footer {
  background-color: var(--shell-header-bg);
  border-top: 1px solid var(--shell-header-border);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--shell-text);
}

/* Authentication & Control Modal Overlays */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-modal-overlay.active {
  display: flex;
}

.auth-modal-card {
  background-color: var(--shell-surface);
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--shell-border);
}

.auth-modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--shell-header-text);
}

.auth-close-btn {
  background: none;
  border: none;
  color: var(--shell-text);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.auth-close-btn:hover {
  color: var(--shell-header-text);
}
