:root {
  --blue: #1366d6;
  --blue-dark: #0b3472;
  --bg: #f4f7fb;
  --text: #172033;
  --muted: #64748b;
  --line: #d9e2ef;
  --green: #138a4b;
  --amber: #b36b00;
  --red: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--blue); text-decoration: none; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 265px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 38px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}
nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: #26364f;
  margin: 3px 0;
}
nav a:hover { background: #eef5ff; color: var(--blue); }
.main {
  margin-left: 265px;
  padding: 28px;
}
.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}
h1 { margin: 0 0 6px; font-size: 28px; color: var(--blue-dark); }
.muted { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.card, .auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.auth-card { width: min(430px, 100%); }
.stat { font-size: 30px; font-weight: 700; color: var(--blue-dark); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fbff; color: #32435f; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
label { display: block; font-weight: 700; margin: 0 0 7px; color: #2c3b54; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd6e6;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 88px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row { margin-bottom: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  font-weight: 600;
}
.check input { width: auto; }
.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn-secondary { background: #eaf1fb; color: var(--blue-dark); }
.btn-green { background: var(--green); }
.btn-danger { background: #fee4e2; color: var(--red); }
.btn-small { padding: 7px 10px; font-size: 13px; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.badge-pending { background: #fff2d9; color: var(--amber); }
.badge-opened { background: #eaf1fb; color: var(--blue-dark); }
.badge-done, .badge-complete { background: #e6f7ee; color: var(--green); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action-done { color: var(--green); font-weight: 700; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; background: #eaf1fb; color: var(--blue-dark); }
.alert-error { background: #ffebe9; color: var(--red); }
.alert-success { background: #e6f7ee; color: var(--green); }
.section-title { margin: 24px 0 12px; font-size: 20px; color: var(--blue-dark); }

@media (max-width: 900px) {
  .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .main { margin-left: 0; padding: 18px; }
  nav { display: flex; overflow-x: auto; gap: 6px; }
  nav a { white-space: nowrap; }
  .grid, .form-grid { grid-template-columns: 1fr; }
  .page-head { display: block; }
}
.task-preview img{width:150px;}