/* header, tab navigation, main content layout */

/* header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.03);
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

.logo svg {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

/* header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .theme-toggle:hover {
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.04),
    0 0 20px rgba(16, 185, 129, 0.15);
}

/* settings button */
.settings-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .settings-btn:hover {
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.04),
    0 0 20px rgba(16, 185, 129, 0.15);
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

/* tab navigation */
.tab-nav {
  display: flex;
  gap: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 24px;
}

[data-theme="light"] .tab-nav {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .tab-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
  color: var(--accent);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 10px var(--accent-glow);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
}

/* main content area */
main {
  flex: 1;
  padding-top: 108px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

[data-theme="light"] main {
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

main::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

main::-webkit-scrollbar-track {
  background: transparent;
}

main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

main::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid transparent;
  background-clip: content-box;
}

[data-theme="light"] main::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  background-clip: content-box;
}

[data-theme="light"] main::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* tab content */
.tab-content {
  display: none;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* empty tab placeholder */
.tab-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  gap: 16px;
}

.tab-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.5;
}

.tab-placeholder h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.tab-placeholder p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
}
