/* ════════════════════════════════════════════════════════════════
   Navigation Page Styles
   ════════════════════════════════════════════════════════════════ */

#profile-page,
#api-keys-page,
#new-project-wizard,
#project-browser,
#analytics-page,
#general-settings-page {
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pg-body {
  padding: 16px;
  overflow-y: auto;
  height: calc(100% - 49px);
}

.pg-section {
  margin-bottom: 20px;
}

.pg-heading {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.pg-note {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.pg-loading {
  text-align: center;
  padding: 40px;
  color: #64748b;
  font-size: 13px;
}

.pg-field {
  margin-bottom: 10px;
}

.pg-mono {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
}

/* Profile */
.pg-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2dd4bf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.pg-info {
  margin-bottom: 10px;
}

.pg-info-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pg-info-value {
  font-size: 13px;
  color: #e2e8f0;
  margin-top: 2px;
}

/* API Keys */
.ak-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(51,65,85,0.3);
}

.ak-name {
  flex: 1;
  font-size: 13px;
  color: #e2e8f0;
}

.ak-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}

.ak-on {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
}

.ak-off {
  background: rgba(100,116,139,0.2);
  color: #64748b;
}

/* New Project Wizard */
.npw-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.npw-mode {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(51,65,85,0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms ease;
  background: rgba(30,41,59,0.3);
}

.npw-mode:hover {
  border-color: rgba(59,130,246,0.3);
}

.npw-mode-selected {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.08);
}

.npw-mode input[type="radio"] {
  display: none;
}

.npw-mode-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(30,41,59,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.npw-mode-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.npw-mode-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.4;
}

/* Project Browser */
.pb-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-item {
  padding: 10px 12px;
  background: rgba(30,41,59,0.4);
  border: 1px solid rgba(51,65,85,0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms ease;
}

.pb-item:hover {
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.06);
}

.pb-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.pb-item-id {
  font-size: 12px;
  font-family: 'Fira Code', monospace;
  color: #60a5fa;
}

.pb-item-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.pb-item-meta {
  font-size: 10px;
  color: #475569;
  margin-top: 4px;
}

/* Analytics */
.an-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.an-card {
  padding: 12px;
  background: rgba(30,41,59,0.5);
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(51,65,85,0.4);
}

.an-card-val {
  font-size: 22px;
  font-weight: 700;
}

.an-card-label {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.an-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.an-table th {
  text-align: left;
  padding: 6px 10px;
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(51,65,85,0.5);
}

.an-table td {
  padding: 6px 10px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(51,65,85,0.2);
}

.an-recent {
  max-height: 240px;
  overflow-y: auto;
}

.an-recent-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(51,65,85,0.2);
}
