/* ============================================================
   Pickadoc Mock View
   ------------------------------------------------------------
   Fake Pickadoc app shell (TopNavBar + Sidebar + Calendar +
   Right pane). Visible when body.mode-pickadoc.
   Visual cues borrowed from docgendaweb topNavBar.scss /
   calendarPage.scss (primary #d862c8, secondary #24374e).
   ============================================================ */

:root {
  --pa-primary: #d862c8;
  --pa-primary-light: #c790c0;
  --pa-secondary: #24374e;
  --pa-secondary-light: #405064;
  --pa-secondary-ultralight: #cedbeb;
  --pa-grey-bg: #fafafa;
  --pa-control: rgb(200,200,200);
  --pa-control-light: rgb(238,238,238);
  --pa-grid-line: rgb(230,230,230);
  --pa-event-bg: rgb(173,229,249);
  --pa-event-bg-left: rgb(67,204,252);
  --pa-row-hover: #f7f7f7;
  --pa-font: #4b6d83;
}

.layer-pickadoc-mock {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--pa-font);
  background: var(--pa-grey-bg);
}

.pa-shell {
  display: grid;
  grid-template-rows: 53px 1fr;
  height: 100%;
}

/* ----- Top NavBar ----- */
.pa-topnav {
  background: var(--pa-secondary);
  border-bottom: 2px solid var(--pa-primary);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 1fr;
  align-items: center;
  color: white;
  padding: 0 18px;
  z-index: 10;
}

.pa-topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pa-topnav-brand img { height: 26px; width: auto; }

.pa-topnav-mid {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pa-topnav-mid li {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 150ms;
}
.pa-topnav-mid li:hover { background: rgba(255,255,255,0.08); color: white; }
.pa-topnav-mid li.is-active { color: var(--pa-primary); }
.pa-topnav-mid li .ico { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; }

.pa-topnav-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.pa-topnav-search {
  background: var(--pa-secondary-light);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  width: 220px;
}
.pa-topnav-search::placeholder { color: rgba(255,255,255,0.75); }
.pa-topnav-practice {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
}
.pa-topnav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pa-primary), #7c3aed);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  border: 2px solid white;
}

/* ----- Page body ----- */
.pa-body {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  overflow: hidden;
}

