/* ==========================================================================
   P03 : TABLEAU DE BORD PATIENT (mobile)
   Préfixe : pdash-
   ========================================================================== */

/* ---------- GREETING ---------- */

.pdash-greeting {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0 var(--space-3);
  opacity: 0;
  animation: pat-fade-in 400ms var(--ease-out) 60ms forwards;
}

.pdash-greeting__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-primary-soft);
  flex-shrink: 0;
}

.pdash-greeting__text {
  flex: 1;
}

.pdash-greeting__name {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-dark);
}

.pdash-greeting__sub {
  font-size: var(--fs-xs);
  color: var(--color-gray);
  margin-top: 2px;
}

/* ---------- NOTIFICATION ORDONNANCE ---------- */

.pdash-alert {
  background: linear-gradient(135deg, #4A90E2 0%, #1A5DA0 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-4);
  color: white;
  margin-bottom: var(--space-4);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.35);
  opacity: 0;
  animation: pat-slide-up 420ms var(--ease-out) 180ms forwards;
  position: relative;
  overflow: hidden;
}

.pdash-alert::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}

.pdash-alert:active {
  transform: scale(0.98);
}

.pdash-alert__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.pdash-alert__dot {
  width: 8px;
  height: 8px;
  background: #FFA801;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  animation: pat-badge-pulse 2s ease-in-out infinite;
}

.pdash-alert__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.85;
}

.pdash-alert__title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.pdash-alert__sub {
  font-size: var(--fs-sm);
  opacity: 0.8;
  margin-bottom: var(--space-4);
}

.pdash-alert__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

/* ---------- QUICK ACTIONS ---------- */

.pdash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pdash-action-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-border);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  opacity: 0;
  animation: pat-fade-in 380ms var(--ease-out) forwards;
}

.pdash-action-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary-light);
}

.pdash-action-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdash-action-card__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-dark);
  line-height: 1.3;
}

.pdash-action-card__sub {
  font-size: var(--fs-xs);
  color: var(--color-gray);
}

/* ---------- RDV SECTION ---------- */

.pdash-section-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--space-3);
}

.pdash-rdv-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-border);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  animation: pat-fade-in 380ms var(--ease-out) 500ms forwards;
}

.pdash-rdv-card__date {
  width: 44px;
  height: 48px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdash-rdv-card__day {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: 1;
}

.pdash-rdv-card__month {
  font-size: 9px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  text-transform: uppercase;
}

.pdash-rdv-card__info {
  flex: 1;
}

.pdash-rdv-card__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-dark);
  margin-bottom: 2px;
}

.pdash-rdv-card__meta {
  font-size: var(--fs-xs);
  color: var(--color-gray);
}

.pdash-rdv-card__chip {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--color-success-soft);
  color: var(--color-success);
  flex-shrink: 0;
}
