/* =========================================================================
   Fıstıklık — Public night-shift home page styles
   ========================================================================= */

.home-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 60px;
  position: relative;
  z-index: 1;
}

/* Top bar */
.home-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.home-brand { display: flex; align-items: center; gap: 14px; }
.home-brand img { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 6px 18px rgba(6,193,103,0.4); }
.ht-name { font-weight: 800; font-size: 1.25rem; }
.ht-sub { font-size: 0.78rem; color: var(--green-hover); }
.home-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: capitalize;
  order: 2;
}
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; order: 3; }
.admin-login-btn { border: 1px solid rgba(6,193,103,0.4); color: var(--green-hover); }
.admin-login-btn:hover { background: rgba(6,193,103,0.12); }

/* Shift change banner */
.change-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-top: 18px;
  border: 1px solid rgba(6,193,103,0.25);
  background:
    radial-gradient(500px circle at 90% 0%, rgba(6,193,103,0.14), transparent 60%),
    var(--glass);
  flex-wrap: wrap;
}
.cb-item { display: flex; align-items: center; gap: 14px; }
.cb-ic { font-size: 1.7rem; }
.cb-lbl { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.cb-val { font-size: 1.15rem; font-weight: 700; }
.cb-sep { width: 1px; height: 40px; background: var(--border); }
.cb-count { margin-left: auto; }

.countdown { display: flex; gap: 8px; }
.cd-seg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 7px 8px;
  background: rgba(6,193,103,0.12);
  border: 1px solid rgba(6,193,103,0.3);
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-hover);
  line-height: 1;
}
.cd-seg small { font-size: 0.62rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* Toolbar */
.home-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 20px;
  flex-wrap: wrap;
}
.home-toolbar .search-box { flex: 1; min-width: 220px; }
.home-toolbar .search-box input { width: 100%; }
.field-inline label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 7px; }

/* Night day grid */
.night-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.night-day {
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: var(--trans);
}
.night-day:hover { transform: translateY(-3px); border-color: rgba(6,193,103,0.35); }
.night-day.is-today {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(6,193,103,0.4) inset, 0 10px 26px rgba(6,193,103,0.12);
}
.nd-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.nd-day { font-weight: 700; font-size: 1rem; }
.nd-date { font-size: 0.78rem; color: var(--muted); }
.nd-time {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--green-hover);
  background: rgba(6,193,103,0.1); border: 1px solid rgba(6,193,103,0.25);
  padding: 5px 11px; border-radius: 30px; margin-bottom: 12px;
}
.nd-emps { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.nd-emps li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem; padding: 6px 8px; border-radius: 9px;
  transition: var(--trans);
}
.nd-emps li .dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.65rem; font-weight: 700;
  color: #04240f; background: var(--green); flex-shrink: 0;
}
.nd-emps li.hl { background: rgba(6,193,103,0.16); color: var(--green-hover); font-weight: 600; }
.nd-emps li.none { color: var(--muted); font-style: italic; }
.public-shift + .public-shift { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }

/* My-requests modal rows */
.mr-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 13px; border-radius: 11px; margin-bottom: 10px;
  background: var(--glass-strong); border: 1px solid var(--border);
}

.home-foot { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 34px; }

@media (max-width: 760px) {
  .home-date { order: 4; width: 100%; margin-left: 0; }
  .home-actions { order: 3; width: 100%; }
  .home-actions .btn { flex: 1; justify-content: center; }
  .cb-count { margin-left: 0; width: 100%; }
  .cb-sep { display: none; }
}
