body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #fdfdfd;
  color: #2d3748;
  margin: 0;
  padding: 0;
}

/* Navigation Architecture */
.app-nav {
  background: #2b6cb0;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}
.nav-logo {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}
.nav-links .nav-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  margin-left: 20px;
  cursor: pointer;
  opacity: 0.9;
}
.nav-links .nav-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

.container {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* Dashboard Grid Arrays */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.menu-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* UI Button Toolkit */
.btn-primary, .btn-secondary, .btn-back, .menu-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: #2b6cb0;
  color: white;
}
.btn-primary:hover {
  background: #2b5592;
}
.btn-secondary {
  background: #edf2f7;
  color: #4a5568;
}
.btn-secondary:hover {
  background: #e2e8f0;
}
.btn-back {
  background: transparent;
  color: #4a5568;
  padding: 0;
  margin-bottom: 20px;
  font-size: 16px;
  display: inline-block;
}
.btn-back:hover {
  text-decoration: underline;
}

.paradigm-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.paradigm-btn {
  padding: 30px 50px;
  font-size: 20px;
  font-weight: bold;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.paradigm-btn:hover {
  border-color: #2b6cb0;
  color: #2b6cb0;
  transform: translateY(-2px);
}

.profile-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 30px;
  max-width: 650px;
  margin: 40px auto;
  text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.app-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    font-size: 12px;
    font-weight: 500;
    color: #a0aec0;
    letter-spacing: 0.5px;
    font-family: inherit;
    border-top: 1px solid #edf2f7;
    width: 100%;
    background: #fafafa;
}

/* Constrained Sandbox Viewport for active Experiments */
#jspsych-target {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}
#jspsych-target h2,
#jspsych-target div {
  line-height: 1.5 !important;
  margin-top: 20px;
}

.db-comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px 8px;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
}

.db-comparison-label {
    font-weight: 600;
    color: #4a5568;
    text-align: left;
}

.db-val-standalone {
    font-family: monospace;
    font-weight: bold;
    color: #2b6cb0;
    text-align: center;
}

.db-val-battery {
    font-family: monospace;
    font-weight: bold;
    color: #dd6b20;
    text-align: center;
}

.db-segmented-bar {
    display: flex;
    background: #edf2f7;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 440px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.db-toggle-btn {
    flex: 1;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: #4a5568;
    transition: all 0.15s ease;
}

.db-toggle-btn.active-s {
    background: #fff;
    color: #2b6cb0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.db-toggle-btn.active-b {
    background: #fff;
    color: #dd6b20;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-links .logout-btn-text {
  color: #fc8181; /* Lighter red hue */
  font-weight: bold;
}
