/* ============================================================
   DoseClock Global Stylesheet
   ============================================================ */

:root {
  /* Brand colors */
  --primary: #003366;
  --primary-600: #002b80;
  --primary-500: #0047b3;
  --primary-hover: #00264d;
  --accent: #2b8cff;
  --success: #198754;
  --warning: #b58100;
  --danger:  #b00020;

  /* Timeslot theme colors */
  --morning:  #0a7fb1;     /* teal-blue */
  --lunch:    #1a8f4f;     /* green */
  --teatime:  #b15a0a;     /* warm amber */
  --bedtime:  #5c3db3;     /* indigo */

  /* Neutrals */
  --page-bg: #e9eef5;
  --surface: #ffffff;
  --text: #222;
  --text-muted: #5a6b7a;
  --border: #d6dde7;
  --shadow: 0 2px 6px rgba(0,0,0,0.06);

  /* Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --container-max: 1100px;
  --gutter: 16px;
  --header-h: 80px;
}

/* ------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #94c1ff;
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utilities */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,1px,1px);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   FIXED HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(
    90deg,
    var(--primary-600) 0%,
    var(--primary-500) 50%,
    var(--primary) 100%
  );
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-center {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

/* Brand logo + name */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

.brand:hover {
  opacity: 0.92;
}

/* NEW: larger circular logo with white halo so it stands out
   against the blue header strip */
.brand__logo {
  height: 56px;
  width: 56px;
  max-width: 100%;
  border-radius: 50%;
  background-color: #ffffff;
  padding: 4px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.65),
    0 3px 6px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.brand__name {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Header actions */

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease, transform .12s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(255,255,255,0.12);
  outline: none;
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-24 {
  width: 24px;
  height: 24px;
  display: block;
}

/* Responsive header */

@media (max-width: 768px) {
  .header-right .hide-sm,
  .header-left .hide-sm {
    display: none !important;
  }
}

/* Drawer */

.drawer {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--surface);
  box-shadow: -8px 0 18px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .2s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.drawer[data-open="true"] {
  transform: translateX(0);
}

.drawer__header {
  padding: 14px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__body {
  padding: 12px 16px;
  overflow: auto;
}

.drawer a {
  display: block;
  padding: 10px 8px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.drawer a:hover,
.drawer a:focus-visible {
  background: #f3f6fb;
  outline: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: var(--container-max);
  margin: 16px auto;
}

.site-main {
  padding: 16px;
}

.page {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page-bg);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background-color .15s ease,
    filter .12s ease;
  gap: 8px;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  transform: translateY(-1px);
  outline: none;
}

.btn--success {
  background: var(--success);
  color:#fff;
}

.btn--warning {
  background: var(--warning);
  color:#fff;
}

.btn--danger  {
  background: var(--danger);
  color:#fff;
}

.btn--secondary {
  background: #f3f4f6;
  color: var(--text);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: #e5e7eb;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Timeslot badges */

.timeslot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.badge--morning { background: var(--morning); }
.badge--lunch   { background: var(--lunch); }
.badge--teatime { background: var(--teatime); }
.badge--bedtime { background: var(--bedtime); }

/* Slot accent logic */

.slot--morning .slot-accent { color: var(--morning); }
.slot--lunch   .slot-accent { color: var(--lunch); }
.slot--teatime .slot-accent { color: var(--teatime); }
.slot--bedtime .slot-accent { color: var(--bedtime); }

.slot--morning .btn--primary { background: var(--morning); }
.slot--lunch   .btn--primary { background: var(--lunch); }
.slot--teatime .btn--primary { background: var(--teatime); }
.slot--bedtime .btn--primary { background: var(--bedtime); }

.slot--morning .btn--primary:hover,
.slot--lunch   .btn--primary:hover,
.slot--teatime .btn--primary:hover,
.slot--bedtime .btn--primary:hover,
.slot--morning .btn--primary:focus-visible,
.slot--lunch   .btn--primary:focus-visible,
.slot--teatime .btn--primary:focus-visible,
.slot--bedtime .btn--primary:focus-visible {
  filter: brightness(.92);
}

/* ============================================================
   TABLES
   ============================================================ */

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-table th,
.schedule-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.schedule-table thead th {
  background: #f3f6fb;
  font-weight: 600;
  color: var(--text);
}

.schedule-table tr:last-child td {
  border-bottom: 0;
}

.schedule-table .dose {
  font-weight: 700;
}

/* ============================================================
   FORMS
   ============================================================ */

input[type="text"],
input[type="number"],
input[type="time"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(43, 140, 255, 0.2);
  outline: none;
}

label {
  font-weight: 600;
  display:block;
  margin-bottom: 6px;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  body {
    background: #fff;
    padding-top: 0;
  }

  .site-header,
  .site-footer,
  .drawer {
    display: none !important;
  }

  .container,
  .schedule-table {
    box-shadow: none;
  }
}

/* ============================================================
   WELCOME PAGE / TILE GRID
   ============================================================ */

.page-main {
  padding: 90px 20px 40px; /* space for fixed header */
}

.welcome {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.welcome__title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.welcome__icon {
  font-size: 1.6rem;
}

.welcome__subtitle,
.welcome-intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}

/* Accent underline on headings (used with slot-accent) */
.slot-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}

.slot-accent::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.2rem;
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background-color: #ffcc33;
}

/* Tile grid */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  border-radius: 18px;
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.tile--secondary {
  background-color: var(--primary-600);
}

.tile:hover,
.tile:focus-visible {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
  outline: none;
}

.tile__label {
  display: inline-block;
}

/* ============================================================
   STOCK MANAGEMENT PAGE
   ============================================================ */

.stock-page {
  padding-bottom: 1.5rem;
}

.stock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.stock-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.stock-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stock-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stock-search {
  min-width: 260px;
}

.stock-legend {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stock-table-wrap {
  overflow: auto;
  border-radius: var(--radius);
}

.stock-table thead th[data-sort] {
  cursor: pointer;
}

.stock-medication-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stock-input {
  width: 7ch;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.stock-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid #dfe9ff;
  font-size: 0.85rem;
}

.stock-hint {
  margin-top: 4px;
  font-size: 0.8rem;
}

.stock-empty {
  text-align: center;
  padding: 1rem 0;
}

.stock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.text-muted {
  color: var(--text-muted);
}

/* ============================================================
   SCHEDULE PAGES
   ============================================================ */

.schedule-page {
  padding-bottom: 1.5rem;
}

.schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.schedule-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.schedule-subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.schedule-time {
  font-size: 0.95rem;
}

.schedule-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.schedule-section {
  margin-top: 1rem;
}

.med-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.med-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem 0.9rem;
}

.med-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .med-card-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.med-info {
  min-width: 0;
}

.med-title {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: baseline;
}

.med-name {
  word-break: break-word;
}

.med-dose {
  color: var(--text-muted);
  font-weight: 500;
}

.med-actions {
  margin: 0;
}

.med-action-buttons {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.schedule-empty {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
}

/* ============================================================
   STOCK DRAWER WARNINGS
   ============================================================ */

.warning-red,
.warning-yellow {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
}

.warning-red {
  background: #ffe7e7;
  border: 1px solid #f2a5a5;
  color: #912626;
}

.warning-yellow {
  background: #fff7d9;
  border: 1px solid #f0d28b;
  color: #7a5a10;
}

/* ============================================================
   ADMINISTRATION LOG PAGE
   ============================================================ */

.admin-log-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 8px 32px;
}

.admin-log-header {
  text-align: center;
  margin-bottom: 16px;
}

.admin-log-title {
  font-size: 28px;
  font-weight: 700;
  color: #003366;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-log-title .icon {
  font-size: 24px;
}

.admin-log-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
}

.admin-log-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 14px 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.17);
  margin-top: 10px;
}

