body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #1d2a36;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #1d2a36;
  color: white;
  padding: 24px 16px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar a {
  color: white;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.container {
  flex: 1;
  max-width: 980px;
  margin: 40px auto;
  padding: 32px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.auth-container {
  max-width: 520px;
}

.profile-container {
  max-width: 1100px;
}

h1 {
  margin-top: 0;
  font-size: 2rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

input,
textarea {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  font-family: monospace;
}

textarea {
  min-height: 560px;
  resize: vertical;
  background: #f9fafb;
}

.dashboard-container,
.history-container {
  max-width: 1100px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  background: #f7f9fc;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  padding: 20px;
}

.card-label {
  color: #53657a;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-value {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 700;
}

.panel {
  margin-top: 24px;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.panel pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.9rem;
  overflow-x: auto;
}

.session-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.chart-panel {
  margin: 16px 0 24px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
}

.history-chart {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.history-table th,
.history-table td {
  border: 1px solid #dfe7f1;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.history-table th {
  background: #f3f6fb;
}

code {
  font-size: 0.82rem;
  background: #edf2f7;
  padding: 4px 6px;
  border-radius: 4px;
}

button {
  background: #1f6feb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
}

.message {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef7ee;
  color: #1d5f2f;
}

.error {
  background: #fdecec;
  color: #892d2d;
}

.muted {
  margin-top: 16px;
  color: #4b5563;
}

.muted a {
  color: #1f6feb;
  text-decoration: none;
}

.log-workout-container {
  max-width: 1100px;
}

.exercise-row {
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
  margin-bottom: 16px;
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.exercise-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.complete-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.exercise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #4b5563;
  font-size: 0.95rem;
}

.next-workout-container {
  max-width: 1100px;
}

.panel pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: 0;
}

.profile-path {
  color: #4b5563;
  font-size: 0.95rem;
}