/* ----- Sidebar ----- */
.pa-sidebar {
  border-right: 1px solid var(--pa-grid-line);
  background: white;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.pa-sidebar-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #9aa7b6; padding: 14px 10px 4px; }
.pa-sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--pa-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.pa-sidebar-item:hover { background: var(--pa-control-light); }
.pa-sidebar-item.is-active { background: var(--pa-secondary-ultralight); color: var(--pa-secondary); }
.pa-sidebar-item .ico {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pa-secondary-light);
  font-size: 16px;
}
.pa-sidebar-item.is-active .ico { color: var(--pa-primary); }
.pa-sidebar-clonr {
  margin: 16px 10px 0;
  background: var(--pa-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}
.pa-sidebar-clonr:hover { background: #c14fb3; }

/* ----- Calendar ----- */
.pa-calendar {
  background: white;
  display: grid;
  grid-template-rows: 56px 1fr;
  overflow: hidden;
}
.pa-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #f7f7f7;
  border-bottom: 1px solid var(--pa-grid-line);
}
.pa-calendar-toolbar .left { display: flex; gap: 10px; align-items: center; }
.pa-calendar-toolbar .right { display: flex; gap: 6px; }
.pa-calendar-toolbar button {
  background: white;
  color: var(--pa-secondary);
  border: 1px solid var(--pa-grid-line);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.pa-calendar-toolbar button:hover { background: #e8ecf2; }
.pa-calendar-toolbar button.is-active { background: var(--pa-secondary); color: white; }
.pa-calendar-toolbar .title { font-size: 16px; font-weight: 700; color: var(--pa-secondary); }

.pa-calendar-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  overflow: auto;
}
.pa-time-col {
  border-right: 1px solid var(--pa-grid-line);
  background: #fbfbfd;
}
.pa-time-cell {
  height: 60px;
  border-bottom: 1px solid var(--pa-grid-line);
  font-size: 11px;
  color: #9aa7b6;
  text-align: right;
  padding: 2px 6px 0;
  font-variant-numeric: tabular-nums;
}

.pa-day-col {
  border-right: 1px solid var(--pa-grid-line);
  position: relative;
}
.pa-day-col:last-child { border-right: none; }

.pa-day-head {
  background: white;
  border-bottom: 1px solid var(--pa-grid-line);
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 12px;
}
.pa-day-head .wd { font-weight: 700; color: var(--pa-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.pa-day-head .dn { font-size: 18px; font-weight: 800; color: var(--pa-secondary); }
.pa-day-head.is-today { background: linear-gradient(135deg, #fde7f7 0%, #ffffff 100%); }
.pa-day-head.is-today .dn { color: var(--pa-primary); }

.pa-day-body { position: relative; }
.pa-day-cell {
  height: 60px;
  border-bottom: 1px solid var(--pa-grid-line);
}

.pa-event {
  position: absolute;
  left: 4px;
  right: 4px;
  background: var(--pa-event-bg);
  border-left: 4px solid var(--pa-event-bg-left);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  color: #1f3343;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  overflow: hidden;
  transition: transform 150ms, box-shadow 150ms;
}
.pa-event:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.10); }
.pa-event strong { display: block; font-size: 11px; color: #122231; font-weight: 800; line-height: 1.2; }
.pa-event .meta { font-size: 10px; color: rgba(0,0,0,0.55); margin-top: 2px; }

.pa-event.pink     { background: #fde7f7; border-left-color: var(--pa-primary); }
.pa-event.green    { background: #e6f7ee; border-left-color: #139965; }
.pa-event.yellow   { background: #fff5d9; border-left-color: #d69b1a; }
.pa-event.purple   { background: #ede9fe; border-left-color: #7c3aed; }
.pa-event.demo {
  background: linear-gradient(135deg, #fde7f7 0%, #ffd9f0 100%);
  border-left-color: var(--pa-primary);
  border: 1px solid var(--pa-primary);
  border-left: 4px solid var(--pa-primary);
  box-shadow: 0 4px 12px rgba(216,98,200,0.25);
}
.pa-event.demo strong { color: var(--pa-primary); }
.pa-event.demo .pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pa-primary);
  margin-right: 4px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(216,98,200,0.6);
  animation: demoPulse 1.6s infinite;
}
@keyframes demoPulse {
  0%   { box-shadow: 0 0 0 0   rgba(216,98,200,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(216,98,200,0); }
  100% { box-shadow: 0 0 0 0   rgba(216,98,200,0); }
}

/* current-time indicator */
.pa-now-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--pa-primary);
  z-index: 3;
  pointer-events: none;
}
.pa-now-line::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--pa-primary);
}

/* ----- Right panel: Tagesübersicht ----- */
.pa-right {
  background: white;
  border-left: 1px solid var(--pa-grid-line);
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pa-right h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pa-secondary);
  margin: 0;
  border-bottom: 1px solid var(--pa-grid-line);
  padding-bottom: 8px;
}
.pa-right-card {
  padding: 12px;
  border: 1px solid var(--pa-grid-line);
  border-radius: 10px;
  background: #fafbfd;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 150ms, transform 150ms;
}
.pa-right-card:hover { border-color: var(--pa-primary); transform: translateX(-2px); }
.pa-right-card .time { font-weight: 800; color: var(--pa-secondary); font-size: 13px; }
.pa-right-card .name { font-weight: 700; color: var(--pa-secondary); margin: 2px 0; }
.pa-right-card .what { color: var(--pa-font); font-size: 12px; }
.pa-right-card.demo  { border-color: var(--pa-primary); background: #fdf2fa; }
.pa-right-card.demo .badge {
  display: inline-block;
  background: var(--pa-primary);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
}

.pa-right-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pa-right-stats .stat {
  background: #f3f5fb;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.pa-right-stats .stat strong { display: block; font-size: 22px; color: var(--pa-secondary); font-weight: 900; }
.pa-right-stats .stat span   { font-size: 11px; color: var(--pa-font); }

@media (max-width: 1100px) {
  .pa-body { grid-template-columns: 180px 1fr; }
  .pa-right { display: none; }
}
@media (max-width: 760px) {
  .pa-body { grid-template-columns: 1fr; }
  .pa-sidebar { display: none; }
}