.admin-log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 10px;
}

.admin-log-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #003366;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-log-card-meta {
  font-size: 12px;
  color: #6b7280;
}

.admin-log-table-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  overflow-x: auto;
}

.admin-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 750px;
}

.admin-log-table thead {
  background: #003366;
  color: #ffffff;
}

.admin-log-table th,
.admin-log-table td {
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}

/* Column widths (1–8) */

.admin-log-table th:nth-child(1),
.admin-log-table td:nth-child(1) {
  width: 24%;
}

.admin-log-table th:nth-child(2),
.admin-log-table td:nth-child(2) {
  width: 12%;
  white-space: nowrap;
}

.admin-log-table th:nth-child(3),
.admin-log-table td:nth-child(3) {
  width: 12%;
  white-space: nowrap;
}

.admin-log-table th:nth-child(4),
.admin-log-table td:nth-child(4) {
  width: 22%;
}

.admin-log-table th:nth-child(5),
.admin-log-table td:nth-child(5) {
  width: 10%;
  white-space: nowrap;
}

.admin-log-table th:nth-child(6),
.admin-log-table td:nth-child(6) {
  width: 8%;
  white-space: nowrap;
}

.admin-log-table th:nth-child(7),
.admin-log-table td:nth-child(7) {
  width: 7%;
  white-space: nowrap;
}

