﻿/* ============================================================
   Screen 2 — Сегодня (Пациент)
   ============================================================ */

body { background: #F0F4F8; }

.patient-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.patient-top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.patient-top-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.patient-top-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.patient-top-logo-icon .icon { width: 24px; height: 24px; color: #fff; }
.patient-top-name { font-size: 13px; font-weight: 600; color: var(--text-1); line-height: 1.2; }
.patient-top-sub { font-size: 10px; color: var(--text-3); font-weight: 400; line-height: 1.2; }
.patient-top-nav { display: flex; gap: 4px; }
.patient-top-nav a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid transparent;
}
.patient-top-nav a.active {
  background: var(--blue-l);
  color: var(--blue);
  border-color: var(--blue-m);
}
.patient-top-nav a:hover:not(.active) { background: var(--surface-2); }

.patient-main {
  flex: 1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Greeting card */
.greeting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.greeting-text-main {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.greeting-text-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.5;
}
.greeting-progress-wrap {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.greeting-ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0% 72%, var(--surface-2) 72% 100%);
  display: flex; align-items: center; justify-content: center;
}
.greeting-ring-inner {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.greeting-ring-pct { font-size: 16px; font-weight: 700; color: var(--text-1); }
.greeting-ring-label { font-size: 12px; color: var(--text-3); font-weight: 600; }

/* Next action */
.next-action-card {
  background: var(--blue);
  border-radius: 16px;
  padding: 32px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.next-action-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.na-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.na-title {
  font-size: 26px; font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.na-time {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}
.na-instruction {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
}
.na-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-patient-primary {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity 0.12s;
}
.btn-patient-primary:hover { opacity: 0.92; }

.btn-patient-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.12s;
}
.btn-patient-secondary:hover { background: rgba(255,255,255,0.22); }

/* Task list */
.task-section-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.patient-task {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  transition: box-shadow 0.12s;
}
.patient-task:last-child { margin-bottom: 0; }
.patient-task:hover { box-shadow: var(--shadow); }

.patient-task.done {
  border-color: var(--green-m);
  background: var(--green-l);
}
.patient-task.done .pt-time { color: var(--green); }
.patient-task.next {
  border-color: var(--blue-m);
  background: var(--blue-l);
}
.patient-task.missed {
  border-color: var(--amber-m);
  background: var(--amber-l);
}

.pt-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pt-info { flex: 1; min-width: 0; }
.pt-name {
  font-size: 17px; font-weight: 600;
  color: var(--text-1);
  margin-bottom: 3px;
}
.patient-task.done .pt-name { color: var(--green); }
.patient-task.next .pt-name { color: var(--blue); }
.patient-task.missed .pt-name { color: var(--amber); }
.pt-time { font-size: 14px; color: var(--text-3); }
.pt-badge {
  flex-shrink: 0;
  font-size: 13px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}
.pt-badge-done { background: var(--green-l); color: var(--green); border: 1px solid var(--green-m); }
.pt-badge-next { background: var(--blue); color: #fff; }
.pt-badge-later { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.pt-badge-missed { background: var(--amber-l); color: var(--amber); border: 1px solid var(--amber-m); }
.pt-badge-help { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* Feedback section */
.feedback-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 28px;
}
.feedback-title {
  font-size: 15px; font-weight: 700;
  color: var(--text-1); margin-bottom: 14px;
}
.feedback-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.feedback-item:last-child { border-bottom: none; }
.feedback-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Help section */
.help-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 28px;
}
.help-title {
  font-size: 15px; font-weight: 700;
  color: var(--text-1); margin-bottom: 14px;
}
.help-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-help {
  font-size: 15px; font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1.5px solid;
  cursor: pointer;
  font-family: var(--font-sans);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.12s;
}
.btn-help-teal { background: var(--teal-l); color: var(--teal); border-color: #99F6E4; }
.btn-help-teal:hover { background: #CCFBF1; }
.btn-help-neutral { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.btn-help-neutral:hover { background: var(--border); }
.btn-help-red { background: var(--red); color: #fff; border-color: var(--red); font-size: 16px; padding: 16px 28px; }
.btn-help-red:hover { background: #991B1B; border-color: #991B1B; }
.btn-help-red .icon { color: #fff; }

/* Status message */
.status-message {
  background: var(--green-l);
  border: 1px solid var(--green-m);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--green);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 14px;
  max-width: 460px;
}

/* User block in header */
.user-block { display: flex; align-items: center; gap: 12px; }
.user-info { text-align: right; }
.user-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.user-meta { font-size: 12px; color: var(--text-3); }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-l); border: 2px solid var(--blue-m);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--blue);
}

/* Task icon backgrounds */
.patient-task.done .pt-icon { background: var(--green-m); }
.patient-task.next .pt-icon { background: var(--blue); }
.patient-task.missed .pt-icon { background: var(--amber-m); }
.pt-icon-blue-l { background: var(--blue-l); }
.pt-icon-surface { background: var(--surface-2); }

/* Task icon colors */
.patient-task.done .pt-icon .icon { color: var(--green); }
.patient-task.next .pt-icon .icon { color: #fff; }
.patient-task.missed .pt-icon .icon { color: var(--amber); }
.pt-icon-blue-l .icon { color: var(--blue); }
.pt-icon-surface .icon { color: var(--text-3); }

/* Feedback */
.feedback-dot.green { background: var(--green); }
.feedback-dot.amber { background: var(--amber); }
.feedback-text { color: var(--text-2); }

/* Back link */
.back-link-wrap { text-align: center; padding: 8px 0 20px; }
.back-link { font-size: 13px; color: var(--text-3); text-decoration: none; }
.back-link:hover { color: var(--text-2); }

/* Responsive */

#es-tasks { display: none; }
