/* ==========================================================================
   M02 — TABLEAU DE BORD MÉDECIN
   ========================================================================== */

/* ---------- HERO ---------- */

.dash-hero {
  margin-bottom: 24px;
}

.dash-hero__date {
  font-size: 12px;
  color: #9CA09A;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dash-hero__title {
  font-family: 'Prompt', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #3A3E38;
  margin: 0 0 8px;
  line-height: 1.2;
}

.dash-hero__subtitle {
  font-size: 14px;
  color: #64695F;
  margin: 0;
  line-height: 1.5;
}

.dash-hero__subtitle strong {
  color: #4A90E2;
  font-weight: 600;
}

/* ---------- STATS ---------- */

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat {
  background: #FFFFFF;
  border: 1px solid #E4E6E2;
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 200ms ease;
}

.dash-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.dash-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--stat-color) 12%, transparent);
  color: var(--stat-color, #4A90E2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-stat__body {
  flex: 1;
  min-width: 0;
}

.dash-stat__label {
  font-size: 11px;
  color: #9CA09A;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  margin-bottom: 2px;
}

.dash-stat__value {
  font-family: 'Prompt', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #3A3E38;
  line-height: 1.1;
  margin-top: 4px;
}

/* ---------- GRID PRINCIPAL ---------- */

.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

.dash-agenda-card,
.dash-notif-card {
  padding: 20px;
}

/* ---------- AGENDA ---------- */

.dash-agenda {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-agenda-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 150ms ease;
  border: 1px solid transparent;
}

.dash-agenda-item:hover {
  background: #F8F9FA;
}

.dash-agenda-item.is-current {
  background: linear-gradient(90deg, rgba(74, 144, 226, 0.08), rgba(74, 144, 226, 0.02));
  border-color: rgba(74, 144, 226, 0.25);
}

.dash-agenda-item__time {
  text-align: center;
  border-right: 1px solid #E4E6E2;
  padding-right: 14px;
}

.dash-agenda-item__hour {
  font-family: 'Prompt', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #3A3E38;
  line-height: 1.1;
}

.dash-agenda-item.is-current .dash-agenda-item__hour {
  color: #4A90E2;
}

.dash-agenda-item__duration {
  font-size: 10px;
  color: #9CA09A;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-agenda-item__patient {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dash-agenda-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #3A3E38;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-agenda-item__motif {
  font-size: 12px;
  color: #64695F;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.dash-agenda-item__chevron {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #9CA09A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.dash-agenda-item:hover .dash-agenda-item__chevron {
  color: #4A90E2;
  background: #E8F1FB;
}

/* ---------- NOTIFICATIONS ---------- */

.dash-notifs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-notif {
  display: flex;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease;
}

.dash-notif:hover {
  background: #F8F9FA;
}

.dash-notif__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-notif.is-success .dash-notif__icon {
  background: #E3F4E8;
  color: #2D8A4E;
}

.dash-notif.is-info .dash-notif__icon {
  background: #E8F1FB;
  color: #1A5DA0;
}

.dash-notif.is-warning .dash-notif__icon {
  background: #FBF1DD;
  color: #8B6914;
}

.dash-notif__body {
  flex: 1;
  min-width: 0;
}

.dash-notif__title {
  font-size: 13px;
  font-weight: 600;
  color: #3A3E38;
  margin-bottom: 2px;
}

.dash-notif__message {
  font-size: 12px;
  color: #64695F;
  line-height: 1.4;
  margin-bottom: 4px;
}

.dash-notif__time {
  font-size: 10px;
  color: #9CA09A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ==========================================================================
   ADAPTATION TABLETTE
   ========================================================================== */

.frame--tablet .dash-stats {
  grid-template-columns: repeat(2, 1fr);
}

.frame--tablet .dash-grid {
  grid-template-columns: 1fr;
}

.frame--tablet .dash-hero__title {
  font-size: 22px;
}

.frame--tablet .dash-agenda-item__motif {
  max-width: 200px;
}
