* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: #f6f8fa; color: #222; }

.header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #1f2937; color: #fff; }
.header .logout { color: #fff; text-decoration: none; background: #ef4444; padding: 6px 10px; border-radius: 4px; }
.container { display: flex; min-height: calc(100vh - 52px); }
.sidebar { width: 280px; background: #111827; color: #eee; padding: 16px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin-bottom: 8px; }
.sidebar a { display: block; color: #9ca3af; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.sidebar a.active, .sidebar a:hover { color: #fff; background: #374151; }
.content { flex: 1; padding: 20px; }

.filter-form .filters { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.filter-actions button { background: #2563eb; color: #fff; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.alert { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; padding: 8px 12px; border-radius: 4px; margin-top: 10px; }

.table-wrapper { overflow: auto; background: #fff; border-radius: 8px; border: 1px solid #e5e7eb; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.data-table th { background: #f3f4f6; font-weight: 600; }
.data-table .num { text-align: right; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; }
.card-title { color: #6b7280; font-size: 14px; }
.card-value { font-size: 20px; font-weight: 700; }

/* Login */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-wrapper { background: #fff; padding: 24px; border-radius: 8px; border: 1px solid #e5e7eb; width: 360px; max-width: 92vw; }
.login-form { display: grid; gap: 8px; }
.login-form input { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; }
.login-form button { background: #2563eb; color: #fff; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; }

/* Table clarity improvements */
.data-table thead th { position: sticky; top: 0; z-index: 2; background: #eef2ff; box-shadow: inset 0 -1px #e5e7eb; }
.data-table tbody tr:nth-child(even) { background: #f9fafb; }
.data-table tbody tr:hover { background: #f3f4f6; }
.data-table th, .data-table td { border-right: 1px solid #e5e7eb; }
.data-table th:last-child, .data-table td:last-child { border-right: none; }

/* Column-specific backgrounds to strengthen visual grouping */
.data-table th.col-day, .data-table td.col-day { background: #ffffff; }
.data-table th.col-updated-by, .data-table td.col-updated-by { background: #fafafa; }
.data-table th.col-in-progress, .data-table td.col-in-progress { background: #f5f3ff; }
.data-table th.col-revise, .data-table td.col-revise { background: #fee2e2; }
.data-table th.col-review, .data-table td.col-review { background: #e0f2fe; }
.data-table th.col-incompleted, .data-table td.col-incompleted { background: #fef2f2; }
.data-table th.col-completed, .data-table td.col-completed { background: #dcfce7; }
.data-table th.col-total, .data-table td.col-total { background: #f3f4f6; font-weight: 600; }
.footer {
  margin-top: 12px;
  background: #111827; /* slate-900 */
  color: #e5e7eb; /* gray-200 */
  text-align: center;
  padding: 10px 16px;
  border-top: 1px solid #1f2937; /* slate-800 */
  font-size: 13px;
}