* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

.navbar {
  position: sticky;
  top: 0;
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem;
  background: #111827;
  border-bottom: 1px solid #1f2937;
}

.navbar a {
  text-decoration: none;
  color: #cbd5e1;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar a:hover {
  background: #1f2937;
  color: #f8fafc;
}

.navbar a.active {
  background: #2563eb;
  color: #ffffff;
}

.page {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  text-align: center;
  padding: 1rem;
}

.page-content {
  max-width: 760px;
}

#pageTitle {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.02em;
}

.quotes-list {
  margin: 1.2rem 0 0;
  padding-left: 1.25rem;
  text-align: left;
  line-height: 1.7;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.hidden {
  display: none;
}

.tracker-panel {
  margin-top: 1.4rem;
  text-align: left;
  display: grid;
  gap: 0.6rem;
  width: min(760px, 90vw);
}

.tracker-label {
  font-weight: 700;
  color: #e2e8f0;
}

.tracker-panel input,
.tracker-panel textarea {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #111827;
  color: #f8fafc;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.tracker-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.tracker-actions button {
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.tracker-actions button:hover {
  background: #1d4ed8;
}

.tracker-status {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.tracker-list {
  margin-top: 0.2rem;
  display: grid;
  gap: 0.7rem;
}

.tracker-record {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 0.7rem;
}

.tracker-record h3 {
  margin: 0 0 0.4rem;
}

.tracker-record p {
  margin: 0.25rem 0;
  color: #cbd5e1;
}

.tracker-empty {
  margin: 0;
  color: #94a3b8;
}

.pomodoro-panel {
  margin-top: 1.4rem;
  width: min(820px, 92vw);
  text-align: left;
  display: grid;
  gap: 1rem;
}

.pomodoro-timer-wrap,
.pomodoro-targets {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 0.9rem;
}

.pomodoro-mode {
  margin: 0 0 0.5rem;
  color: #cbd5e1;
}

.pomodoro-timer {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.pomodoro-actions {
  display: flex;
  gap: 0.7rem;
}

.pomodoro-actions button {
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.pomodoro-actions button:hover {
  background: #1d4ed8;
}

.pomodoro-targets h2 {
  margin: 0 0 0.75rem;
}

.pomodoro-targets input {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.6rem 0.7rem;
  font: inherit;
  margin-bottom: 0.6rem;
}

.pomodoro-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pomodoro-check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-size: 0.9rem;
}

.investing-panel {
  margin-top: 1.4rem;
  width: min(1100px, 96vw);
  text-align: left;
  display: grid;
  gap: 0.9rem;
}

.investing-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 0.6rem;
  align-items: end;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 0.8rem;
}

.investing-form input {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.investing-table-wrap {
  overflow-x: auto;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
}

.investing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.investing-table th,
.investing-table td {
  border-bottom: 1px solid #1f2937;
  padding: 0.65rem;
  text-align: left;
  white-space: nowrap;
}

.investing-table th {
  color: #cbd5e1;
  font-weight: 700;
}

.investing-empty {
  color: #94a3b8;
}

.investing-summary-row td {
  font-weight: 800;
  color: #f8fafc;
}

.target-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}
