/* html {
  font-size: 14px;
} */

/* @media (min-width: 768px) {
  html {
    font-size: 16px;
  }
} */

/* .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
} */
html, 
body { 
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; 
  display: flex;
  flex-direction: column;
}

html {
  position: relative;
  min-height: 100%;
  --lines-light: #cad6e6;
  --lines: #bcbcbc;
  --tele-blue: #0133ff;
  --tele-blue-trans: #0133ffc3;
  /* --tele-active-border: #4188d0; */
  --tele-active-border: #0133ff;
  --tele-light-bg: #f2f5f8;
  --radius: 0.375rem;
  overflow-y: scroll;
}

body {
  margin-bottom: 60px;
  flex: 1;
}

main {
  flex: 1;
}


a,
.text-link {
  transition: color 0.3s ease;
}
a:hover,
.text-link:hover {
  color: var(--tele-blue);
}

/* .form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
} */

.form-label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 5px;
}

.inline-label {
  font-size: 12px;
  /* font-weight: 800; */
  font-weight: 400;
}
.inline-label--big {
  font-size: 16px;
}

.btn {
  display: inline-block;
  cursor: pointer;
  padding: 0.5rem 1rem;
  /* border-radius: 3rem; */
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 15px 30px;
}

.btn-sm {
  padding: 5px 14px;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--tele-blue);
  color: white;
}
.btn-primary:hover {
  color: white;
  background-color: #1b47ff;
}
.btn-primary:disabled {
  opacity: 35%;
  pointer-events: none;
}
.btn-primary.btn-lg {
  box-shadow: 0 10px 20px #0133FF4A;
}

.btn-outline-secondary,
.btn-secondary {
  color: black;
  /* background-color: #f2f5f8; */
  /* border: 1px solid #4188d0; */
  background-color: #fff;
  border: 1px solid var(--lines);
}
.btn-outline-secondary:hover,
.btn-secondary:hover {
  color: black;
  /* background-color: #d4e6f8; */
  border-color: #1b47ff;
}

.btn-danger {
  color: black;
  background-color: #fff;
  border: 1px solid #e77182;
}
.btn-danger:hover {
  color: black;
  /* background-color: #d4e6f8; */
  border-color: #ad2136;
}

.btn-selectable {
  border-radius: var(--radius);
  background-color: white;
  border: 1px solid var(--lines);
  outline: 1px solid transparent;
}
.btn-selectable:hover {
  box-shadow: 0 0 5px #4086cdc3;
  box-shadow: 0 0 5px var(--tele-blue-trans);
  border-color: var(--tele-active-border);
  outline-color: var(--tele-active-border);
}
.btn-selectable.selected {
  box-shadow: 0 0 5px #4086cdc3;
  box-shadow: 0 0 5px var(--tele-blue-trans);
  border-color: var(--tele-active-border);
  outline-color: var(--tele-active-border);
}

select,
.form-select {
  border: 1px solid var(--lines);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  outline: 1px solid transparent;
  width: 100%;
  background: white;
}
select:focus,
.form-select:focus {
  border-color: var(--tele-active-border);
  outline-color: var(--tele-active-border);
}

input[type="radio"],
input[type="checkbox"],
.form-check-input {
  width: 16px;
  height: 16px;
  accent-color: var(--tele-blue);
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="radio"]:disabled
input[type="checkbox"]:disabled,
.form-check-input:disabled {
  cursor: default;
  opacity: 0.5;
}

.form-check {
  display: flex;
  align-items: center;
}
.form-check-label {
  cursor: pointer;
}
.text-muted {
  cursor: default;
  color: rgba(0,0,0,0.5);
}
.form-check-input {
  margin-right: 5px;
}

.text-danger {
  color: #dc2626;
  font-size: 14px;
}


input[type="range"] {
  --progress-color: #0133ff; /* red-500 */
  --track-color: #d1d5db;    /* gray-200 */

  width: 100%;
  height: 6px;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--progress-color) 0% 50%,  /* the 50% will be overridden below in Chrome */
    var(--track-color) 50% 100%
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

/* Thumb (Chrome/Edge) */
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--progress-color);
  border: 2px solid white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  cursor: pointer;
  margin-top: -6px; /* centers thumb on 6px track */
}

/* Track for Chrome/Edge */
input[type="range"]::-webkit-slider-runnable-track {
  background: var(--track-color);
  height: 6px;
  border-radius: 999px;
}

