/*  Remindr – styles.css  */
/*  ------------------------------------------------------------ */

:root {
    --bg:            #f4f5f7;
    --surface:       #ffffff;
    --surface-dark:  #1f2937;
    --primary:       #6366f1;
    --primary-dark:  #818cf8;
    --text:          #111827;
    --text-muted:    #6b7280;
    --radius:        12px;
    --shadow:        0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  @media (prefers-color-scheme: dark) {
    :root {
      --bg:           #111827;
      --surface:      #1f2937;
      --text:         #f9fafb;
      --text-muted:   #9ca3af;
      --shadow:       0 4px 12px rgba(0, 0, 0, 0.4);
    }
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  
  /* ───────────────────────── Header ─────────────────────────── */
  
  header {
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
  }
  
  .logo .accent {
    color: var(--primary);
  }
  
  .login-btn {
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 120ms ease, box-shadow 120ms ease;
  }
  
  .login-btn:hover,
  .login-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  }
  
  /* ───────────────────────── Main ───────────────────────────── */
  
  main {
    width: 90%;
    max-width: 960px;
    margin: 0 auto 4rem;
  }
  
  /* Search bar */
  
  .search-wrapper {
    position: relative;
    margin-top: 1rem;
  }
  
  .search-bar {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.25rem;
    border: none;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 120ms ease;
  }
  
  .search-bar::placeholder {
    color: var(--text-muted);
  }
  
  .search-bar:focus {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }
  
  /* pseudo search icon */
  .search-wrapper::before {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.55;
  }
  
  /* Table layout */
  
  .table-wrapper {
    margin-top: 2rem;
    overflow-x: auto;
  }
  
  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem; /* row gap */
  }
  
  col.controls-col   { width: 56px; }
  col.date-col       { width: 180px; }
  
  tbody tr {
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    transition: transform 120ms ease, box-shadow 120ms ease;
  }
  
  tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }
  
  td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    font-size: 0.95rem;
  }
  
  .controls-cell,
  .date-cell {
    text-align: center;
  }
  
  .date-cell {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
  }
  
  .text-cell {
    font-weight: 500;
    letter-spacing: -0.15px;
  }
  
  /* Round first/last cells per row */
  tbody tr td:first-child  { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
  tbody tr td:last-child   { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
  