/* FILE: /css/scheduler.css */

:root{
  --cnS-bg: rgba(255,255,255,.06);
  --cnS-brd: rgba(255,255,255,.14);
  --cnS-tx: rgba(255,255,255,.92);
  --cnS-dim: rgba(255,255,255,.70);
  --cnS-muted: rgba(255,255,255,.55);
  --cnS-good: rgba(93,255,184,.95);
  --cnS-warn: rgba(255,209,102,.95);
  --cnS-bad: rgba(255,107,107,.95);
  --cnS-accent: rgba(122,162,255,.95);
  --cnS-radius: 18px;
}

.cn-sched{
  border: 1px solid var(--cnS-brd);
  border-radius: var(--cnS-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.cn-schedTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
}

.cn-schedTitle{
  display:flex;
  flex-direction:column;
  line-height:1.15;
  min-width: 0;
}

.cn-schedTitle strong{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 14px;
}

.cn-schedTitle span{
  font-size: 12px;
  color: rgba(255,255,255,.75);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cn-schedNav{
  display:flex;
  gap:10px;
  align-items:center;
}

.cn-schedBtn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--cnS-tx);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
  .cn-schedBtn:active{
  transform: scale(.99);
}

.cn-schedBtn.primary{
  background: rgba(122,162,255,.20);
  border-color: rgba(122,162,255,.38);
}

.cn-schedPills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.cn-schedPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  color: var(--cnS-dim);
  white-space:nowrap;
}

.cn-schedPill b{
  color: var(--cnS-tx);
}

.cn-schedPill.ok{
  border-color: rgba(93,255,184,.26);
  background: rgba(93,255,184,.10);
}

.cn-schedPill.bad{
  border-color: rgba(255,107,107,.26);
  background: rgba(255,107,107,.10);
}

.cn-schedBody{
  padding:12px;
}

.cn-schedGrid{
  display:grid;
  grid-template-columns: 58px 1fr;
  gap:10px;
}

.cn-schedTimes{
  display:grid;
  grid-auto-rows: 28px;
}

.cn-schedTime{
  height: 28px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding-right:6px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.cn-schedLaneWrap{
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
}

.cn-schedLane{
  position: relative;
  height: calc(var(--cnS-rows) * 28px);
}

.cn-schedRowLine{
  position:absolute;
  left:0; right:0;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.cn-schedSlot{
  position:absolute;
  left:10px;
  right:10px;
  height: 24px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
}

.cn-schedSlot[data-state="free"]{
  border-color: rgba(93,255,184,.22);
  background: rgba(93,255,184,.08);
}

.cn-schedSlot[data-state="busy"]{
  border-color: rgba(255,107,107,.26);
  background: rgba(255,107,107,.10);
  cursor:not-allowed;
  opacity:.95;
}

.cn-schedSlot[data-state="travel"]{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  cursor:not-allowed;
  opacity:.82;
}

.cn-schedSlot[data-state="blocked"]{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  cursor:not-allowed;
  opacity:.72;
}

.cn-schedSlot[data-selected="1"]{
  outline: 3px solid rgba(122,162,255,.20);
  border-color: rgba(122,162,255,.45);
  background: rgba(122,162,255,.14);
}

.cn-schedSlot small{
  font-weight: 900;
  color: rgba(255,255,255,.70);
}

.cn-schedHint{
  margin-top:10px;
  color: var(--cnS-muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (min-width: 900px){
  .cn-schedGrid{ grid-template-columns: 70px 1fr; }
  .cn-schedTime{ font-size: 13px; }
}

.cn-sched .cn-schedToggle{
  appearance:none;
  -webkit-appearance:none;

  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:14px 16px;

  border-radius: 18px;
  overflow:hidden;

  border: 1px solid rgba(255,255,255,.12);

  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: rgba(255,255,255,.92);

  box-shadow:none;
  outline:none;

  font: inherit;
  line-height: 1.2;
  cursor:pointer;

  -webkit-tap-highlight-color: transparent;
}

.cn-sched .cn-schedToggle:active{
  transform: scale(.99);
}

.cn-sched .cn-schedToggleLeft{
  font-weight: 800;
  color: rgba(255,255,255,.90);
}

.cn-sched .cn-schedToggleRight{
  font-weight: 900;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  letter-spacing: .2px;
}