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

:root,:host {
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --color-orange-100: oklch(95.4% .038 75.164);
  --color-orange-600: oklch(64.6% .222 41.116);
  --color-orange-800: oklch(47% .157 37.304);
  --color-amber-100: oklch(96.2% .059 95.617);
  --color-amber-200: oklch(92.4% .12 95.746);
  --color-amber-800: oklch(47.3% .137 46.201);
  --color-yellow-100: oklch(97.3% .071 103.193);
  --color-emerald-50: oklch(97.9% .021 166.113);
  --color-emerald-100: oklch(95% .052 163.051);
  --color-emerald-200: oklch(90.5% .093 164.15);
  --color-emerald-500: oklch(69.6% .17 162.48);
  --color-emerald-600: oklch(59.6% .145 163.225);
  --color-emerald-800: oklch(43.2% .095 166.913);
  --color-sky-100: oklch(95.1% .026 236.824);
  --color-sky-200: oklch(90.1% .058 230.902);
  --color-sky-300: oklch(82.8% .111 230.318);
  --color-sky-800: oklch(44.3% .11 240.79);
  --color-blue-50: oklch(97% .014 254.604);
  --color-blue-100: oklch(93.2% .032 255.585);
  --color-blue-200: oklch(88.2% .059 254.128);
  --color-blue-300: oklch(80.9% .105 251.813);
  --color-blue-500: oklch(62.3% .214 259.815);
  --color-blue-600: oklch(54.6% .245 262.881);
  --color-blue-800: oklch(42.4% .199 265.638);
  --color-indigo-50: oklch(96.2% .018 272.314);
  --color-indigo-100: oklch(93% .034 272.788);
  --color-indigo-400: oklch(67.3% .182 276.935);
  --color-indigo-500: oklch(58.5% .233 277.117);
  --color-indigo-700: oklch(45.7% .24 277.023);
  --color-indigo-800: oklch(39.8% .195 277.366);
  --color-rose-50: oklch(96.9% .015 12.422);
  --color-rose-100: oklch(94.1% .03 12.58);
  --color-rose-200: oklch(89.2% .058 10.001);
  --color-rose-500: oklch(64.5% .246 16.439);
  --color-rose-600: oklch(58.6% .253 17.585);
  --color-rose-700: oklch(51.4% .222 16.935);
  --color-rose-800: oklch(45.5% .188 13.697);
  --color-slate-50: oklch(98.4% .003 247.858);
  --color-slate-100: oklch(96.8% .007 247.896);
  --color-slate-200: oklch(92.9% .013 255.508);
  --color-slate-300: oklch(86.9% .022 252.894);
  --color-slate-500: oklch(55.4% .046 257.417);
  --color-slate-600: oklch(44.6% .043 257.281);
  --color-slate-700: oklch(37.2% .044 257.287);
  --color-slate-900: oklch(20.8% .042 265.755);
  --color-gray-50: oklch(98.5% .002 247.839);
  --color-gray-200: oklch(92.8% .006 264.531);
  --color-gray-300: oklch(87.2% .01 258.338);
  --color-gray-400: oklch(70.7% .022 261.325);
  --color-gray-500: oklch(55.1% .027 264.364);
  --color-white: #fff;
  --spacing: .25rem;
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-2xl: 42rem;
  --container-4xl: 56rem;
  --text-sm: .875rem;
  --text-sm--line-height: calc(1.25 / .875);
  --text-lg: 1.125rem;
  --text-lg--line-height: calc(1.75 / 1.125);
  --text-xl: 1.25rem;
  --text-xl--line-height: calc(1.75 / 1.25);
  --text-2xl: 1.5rem;
  --text-2xl--line-height: calc(2 / 1.5);
  --text-3xl: 1.875rem;
  --text-3xl--line-height: calc(2.25 / 1.875);
  --text-4xl: 2.25rem;
  --text-4xl--line-height: calc(2.5 / 2.25);
  --text-5xl: 3rem;
  --text-5xl--line-height: 1;
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --radius-sm: .25rem;
  --radius-md: .375rem;
  --radius-lg: .5rem;
  --radius-xl: .75rem;
  --default-transition-duration: .15s;
  --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  --default-font-family: var(--font-sans);
  --default-mono-font-family: var(--font-mono)
}

