:root {
  --background: #f7f8fa;
  --primary: #0a84ff; /* iOS blue */
  --text-primary: #1c1c1e;
  --text-secondary: #636366;
  --table-header-bg: #ffffffcc;
  --border: #e5e6eb;
  --radius: 12px;
  font-size: 16px;
}

/* BASIC RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* NAVIGATION BAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 6px rgba(10, 132, 255, 0.35);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(10, 132, 255, 0.4);
}

/* LAYOUT WRAPPER */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px;
}

/* SEARCH */
.search-section {
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

/* TABLE */
.table-section {
  overflow-x: auto; /* ensure mobile friendliness */
}

.reminder-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.reminder-table thead {
  background: var(--table-header-bg);
}

.reminder-table th,
.reminder-table td {
  padding: 14px 18px;
}

.reminder-table th {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.reminder-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}

/* Column sizing */
.controls-col {
  width: 48px; /* Tight left column */
  text-align: center;
}

.date-col {
  width: 160px;
  white-space: nowrap;
  font-weight: 500;
}

.text-col {
  width: auto;
  color: var(--text-secondary);
}

/* Row hover */
.reminder-table tbody tr:hover {
  background: #f2f4f7;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* DARK-MODE SUPPORT */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1c1e;
    --text-primary: #f2f2f7;
    --text-secondary: #8e8e93;
    --table-header-bg: #2c2c2e;
    --border: #3a3a3c;
  }

  .navbar,
  .search-input,
  .reminder-table,
  .footer {
    background: #2c2c2e;
  }

  .reminder-table tbody tr:hover {
    background: #3a3a3c;
  }

  .login-btn {
    box-shadow: none; /* subtler in dark mode */
  }
}
