/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #111;
  color: #d1d5db;
  font-family: "Geist Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

p {
  font-size: 1.1rem;
  color: #b0b6bd;
  margin-bottom: 0;
}

a {
  color: #888a93;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s;
}

a:hover {
  color: #e63946;
}

/* Layout */
header {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.2rem 2.2rem;
  z-index: 10;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

article {
  width: 100%;
}

section {
  width: 100%;
}

footer {
  width: 100%;
  padding: 2.5rem 0 2rem 0;
  text-align: center;
}

/* Forms */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #2b2e37;
  border-radius: 0.375rem;
  font-size: 1rem;
  background: #13141a;
  color: #d1d5db;
  transition: border-color 0.2s, background 0.2s;
  font-family: "Geist Mono", monospace;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus,
textarea:focus {
  border-color: #e63946;
  outline: none;
  background: #17181f;
}

input[type="submit"],
button[type="submit"] {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.01em;
}

input[type="radio"] {
  width: auto;
  accent-color: #e63946;
  cursor: pointer;
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-family: "Geist Mono", monospace;
}

/* Custom Classes */
.hero-fade-in {
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-alert {
  background: #2a1a1a;
  color: #e63946;
  border: 1px solid #3d2020;
  border-radius: 0.375rem;
  padding: 0.85rem 1rem;
  width: 100%;
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.auth-section {
  background: #1a1b26;
  padding: 3rem 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-section {
  background: #1a1b26;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.content-section:last-child {
  margin-bottom: 0;
}

.dashboard-cards {
  display: grid;
  gap: 1rem;
}

.dashboard-card {
  display: block;
  background: #1a1b26;
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}

.dashboard-card:hover {
  background: #23242f;
}

.dashboard-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dashboard-card.disabled:hover {
  background: #1a1b26;
}

.weight-history {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.weight-entry {
  background: #13141a;
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weight-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.weight-date {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0;
}

.weight-notes {
  font-size: 0.95rem;
  color: #b0b6bd;
  margin-top: 0.5rem;
}

.weight-entry-actions {
  display: flex;
  gap: 0.75rem;
}

.empty-state {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}

.settings-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #13141a;
  border-radius: 0.375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.settings-option:hover {
  background: #17181f;
}

.settings-option input[type="radio"] {
  display: none;
}

.settings-option input[type="radio"]:checked + div {
  /* This targets the div after the checked radio */
}

.settings-option:has(input[type="radio"]:checked) {
  border-color: #e63946;
  background: #1a1b26;
}

.settings-option-label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.settings-option-desc {
  display: block;
  color: #6b7280;
  font-size: 0.9rem;
}

.settings-option-label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.settings-option-desc {
  display: block;
  color: #6b7280;
  font-size: 0.9rem;
}

.profile-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #13141a;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

.profile-label {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
}

.profile-value {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.flash-notice {
  background: #1a2a1a;
  color: #4ade80;
  border: 1px solid #2d4a2d;
  border-radius: 0.375rem;
  padding: 0.85rem 1rem;
  width: 100%;
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 2rem 1.5rem;
    max-width: 95vw;
  }
  
  header {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
}
