/* --- Global Layout --- */
body, #doctor-app, #patient-view {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f7fafe !important;
  color: #1a2e45;
}

/* --- Card Style --- */
.card {
  border: none !important;
  border-radius: 14px !important;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
}
.card h5, .card .card-title {
  font-weight: 600;
  color: #173f76;
}

/* --- Inputs --- */
.form-control, .form-select {
  border-radius: 10px !important;
  border: 1px solid #cfd9e8 !important;
  padding: 10px 12px;
  font-size: 15px;
}
.form-control:focus, .form-select:focus {
  border-color: #2a79ff !important;
  box-shadow: 0 0 0 3px rgba(54,123,255,0.25) !important;
}

/* --- Buttons --- */
.btn-primary {
  background: #2a79ff !important;
  border-color: #2a79ff !important;
  padding: 8px 18px;
  border-radius: 10px !important;
  font-weight: 600;
}
.btn-primary:hover { background: #1f5ed1 !important; }
.btn-success { background: #00b894 !important; border-radius: 10px !important; }
.btn-outline-secondary { border-radius: 10px !important; }

/* Exit button */
#btn-exit { border-color: #d9534f !important; color: #d9534f !important; }
#btn-exit:hover { background: #d9534f !important; color: white !important; }

/* --- Table Style --- */
.table { background: white !important; border-radius: 12px !important; overflow: hidden; }
.table th {
  background: #eaf2ff !important;
  color: #173f76 !important;
  font-weight: 600;
}
.table td { vertical-align: top !important; padding: 10px 14px !important; }

/* Checkbox alignment */
.mcp-done { transform: scale(1.35); margin-right: 10px !important; }

/* Calendar buttons row */
.d-flex.justify-content-between button { border-radius: 8px !important; }

/* Headings */
h2, h3 { color: #173f76; font-weight: 700; }

/* ===== Dose Change Visuals ===== */
.dose-change-highlight { background: #e6f2ff !important; border-radius: 6px; padding: 4px 6px; }
.dose-change-symbol { color: #1f5ed1; font-weight: bold; margin-left: 4px; font-size: 14px; }
.dose-change-badge { display: inline-block; background: #d8e8ff; color: #1e3c74; font-size: 11px; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }

/* ===== Profile Header (soft gradient) ===== */
.profile-card {
  display: flex; align-items: center;
  background: linear-gradient(135deg, #f4f7ff, #e8f0ff);
  border-radius: 18px; padding: 22px 26px;
  border: 1px solid #d7e5ff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.profile-avatar { font-size: 54px; margin-right: 22px; }
.profile-info { display: flex; flex-direction: column; gap: 3px; }
.profile-name { font-size: 21px; font-weight: 700; color: #153e75; }
.profile-line { font-size: 15px; color: #355173; display: flex; align-items: center; gap: 6px; }

/* ===== Alert UI ===== */
.mcp-alert-banner{
  display:none;
  background: #153e75;
  color:#fff;
  padding:10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Flash animation on due item */
@keyframes mcpPulse {
  0% { box-shadow: 0 0 0 0 rgba(42,121,255,0.35); }
  70% { box-shadow: 0 0 0 14px rgba(42,121,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,121,255,0); }
}
.mcp-flash {
  animation: mcpPulse 1.2s ease-out infinite;
  border-radius: 8px;
}

/* Day counter color */
.mcp-day-count {
  color: #0d6efd !important; /* Bootstrap Blue */
  font-weight: 600;
  margin-left: 6px;
  display: inline-block;
}

/* Day Counter Badge (giorno X) */
.mcp-day-badge {
  background: #0d6efd;      /* Blue */
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