/* Firefox thumb + progress */
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--progress-color);
  border: 2px solid white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-track {
  background: var(--track-color);
  height: 6px;
  border-radius: 999px;
}
input[type="range"]::-moz-range-progress {
  background: var(--progress-color);
  height: 6px;
  border-radius: 999px;
}

input[type='text'],
input[type='number'],
.form-control {
  border: 1px solid var(--lines);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition:
    border 0.3s ease,
    outline 0.3s ease;
  outline: 1px solid transparent;
  width: 100%;
}
input[type='text']:focus,
input[type='number']:focus,
.form-control:focus {
  border-color: var(--tele-active-border);
  outline-color: var(--tele-active-border);
}


.card {
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  background-color: white;
}

.card-sm {
  max-width: 640px;
  margin: auto;
}
.card-body {
  padding: 1.5rem;
  padding-top: 1rem;
}

.card-title {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.75rem;
  padding-bottom: 0.5rem;
}

.card-secondary {
  background-color: #f2f5f8;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.fade {
  display: none !important;
}
.modal.fade.show {
  display: flex !important;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
}

.modal-dialog {
  position: relative;
  max-width: 400px;
  width: 100%;
  background-color: white;
  border-radius: var(--radius);
  z-index: 1;
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.modal-dialog.modal-lg {
  max-width: 640px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--lines);
}
.modal-body {
  padding: 1rem 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--lines);
}

.modal-title {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.d-none {
  display: none;
}

.tab-pane.fade {
  display: none;
}
.tab-pane.fade.show {
  display: block;
}

.nav-tabs {
  border-bottom: 3px solid black;
  display: flex;
}

.nav-tabs .nav-link {
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-top-right-radius: 0.375rem;
}
.nav-tabs .nav-link:hover {
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  background-color: rgba(0,0,0,0.1);
}
.nav-tabs .nav-link.active {
  background-color: black;
  color: white;
}

h2 {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
}

table {
  background-color: white;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
table tr th,
table tr td {
  border-bottom: 1px solid var(--lines);
  padding: 0.5rem 1rem;
}

table tr th:first-child,
table tr td:first-child {
  border-left: 1px solid var(--lines);
}
table tr th:last-child,
table tr td:last-child {
  border-right: 1px solid var(--lines);
}
table tr th {
  background: var(--tele-light-bg);
  text-align: left;
  border-top: solid 1px var(--lines);
  font-size: 14px;
}

/* top-left border-radius */
table tr:first-child th:first-child {
  border-top-left-radius: 0.375rem;
}

/* top-right border-radius */
table tr:first-child th:last-child {
  border-top-right-radius: 0.375rem;
}

/* bottom-left border-radius */
table tr:last-child td:first-child {
  border-bottom-left-radius: 0.375rem;
}

/* bottom-right border-radius */
table tr:last-child td:last-child {
  border-bottom-right-radius: 0.375rem;
}

table select,
table .form-select {
  width: unset;
}

.alert {
  padding: 1rem;
  border-radius: var(--radius);
  border-width: 1px;
  border-style: solid;
  border-color: var(--lines);
  color: black;
  font-size: 14px;
  background-color: white;
}

.alert.alert-success {
  border-color: #34d399;
  background-color: #ecfdf5;
  color: #059669;
}
.alert.alert-danger {
  border-color: #e77182;
  background-color: #fdf5f6;
  color: #c72f44;
}

.btn-group-horizontal {
  display: flex;
  gap: 0.5rem;
}

.list-group {
  background-color: white;
  border-radius: var(--radius);
  border: 1px solid var(--lines);
}

.list-group-item {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid var(--lines);
}
.list-group-item:last-child {
  border-bottom: unset;
}

.badge {
  border-radius: var(--radius);
  color: black;
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  border: 1px solid var(--lines);
}

.badge.bg-primary {
  color: white;
  background-color: var(--tele-blue);
  border: unset;
}

.pagination {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

.page-item:not(.disabled) .page-link {
  color: black;
  display: inline-block;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: var(--radius);
  background-color: white;
  border: 1px solid var(--lines);
  outline: 1px solid transparent;
}
.page-item:not(.disabled):hover .page-link,
.page-item:not(.disabled).active .page-link {
  color: black;
  box-shadow: 0 0 5px var(--tele-blue-trans);
  border-color: var(--tele-active-border);
  outline-color: var(--tele-active-border);
}

.page-item.disabled {
  padding: 0.5rem 1rem;
}