/* override the “sans-serif” font family everywhere */
:root {
  --bs-font-sans-serif: 'Inter', sans-serif;
}

/* Global Styles */
html, body {
    font-family: var(--bs-font-sans-serif);
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #E5E5E5;
}

/* Containers */
.container {
    max-width: 1200px;
    padding: 15px;
}

.container-wide {
    width: 1400px;
    padding: 15px;
}

.background {
    background-color: #E5E5E5;
}

.rounded-card-white {
    border-radius: 15px;
    background-color: #ffffff;
}

/* The main wrapper for the page */
#content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1; /* Take up available space */
}

#content {
    flex: 1; /* Ensure the content area grows as needed */
    padding-bottom: 50px;
}

#footer {
    flex-shrink: 0; /* Prevent the footer from shrinking */
}

/* Links */
a {
    color: #007bff; /* Medical Blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #0056b3; /* Darker Medical Blue */
}

/* Navbar */
.navbar .nav-link {
    white-space: nowrap;
    color: #000000; /* Ensure nav link text is black */
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #6c757d; /* grey on hover */
}

/* force the toggler icon to use a black stroke */
.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=UTF8,\
    <svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'>\
      <path stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' \
            stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/>\
    </svg>");
}

/* Custom Colors and bars */
.bar-normal {
    background-color: #a79d85;
}

.bar-optimal {
    background-color: #09ba7b;
}

.bar-abnormal {
    background-color: #cf5b5b;
}

.text-normal {
    color: #a79d85;
}

.text-optimal {
    color: #09ba7b;
}

.text-abnormal {
    color: #cf5b5b;
}

.text-kymablue {
    color: #49a5c2;
}

.pill-bg-optimal {
    background-color: #b5f4d3;
}

.pill-bg-normal {
    background-color: #ded7c6;
}

.pill-bg-improving {
    background-color: #bdece6;
}

.pill-bg-abnormal {
    background-color: #fcc5a9;
}

.pill-bg-critical {
    background-color: #cf5b5b;
}

/* Forms and Inputs */
input,
textarea {
    display: block;
    width: 100%;
    padding: 8px 10px;
    color: #424242; /* Warm gray */
    background-color: #fbfbfb;
    border: 1px solid #b0b0b2; /* Light grayish blue */
    box-shadow: inset 0 2px 3px #e8e8e8;
}

input:disabled {
    background-color: #E9E9E9;
}

input[type="submit"] {
    width: 88px;
    background-color: #28a745; /* Bright Green */
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #e8e8e8; /* Very light gray */
    padding: 20px 0;
    text-align: center;
    color: #9e9e9e;
    font-size: 0.9em;
    border-top: 1px solid #b0b0b2; /* Light grayish blue */
}

/* Additional Components */
td,
th {
    border: 1px solid #bbbbbb; /* Light grayish blue */
}

/* Tooltips */
.tooltip-icon {
    position: relative;
    cursor: pointer;
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0b452f; /* Dark Green */
    color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
    font-size: 12px;
}

.tooltip-icon:hover::after {
    opacity: 1;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    background-color: #ffffff;
    padding: 20px;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Assistant CSS */
.messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

.message {
    font-size: 15px;
    max-width: 75%;
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 10px;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
}

.message.bot {
    align-self: flex-start;
    background-color: #c9cccf;
    color: black;
    border: 1px solid #ddd;
}


.loading {
    align-self: center;
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #007bff;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

/* ─── Timeline wrapper ───────────────────────────────────────────────────── */
.next-steps-timeline {
    background-color: #202020;
    border-radius: 15px;
}

/* ─── List reset ─────────────────────────────────────────────────────────── */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ─── Each item & bullet ───────────────────────────────────────────────── */
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: "\f192";                     /* Unicode for fa-circle-dot */
    font-family: "Font Awesome 5 Free";   /* or "Font Awesome 6 Free" if you’re on v6 */
    font-weight: 400;                     /* regular style */
    color: #dddddd;
    position: absolute;
    left: 0;
    top: 0.10rem;                         /* tweak to vertically center */
    font-size: 0.85rem;                   /* adjust size as needed */
}

/* ─── Card block ────────────────────────────────────────────────────────── */
.timeline-item__card {
    min-height: 60px;
    border-radius: 12px;
    border: 1px solid transparent;
}

/* ─── Modifiers for importance levels with transparency ──────────────────── */
.timeline-item--required .timeline-item__card {
    background-color: rgba(240, 240, 240, 0.6);
}

.timeline-item--important .timeline-item__card {
    background-color: rgba(240, 240, 240, 0.6);
}

.timeline-item--desirable .timeline-item__card {
    background-color: rgba(240, 240, 240, 0.6);
}

/* ─── Shade-on / shade-off element lists ──────────────────── */
/* smooth transition */
.clickable-shade {
  transition: opacity 0.2s ease;
}
/* when any card is hovered, dim all the others */
.row.g-2:hover .clickable-shade:not(:hover) {
  opacity: 0.5;
}
/* 1. smooth transitions on every card */
.shading-group .clickable-shade {
  transition: opacity 0.2s ease;
}
/* 2. when the container is hovered, dim every card except the one under the mouse */
.shading-group:hover .clickable-shade:not(:hover) {
  opacity: 0.5;
}


/* ─── Custom buttons ──────────────────── */
/* Base “Kyma” button */
.btn-kyma {
  color: #fff;
  background-color: #49A5C2;
  border-color: #49A5C2;
}

/* Hover/focus/active states */
.btn-kyma:hover,
.btn-kyma:focus,
.btn-kyma.focus,
.btn-kyma:active,
.btn-kyma.active,
.open > .dropdown-toggle.btn-kyma {
  color: #fff;
  background-color: #3d8ea3;    /* slightly darker for hover */
  border-color: #3d8ea3;
}

.btn-kyma:active,
.btn-kyma.active,
.open > .dropdown-toggle.btn-kyma {
  background-image: none;
}

/* Disabled state */
.btn-kyma.disabled,
.btn-kyma:disabled {
  color: #fff;
  background-color: #49A5C2;
  border-color: #49A5C2;
  opacity: .65;
}

/* Optional focus outline */
.btn-kyma:focus {
  box-shadow: 0 0 0 .2rem rgba(73, 165, 194, .5);
}

/* Outline “Kyma” button */
.btn-outline-kyma {
  color: #49A5C2;
  background-color: transparent;
  background-image: none;
  border: 1px solid #49A5C2;
}

/* Hover / focus / active states */
.btn-outline-kyma:hover,
.btn-outline-kyma:focus,
.btn-outline-kyma.focus,
.btn-outline-kyma:active,
.btn-outline-kyma.active,
.open > .dropdown-toggle.btn-outline-kyma {
  color: #fff;
  background-color: #49A5C2;
  border-color: #49A5C2;
}

/* Remove the default inset box-shadow on active */
.btn-outline-kyma:active,
.btn-outline-kyma.active,
.open > .dropdown-toggle.btn-outline-kyma {
  background-image: none;
}

/* Disabled state */
.btn-outline-kyma.disabled,
.btn-outline-kyma:disabled {
  color: #49A5C2;
  background-color: transparent;
  border-color: #49A5C2;
  opacity: .65;
}

/* Optional focus outline (around the element) */
.btn-outline-kyma:focus {
  box-shadow: 0 0 0 .2rem rgba(73, 165, 194, .5);
}