:root {

  --bg-alt: #0c1524;
  --panel: rgba(18, 28, 47, 0.9);
  --panel-strong: #121c2f;
  --panel2: #0f1726;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
 --text: #ffffff;
  --muted: #9fb1cd;
  
  --green: #87b17e;
  --red: #d86d6d;
  --blue: #7aa1cf;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
  --radius-xs: 12px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --container: 1240px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 170, 52, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(122, 161, 207, 0.12), transparent 32%),
    linear-gradient(180deg, #07101b, #0b1628);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.2;
  margin-bottom: 8px;
}

p {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: linear-gradient(180deg, rgba(18, 28, 47, 0.96), rgba(12, 20, 35, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.login {
  max-width: 520px;
  margin: 36px auto;
}

.logo {
  width: clamp(78px, 10vw, 110px);
  height: auto;
  margin: 0 auto 14px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.field label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: rgba(159, 177, 205, 0.8);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 170, 52, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(216, 170, 52, 0.12);
}

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

.btn,
.btn-secondary,
.btn-danger,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.btn:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-whatsapp:hover {
  transform: translateY(-1px);
}

.btn:active,
.btn-secondary:active,
.btn-danger:active,
.btn-whatsapp:active {
  transform: translateY(0);
}

.btn:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible,
.btn-whatsapp:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(122, 161, 207, 0.18);
}

.btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(216, 170, 52, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

.btn-danger {
  background: rgba(216, 109, 109, 0.12);
  border-color: rgba(216, 109, 109, 0.22);
  color: #ffd7d7;
}

.btn-danger:hover {
  background: rgba(216, 109, 109, 0.16);
}

.btn-whatsapp {
  background: #25d366;
  color: #08111f;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.18);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.ok {
  background: rgba(135, 177, 126, 0.12);
  border-color: rgba(135, 177, 126, 0.22);
}

.err {
  background: rgba(216, 109, 109, 0.12);
  border-color: rgba(216, 109, 109, 0.22);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}



.side {
  min-width: 0;
}

.side .card {
  position: sticky;
  top: 20px;
}

.side .nav {
  display: grid;
  gap: 10px;
}

.side .nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text);
}

.side .nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.side .nav a.active {
  background: linear-gradient(90deg, rgba(216, 170, 52, 0.18), rgba(122, 161, 207, 0.1));
  border-color: rgba(216, 170, 52, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  max-width: 100%;
}

.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #08111f;
  font-weight: 900;
}

.grid2,
.grid3 {
  display: grid;
  gap: 16px;
}

.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.table {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(216, 170, 52, 0.12);
  border: 1px solid rgba(216, 170, 52, 0.24);
  color: #f6d571;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions > * {
  min-width: 0;
}

.roster-card {
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.roster-card h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.roster-tile {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.roster-tile + .roster-tile {
  margin-top: 18px;
}

.roster-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.roster-tile h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.roster-tile.today {
  background:
    linear-gradient(180deg, rgba(216,170,52,0.12), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-color: rgba(216,170,52,0.22);
}

.roster-tile.all {
  background:
    linear-gradient(180deg, rgba(122,161,207,0.08), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
}

.roster-tile.mine {
  background:
    linear-gradient(180deg, rgba(135,177,126,0.08), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-color: rgba(135,177,126,0.2);
}

.roster-list {
  display: grid;
  gap: 12px;
}

.roster-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.roster-item:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.roster-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.roster-meta,
.roster-time {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.roster-meta span,
.roster-time {
  align-items: center;
}

.roster-task {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.45;
  opacity: 0.95;
}

/* Lege status */
.roster-list:empty::before {
  content: "Geen roosters gevonden.";
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  color: var(--muted);
}
.cs-login-footer {
    margin-top: 25px;
    padding-top: 15px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    opacity: 0.8;
}

.cs-login-footer img {
    height: 26px;
    width: auto;
    display: block;
    margin: 0 auto 6px;
}

.cs-login-footer small {
    font-size: 11px;
    color: #94a3b8;
}

.home-footer {
    margin-top: 25px;
    padding-top: 15px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    opacity: 0.8;
}

.home-footer img {
    height: 26px;
    width: auto;
    display: block;
    margin: 0 auto 6px;
}

.home-footer small {
    font-size: 11px;
    color: #94a3b8;
}
/* Tablet */
@media (max-width: 768px) {
  .roster-card {
    padding: 16px;
  }

  .roster-tile {
    padding: 16px;
    border-radius: 18px;
  }

  .roster-item {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .roster-card h2 {
    font-size: 1.25rem;
  }

  .roster-tile h3 {
    font-size: 1rem;
  }
}

/* Mobiel */
@media (max-width: 520px) {
  .roster-card {
    padding: 14px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .roster-tile {
    padding: 14px;
    border-radius: 16px;
  }

  .roster-tile + .roster-tile {
    margin-top: 14px;
  }

  .roster-item {
    padding: 12px;
    border-radius: 14px;
  }

  .roster-name {
    font-size: 0.96rem;
  }

  .roster-meta,
  .roster-time,
  .roster-task {
    font-size: 0.9rem;
  }
}
/* Large tablets */
@media (max-width: 1100px) {
  .wrap {
    padding: 20px;
  }

  

  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets */
@media (max-width: 900px) {
  .wrap {
    padding: 16px;
  }

 

  .side .card {
    position: static;
  }

  .side .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    line-height: 1.45;
  }

  .wrap {
    padding: 12px;
  }

  .card,
  .tile {
    padding: 16px;
    border-radius: 18px;
  }

  .login {
    margin: 20px auto;
  }

  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .top > div:first-child {
    margin-bottom: 0;
  }

  .top .actions,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top .actions a,
  .top .actions button,
  .actions a,
  .actions button,
  .actions .btn,
  .actions .btn-secondary,
  .actions .btn-danger,
  .actions .btn-whatsapp {
    width: 100%;
  }

  .side .nav {
    grid-template-columns: 1fr;
  }

  .side .nav a {
    min-height: 50px;
    padding: 14px 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .chip {
    width: 100%;
    justify-content: flex-start;
  }

  input,
  select,
  textarea,
  .btn,
  .btn-secondary,
  .btn-danger,
  .btn-whatsapp {
    width: 100%;
  }

  .table table {
    min-width: 680px;
  }

  th,
  td {
    padding: 11px 12px;
  }

  .badge {
    margin-bottom: 6px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .wrap {
    padding: 10px;
  }

  .card,
  .tile {
    padding: 14px;
    border-radius: 16px;
  }

  .logo {
    margin-bottom: 12px;
  }

  .title {
    font-size: 1.15rem;
  }

  .avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .btn,
  .btn-secondary,
  .btn-danger,
  .btn-whatsapp {
    min-height: 44px;
    padding: 11px 14px;
  }
}