.admin-log-table th:nth-child(8),
.admin-log-table td:nth-child(8) {
  width: 5%;
  white-space: nowrap;
}

.admin-log-table tbody tr:nth-child(even) {
  background: #f3f4f6;
}

.admin-log-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.admin-log-table tbody tr:hover {
  background: #e5e7eb;
}

/* Pills & tags */

.admin-log-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.admin-log-status-taken {
  background: #dcfce7;
  color: #15803d;
}

.admin-log-status-refused {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-log-timeslot-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0ecff;
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
}

.admin-log-dose-text {
  font-weight: 600;
}

.admin-log-dose-unit {
  color: #6b7280;
  font-size: 11px;
}

.admin-log-muted {
  color: #6b7280;
  font-size: 12px;
}

.admin-log-empty {
  padding: 22px 10px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 768px) {
  .admin-log-page {
    padding: 12px 4px 20px;
  }

  .admin-log-card {
    padding: 10px;
  }

  .admin-log-table th,
  .admin-log-table td {
    padding: 5px 6px;
    font-size: 12px;
  }

  .admin-log-title {
    font-size: 22px;
  }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.auth-page {
  min-height: calc(100vh - var(--header-h));
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  max-width: 380px;
  width: 100%;
}

.auth-title {
  font-size: 24px;
  margin-bottom: 8px;
  color: #003366;
}

.auth-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 18px;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #003366;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

.auth-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 1px #00336622;
}

.auth-button {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: #003366;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-button:hover {
  background: #00264d;
}

/* ============================================================
   LOGOUT BAR
   ============================================================ */

.logout-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 0 16px;
  background: #e5f0ff;
}

.logout-bar__user {
  font-size: 14px;
  color: #003366;
  font-weight: 500;
}

.logout-bar__button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: #003366;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.logout-bar__button:hover {
  background: #00264d;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
}

.logout-bar__button:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .logout-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .logout-bar__button {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   USER MANAGEMENT (ADMIN USERS)
   ============================================================ */

.users-page {
  padding-bottom: 1.5rem;
}

.users-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.users-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.users-subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.users-table-wrap {
  margin-top: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.users-table th,
.users-table td {
  font-size: 0.95rem;
}

.user-role-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.user-role-tag--admin {
  background: #ffe3c4;
  color: #b85b00;
}

.user-role-tag--user {
  background: #d5e8ff;
  color: #004a99;
}

.user-form-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.9rem;
}

.user-form-title {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.user-form-description {
  margin: 0 0 1.4rem;
}

.user-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.user-form-checkbox-row {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.user-form-checkbox-row label {
  font-weight: 500;
}

.user-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.user-form-actions .btn {
  min-width: 120px;
}

.welcome__title {
    color: #1B419E !important;     /* Title text */
    font-weight: 700;
}

.welcome__title .welcome__icon {
    color: white !important;        /* Keep pills white */
}

/* Global title colour for the whole app */
h1, h2, h3, .page-title, .welcome__title, .schedule-title, .stock-title {
    color: #1B419E !important;   /* DoseClock Blue */
    font-weight: 700;
}

.welcome__subtitle.welcome-intro {
    color: #1B419E !important;
    font-weight: 700;   /* Optional, only add if you want it bold like the titles */
}
.med-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    vertical-align: middle;
}
