* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif, Arial, Helvetica;
}

:root {
  --header-height: 52px;
  /*https://colormagic.app/palette/TsszryOWlOzRhmSqYVjD*/
  --verde: #4CAF50;
  --rojo: #f42727;
  --naranja: #e05e0d;
  --azul: #112ed4;
  --azulOscuro: #0c1a27;
  --blanco: #fcfcfd;
  --grisClaro: #eee;
  --gris: #89a1ae;
  --grisOscuro: #3c5b6d;
  --negro: #010101;
}

.borderGreen {
  border-radius: 15px;
  border: var(--verde) solid 3px;
  overflow: hidden;
}

.borderRed {
  border-radius: 15px;
  border: var(--rojo) solid 3px;
  overflow: hidden;
}

.borderBlue {
  border-radius: 15px;
  border: var(--azul) solid 3px;
  overflow: hidden;
}

.borderBlack {
  border-radius: 15px;
  border: var(--negro) solid 3px;
  overflow: hidden;
}

.bold {
  font-weight: bold;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.info,
.success,
.warning,
.error,
.validation {
  border: 1px solid;
  margin: 10px 0px;
  padding: 15px 30px ;
  background-repeat: no-repeat;
  background-position: 10px center;
  border-radius: 5px;
}

.info {
  color: #00529B;
  background-color: #BDE5F8;
}

.success {
  color: #4F8A10;
  background-color: #DFF2BF;
}

.warning {
  color: #9F6000;
  background-color: #FEEFB3;
}

.error {
  color: #D8000C;
  background-color: #FFBABA;
}

.validation {
  color: #D63301;
  background-color: #FFCCBA;
}

.cancelBtn {
  width: auto;
  padding: 10px 18px;
  background-color: var(--rojo);
}

@media screen and (max-width: 600px) {
  .login__psw {
    display: block;
    float: none;
  }

  .cancelBtn {
    width: 100%;
  }
}

/* ─── Shared site footer ─────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 24px;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}

.site-footer__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(76, 175, 80, 0.85);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}

.site-footer__link:hover {
  color: #4CAF50;
}

.site-footer__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  flex-shrink: 0;
}

.site-footer__version {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
  white-space: nowrap;
  margin: 0;
}

/* ─── Site header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(7, 19, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.site-header__user {
  font-size: 0.85rem;
  color: rgba(76, 175, 80, 0.95);
  font-weight: 600;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ─── Theme toggle switch ────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.theme-toggle input {
  display: none;
}

.theme-toggle__track {
  position: relative;
  width: 42px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.25s;
}

.theme-toggle input:checked + .theme-toggle__track {
  background: rgba(76, 175, 80, 0.5);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.theme-toggle input:checked + .theme-toggle__track .theme-toggle__thumb {
  transform: translateX(20px);
}

.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

/* ─── Language button ────────────────────────────────────── */
.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ─── Light theme ────────────────────────────────────────── */
[data-theme="light"] body {
  background: radial-gradient(ellipse at top left, #c8f5cb 0%, #d6eaf8 50%, #cdd9f5 100%);
  color: #0a1628;
}

[data-theme="light"] .site-header {
  background: rgba(15, 40, 90, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .site-header__title {
  color: #ffffff;
}

[data-theme="light"] .site-header__user {
  color: #4ade80;
}

[data-theme="light"] .lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

[data-theme="light"] .lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .theme-toggle__track {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .site-footer {
  background: rgba(15, 40, 90, 0.9);
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .site-footer__link {
  color: #4ade80;
}

[data-theme="light"] .site-footer__version {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .bg__orb--1 { opacity: 0.35; }
[data-theme="light"] .bg__orb--2 { opacity: 0.25; }

/* Dashboard light overrides */
[data-theme="light"] .dashboard__dataContainer,
[data-theme="light"] .dashboard__dataContainerNoMax {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 40, 90, 0.15);
}

[data-theme="light"] .dashboard__main h2,
[data-theme="light"] .dashboard__components h2,
[data-theme="light"] .cabecera { color: #0a1628; }

[data-theme="light"] .dashboard__data > p,
[data-theme="light"] .dashboard__dataText p { color: rgba(10, 22, 40, 0.75); }

[data-theme="light"] .dashboard__dataText .bold { color: #0a1628; }

[data-theme="light"] .dashboard__dataText code {
  background: rgba(15, 40, 90, 0.12);
  color: #0a6640;
  border-color: rgba(15, 40, 90, 0.2);
}

[data-theme="light"] .grid-item {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(15, 40, 90, 0.15) !important;
  color: #0a1628;
}

[data-theme="light"] .grid-item p,
[data-theme="light"] .grid-item p:first-child,
[data-theme="light"] .grid-item > p:first-child {
  color: #0a1628;
  border-bottom-color: rgba(15, 40, 90, 0.12);
}

[data-theme="light"] .grid-item h2 { color: #0a1628; }

[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="password"],
[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 40, 90, 0.2);
  color: #0a1628;
}

/* Login light overrides */
[data-theme="light"] .login__title { color: #0a1628; }

[data-theme="light"] .login__titleContainer > p { color: rgba(10, 22, 40, 0.65); }

[data-theme="light"] .login__form {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 40, 90, 0.15);
}

[data-theme="light"] .container label.bold { color: rgba(10, 22, 40, 0.75); }

[data-theme="light"] .inputText {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 40, 90, 0.2);
  color: #0a1628;
}

[data-theme="light"] .inputText::placeholder { color: rgba(10, 22, 40, 0.35); }

[data-theme="light"] .login__msgBoxContainer {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(15, 40, 90, 0.12);
}

[data-theme="light"] .login__msgBoxContainer p { color: rgba(10, 22, 40, 0.65); }