*{
  margin: 0; 
  padding: 0; 
}

ul[role='list'], ol[role='list']{
  list-style: none; 
}

html:focus-within{
  scroll-behavior: smooth; 
}

a:not([class]){
  text-decoration-skip-ink: auto; 
}

img, picture, svg, video, canvas{
  max-width: 100%;
  height: auto; 
  vertical-align: middle; 
  font-style: italic; 
  background-repeat: no-repeat; 
  background-size: cover;
}

input, button, textarea, select{
  font: inherit; 
}

@media (prefers-reduced-motion: reduce){
  html:focus-within {
      scroll-behavior: auto;
  }
  *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
      transition: none;
  }
}

body, html{
  /* height: 100%;  */
  scroll-behavior: smooth;
}





@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/Geist[wght].ttf') format('truetype');
}

body {
  font-family: Geist, Arial, sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-display: swap;
  font-size: 1.6rem;

  background-image: url('/static/images/bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;

  background-color: #f1f5f9;
  color: #0f172a;


}

.bg-vena-light-peach {
  background-color: #FFF5E6;
}

.navigation-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.navigation {
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
}

ul.navigation {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin-bottom: 1rem;
}
ul.navigation a {
  text-decoration: none;
  color: #09090bcc;
}

h1 {
  letter-spacing: -.05em;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;

  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;

  margin-top: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

textarea {
  position: relative;
  display: block;
  width: 100%;
  appearance: none;
  border-radius: 0.5rem;
  padding-left: calc(0.875rem - 1px);
  padding-right: calc(0.875rem - 1px);
  padding-top: calc(0.625rem - 1px);
  padding-bottom: calc(0.625rem - 1px);
  font-size: 1rem;
  line-height: 1.5;
  color: #18181b;
  border: 1px solid rgba(24, 24, 27, 0.1);
  background-color: transparent;
  outline: none;
  font-family: Inter;
}

textarea::placeholder {
  color: #71717a;
}

textarea:hover {
  border-color: rgba(24, 24, 27, 0.2);
}

textarea:focus {
  outline: none;
  border-color: #91d1ff;
}

textarea:invalid {
  border-color: #ef4444;
}

textarea:disabled {
  border-color: rgba(24, 24, 27, 0.2);
}

.vena-footer {
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}
.vena-footer:hover {
  opacity: 1;
}
.vena-footer img {
  margin-right: 10px;
}

.vena-footer a {
  color: #71717a;
  text-decoration: none;
}

.card {
  border-radius: 0.5rem;
  border: 1px solid rgba(24, 24, 27, 0.1);
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1rem;
}

/* Buttons and inputs follow the patient portal (patient-portal/src/routes/layout.css), at kiosk size */
button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #f9fafb;
  color: #0f172a;
  font-family: Inter, Arial, sans-serif;
  font-weight: 500;
  font-optical-sizing: auto;
  font-display: swap;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-bottom-width: 2px;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
}
button:hover, a.button:hover {
  background-color: #f1f5f9;
}
button:focus-visible, a.button:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

button.primary, a.button.primary {
  background-color: #2563eb;
  border-color: #1e40af;
  color: #fff;
}
button.primary:hover, a.button.primary:hover {
  background-color: #3b82f6;
}

button.danger, a.button.danger {
  background-color: #e11d48;
  border-color: #9f1239;
  color: #fff;
}
button.danger:hover, a.button.danger:hover {
  background-color: #f43f5e;
}

button.success, a.button.success {
  background-color: #059669;
  border-color: #065f46;
  color: #fff;
}
button.success:hover, a.button.success:hover {
  background-color: #10b981;
}

/* The CPR keypad sits on a white modal, where the default button is too faint to read as a key */
button.keypad {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}
button.keypad:hover {
  background-color: #cbd5e1;
}

button.small, a.button.small {
  font-size: 1.25rem;
  padding: 0.375rem 0.875rem;
}

input[type="text"], input[type="password"], input[type="number"], select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #0f172a;
}
/* :where keeps the padding below the utility classes, so p-4 on an input still applies */
:where(input[type="text"], input[type="password"], input[type="number"], select) {
  padding: 0.5rem 0.75rem;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

.text-muted {
  color: #64748b;
}
.text-error {
  color: #be123c;
}

a.link-block {
  display: block;
  border: 1px solid rgb(228, 228, 231);
  color: #09090bcc;
  padding: 10px;
  border-radius: 0.3rem;
}
a.link-block:hover {
  background-color: #fafafac0;
}

th {
  border-bottom: 1px solid rgba(24, 24, 27, 0.1);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 500;
}

th:first-child {
  padding-left: var(--gutter, 0.5rem);
}

th:last-child {
  padding-right: var(--gutter, 0.5rem);
}

@media (min-width: 640px) {
  th:first-child {
    padding-left: 0.25rem;
  }
  th:last-child {
    padding-right: 0.25rem;
  }
}

td {
  position: relative;
  padding-left: 1rem;
  padding-right: 1rem;
  border-bottom: 1px solid rgba(24, 24, 27, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

td:first-child {
  padding-left: var(--gutter, 0.5rem);
}

td:last-child {
  padding-right: var(--gutter, 0.5rem);
}

@media (min-width: 640px) {
  td:first-child {
    padding-left: 0.25rem;
  }
  td:last-child {
    padding-right: 0.25rem;
  }
}

.badge {
  border-radius: 0.3rem;
  padding: 0.2rem 0.5rem;
}

.badge.Booked {
  background-color: #d1fae5;
}
.badge.Cancelled {
  background-color: #fee2e2;
}
.badge.Requested {
  background-color: #ffffa0;
}

.note {
  background-color: #fafac0;
  padding: 0.5rem;
  border-radius: 0.3rem;
}

/* Calendar */
.time-slot {
  display: inline-block;
  width: 6rem;
  border: 1px solid rgb(228, 228, 231);
  color: #09090bcc;
  padding: 10px;
  border-radius: 0.3rem;
  cursor: pointer;
  margin-bottom: 0.3rem;
}
.time-slot:hover {
  background-color: #f8f8f8;
}

/* Messages */
.message .meta {
  font-size: 0.875rem;
  color: #52525c;
  margin-bottom: 0.25rem;
}
.message .content {
  padding: 1rem;
  border-radius: 0.3rem;
}

.message .attachments {
  margin-top: 1rem;
}
.message .attachments a {
  margin-top: 0.2rem;
  display: block;
}
.message.In .content {
  background-color: #f7f7f7;
  margin-right: 10rem;
}
.message.Out .meta {
  text-align: right;
}
.message.Out .content {
  margin-left: 10rem;
  background-color: #b5e4ff;
}


@media (max-width: 640px) {
  h1 {
    margin-top: 0.5rem;
  }

  .message.In .content {
    margin-right: 2rem;
  }
  .message.Out .content {
    margin-left: 2rem;
  }
}


/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-actions .button {
  min-width: 100px;
}

/* Utility Classes */
[x-cloak] { display: none; }

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: #10b981;
  color: #ffffff;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.toast.error {
  background-color: #FF6166;
}

.callout {
  font-size: 2.3rem;
  padding: 1rem;
  padding-bottom: 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
  line-height: 1.5;
  text-align: center;
}
.callout.info {
  background-color: #e0f2fe;
  color: #004d76;
}
.callout.error {
  background-color: #FF6166;
  color: #000;
}

.callout.success {
  background-color: #19d898;
  color: #000;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 1;
  margin-top: 8px;
  padding: 8px 0;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  color: #111827;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: #f3f4f6;
}

.dropdown[x-data] .dropdown-menu[x-show="open"] {
  display: block;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-close {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.queue-button {
  width: 50%;
  margin: auto;
}
