/* =========================
   Base & Variables
========================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #14b8a6;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
  color: var(--text);
  min-height: 100vh;
}

/* =========================
   Navbar
========================= */

.navbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.navbar__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 65px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile {
  position: relative;
}

.profile__btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.profile__dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: none;
  min-width: 120px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 9999;
}

.profile__dropdown button {
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

.profile__dropdown button:hover {
  background: #f1f5f9;
}

.profile__dropdown.active {
  display: block;
}
/* =========================
   Logo
========================= */

.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}

.logo__mark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 8px;
  font-weight: bold;
}

/* =========================
   Navigation
========================= */

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  position: relative;
  margin: 0 18px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* =========================
   Profile
========================= */

.profile {
  position: relative;
}

.profile__btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.profile__dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: none;
  min-width: 120px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.profile__dropdown button {
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: background 0.2s ease;
}

.profile__dropdown button:hover {
  background: #f1f5f9;
}

.profile__dropdown.active {
  display: block;
}

/* =========================
   Main App Container
========================= */

#app {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Placeholder card (μέχρι να φτιάξουμε dashboard) */

.placeholder-card {
  background: var(--surface);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.placeholder-card h2 {
  margin-bottom: 10px;
}

.placeholder-card p {
  color: var(--muted);
}

/* =========================
   Minimal UI Components
========================= */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.card__head {
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}

/* Patients list */
.list {
  display: grid;
  gap: 10px;
}

.patientRow {
  width: 100%;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
}

.patientRow:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.patientRow__name {
  font-weight: 600;
}

.patientRow__meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* Center patient page */
.centerPage {
  min-height: calc(100vh - 65px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.centerCard {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.centerActions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  border: 1px solid var(--border);
  background: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.btn--primary {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.linkBtn {
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}


.dashboard-card{
  background:white;
  padding:35px;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
  margin-bottom:30px;
}

.dashboard-card h2{
  margin-bottom:20px;
  text-align:center;
}

.intro{
  text-align:center;
  margin-bottom:25px;
  color:#555;
}

.instructions{
  line-height:1.7;
  margin:15px 0;
}

.instructions li{
  margin-bottom:8px;
}

.dataset-link{
  display:inline-block;
  margin-top:10px;
  color:#2563eb;
  text-decoration:none;
}

.dataset-link:hover{
  text-decoration:underline;
}

.dashboard-container{
  max-width:1000px;
  margin:40px auto;
  padding:20px;
}

.dashboard-section{
  background:white;
  padding:35px;
  border-radius:10px;
  box-shadow:0 5px 18px rgba(0,0,0,0.08);
  margin-bottom:30px;
  text-align:left;
}

.dashboard-section h2{
  margin-bottom:20px;
}

.dashboard-section h3{
  margin-top:25px;
  margin-bottom:10px;
}

.dashboard-section p{
  line-height:1.6;
  margin-bottom:10px;
}

.answer-types{
  display:flex;
  gap:15px;
  margin:20px 0;
}

.answer-card{
  flex:1;
  padding:14px;
  border-radius:8px;
  font-size:14px;
}

.answer-card strong{
  display:block;
  margin-bottom:4px;
}

.positive{
  background:#e7f6ec;
  color:#1c7c3c;
}

.negative{
  background:#fdeaea;
  color:#a62b2b;
}

.uncertain{
  background:#fff7e6;
  color:#a06c00;
}

.legal{
  font-size:14px;
  color:#555;
}