:root {
  --color-background: #f3f4f6;
  --color-white: #ffffff;
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
  --color-blue-transparent: rgb(37 99 235 / 0.17);
  --color-green: #16a34a;
  --color-green-hover: #12823b;
  --color-green-transparent: rgb(22 163 74 / 0.17);
  --color-yellow: #ca8a04;
  --color-yellow-hover: #a16207;
  --color-yellow-transparent: rgb(202 138 4 / 0.17);
  --color-red: #b91c1c;
  --color-red-hover: #921616;
  --color-red-transparent: rgb(185 28 28 / 0.17);
  --color-orange: #f97316;
  --color-orange-transparent: rgb(249 115 22 / 0.17);
  --color-gray-50:  #F9FAFB;
  --color-gray-500: #6B7280;
  --color-gray-500-hover: #535964;
  --text-primary: #222831;
  --text-secondary: #39414B;
  --text-muted: #5C6672;
  --border-standard: 1px solid #ccc;
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.15);
  --font-standard: 'Inter', sans-serif;
  --transition: 0.3s ease
}

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

body {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  background: var(--color-background);
  font-family: var(--font-standard);
}

.hidden {
  display: none;
}

.navigation-button {
  display: inline-block;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-blue);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.navigation-button:hover {
  transform: translateY(-2px);
  background: var(--color-blue-hover);
}

.navigation-button i {
  margin-right: 0.5rem;
}

.logout-button {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-red);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.logout-button:hover {
  transform: translateY(-2px);
  background: var(--color-red-hover);
}

.card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.3rem;
  padding: 1.4rem 1.2rem 1.2rem;
  border: var(--border-standard);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.5rem;
  background: linear-gradient(90deg, #e91e63, #40aefd);
}

h1 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-size: 1.4rem;
}

.instructions-text {
  margin: 0.2rem 0 0 0;
  text-align: justify;
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
  font-weight: 200 !important;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-row.horizontal {
  flex-direction: row !important;
  align-items: center;
  gap: 1rem;
}

.form-row label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

input, select {
  padding: 0.8rem;
  border: var(--border-standard);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

input[type="date"] {
  font-family: inherit;
}

input.field-long, select.field-long {
  min-width: 20rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--color-blue);
}

input:read-only {
  background: var(--color-gray-50);
  cursor: default;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  padding: 0;
  font-size: 1rem;
}

.toggle-password:hover {
  color: #333;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox__box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border: var(--border-standard);
  border-radius: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.checkbox__box i {
  transform: scale(0.5);
  color: var(--color-white);
  opacity: 0;
  font-size: 0.7rem;
  transition: var(--transition);
}

.checkbox input:checked + .checkbox__box {
  border-color: var(--color-blue);
  background: var(--color-blue);
}

.checkbox input:checked + .checkbox__box i {
  transform: scale(1);
  opacity: 1;
}

.checkbox:hover .checkbox__box {
  border-color: var(--color-blue);
}

.checkbox__label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.checkbox__label a {
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--transition);
}

.checkbox__label a:hover {
  color: var(--color-blue-hover);
  text-decoration: underline;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.radio:last-child {
  margin-bottom: 0;
}

.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio__button {
  flex-shrink: 0;
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  border: var(--border-standard);
  border-radius: 50%;
  background: var(--color-white);
  transition: var(--transition);
}

.radio__button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-white);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  transition: var(--transition);
}

.radio input:checked + .radio__button {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.radio input:checked + .radio__button::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.radio:hover .radio__button {
  border-color: var(--color-blue);
}

.radio__label {
  font-size: 0.95rem;
}

.field-error {
  border: 1px solid var(--color-red) !important;
}

.field-label-error {
  color: var(--color-red) !important;
}

button:disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.form-large-button {
  margin: 2rem 0;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-blue);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-large-button:hover {
  transform: translateY(-2px);
  background: var(--color-blue-hover);
}

.form-large-button:disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.tooltip-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.3rem;
  border-radius: 50%;
  color: var(--color-blue);
  font-weight: bold;
  cursor: pointer;
}

.tooltip-box {
  position:absolute;
  min-width: 22rem;
  max-width: 30rem;
  padding: 1rem;
  border: var(--border-standard);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
  z-index: 10000;
}

.tooltip-legend-table {
  width: 100%;
  border-collapse: collapse;
  color: black;
  font-size: 0.8em;
}

.tooltip-legend-table th, .tooltip-legend-table td {
  padding: 0.3rem 0.5rem;
  border: var(--border-standard);
  text-align: left;
  vertical-align: top;
}

.tooltip-legend-table thead th {
  border-top: 2px solid var(--color-blue-hover);
  background: #f9f9f9;
  font-weight: 600;
}

.tooltip-legend-range {
  white-space: nowrap;
  font-weight: 600;
}

.tooltip-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.3rem;
  border-radius: 50%;
  vertical-align: middle;
}

.dot-green  { background: #22c55e; }
.dot-yellow { background: #eab308; }
.dot-orange { background: #f97316; }
.dot-red    { background: #ef4444; }

.limited-risolution {
  position: fixed;
  display: none;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: white;
  color: black;
  z-index: 2000;
}

/* laptop 1600–1919px */
@media (min-width: 1600px) and (max-width: 1919px) {

}

/* laptop 1366–1599px */
@media (min-width: 1366px) and (max-width: 1599px) {

}

/* laptop 1280–1365px */
@media (min-width: 1280px) and (max-width: 1365px) {

}

/* tablet */
@media (min-width: 768px) and (max-width: 1279px) and (orientation: portrait) {
  .limited-risolution {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (min-width: 768px) and (max-width: 1279px) and (orientation: landscape) {

}

/* smartphone */
@media (max-width: 767px) and (orientation: portrait) {
  .limited-risolution{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 767px) and (orientation: landscape) {
  .limited-risolution{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (min-width: 768px) and (max-width: 915px) and (max-height: 500px) and (orientation: landscape) {
  .limited-risolution{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}