/* TEMA VISUAL GLOBAL de VITALIS: paleta (verde salvia, beige, terracota) y tipografia Poppins. */
:root {
  --vitalis-sage: #64866f;
  --vitalis-sage-hover: #4d6a55;
  --vitalis-beige: #f7f0e5;
  --vitalis-warm-white: #fffcf7;
  --vitalis-terracotta: #dfa080;
  --vitalis-gray: #6b6868;
  --vitalis-dark: #343b36;
  --vitalis-border: #e6d6c5;
  --vitalis-font: "Poppins", sans-serif;
}

html,
body,
*,
button,
input,
select,
textarea {
  font-family: var(--vitalis-font) !important;
}

html,
body {
  color: var(--vitalis-dark);
  background-color: var(--vitalis-warm-white);
}

h1,
h2,
h3,
h4 {
  font-family: var(--vitalis-font) !important;
  color: var(--vitalis-dark) !important;
}

body:has(.auth-shell) {
  background:
    radial-gradient(circle at 12% 12%, rgba(100, 134, 111, .16), transparent 30%),
    var(--vitalis-warm-white) !important;
}

.home-page,
.auth-card,
.gb-microapp-root {
  color: var(--vitalis-dark) !important;
  background-color: var(--vitalis-warm-white) !important;
}

.gb-microapp-root {
  --primary: var(--vitalis-sage) !important;
  --deep: var(--vitalis-dark) !important;
  --page: var(--vitalis-warm-white) !important;
  --surface: var(--vitalis-warm-white) !important;
  --ink: var(--vitalis-dark) !important;
  --muted: var(--vitalis-gray) !important;
  --line: var(--vitalis-border) !important;
}

.brand,
.brand-copy h1,
.dashboard-brand,
.battery-result,
.history-select,
.notification-trigger,
.back,
.page-back-link {
  color: var(--vitalis-dark) !important;
}

.brand-mark,
.dashboard-brand-mark,
.gb-microapp-root .entry-badge {
  background-color: var(--vitalis-sage) !important;
}

.battery-icon,
.health-dashboard .vital-symbol,
.health-dashboard .demo-badge,
.site-navigation a[aria-current="page"],
.site-navigation .more-menu.has-current .menu-trigger {
  background-color: var(--vitalis-beige);
}

.battery-icon {
  color: var(--vitalis-sage);
}

.site-navigation a[aria-current="page"],
.site-navigation .more-menu.has-current .menu-trigger {
  color: var(--vitalis-sage);
}

.notification-panel,
.notification-trigger,
.notification-item,
.measurement,
.battery-card,
.auth-card,
.gb-microapp-root .metric-card,
.gb-microapp-root .entry-panel,
.gb-microapp-root .camera-loading-copy {
  border-color: var(--vitalis-border) !important;
  background-color: var(--vitalis-warm-white) !important;
}

.notification-controls button,
.button,
.submit-button,
.gb-microapp-root .add-reading,
.gb-microapp-root .save-button,
.range-button[aria-pressed="true"] {
  background-color: var(--vitalis-sage) !important;
  color: #fff !important;
}

.notification-controls button:hover,
.button:hover,
.submit-button:hover,
.gb-microapp-root .add-reading:hover,
.gb-microapp-root .save-button:hover {
  background-color: var(--vitalis-sage-hover) !important;
}

.measurement-label,
.battery-label,
.gb-microapp-root .intro,
.gb-microapp-root .metric-caption,
.gb-microapp-root .reading-date,
.gb-microapp-root .entry-help,
.gb-microapp-root .health-note {
  color: var(--vitalis-gray);
}

.health-dashboard {
  color-scheme: light;
  --surface: var(--vitalis-warm-white);
  --surface-raised: var(--vitalis-warm-white);
  --surface-soft: var(--vitalis-beige);
  --border: var(--vitalis-border);
  --text: var(--vitalis-dark);
  --muted: var(--vitalis-gray);
  --blue: #4a90d9;
  --green: var(--vitalis-sage);
  --heart: #e15b64;
  --oxygen: #4a90d9;
  --temperature: #e4b84d;
  color: var(--vitalis-dark) !important;
  background: var(--vitalis-warm-white) !important;
}

.health-dashboard .health-sidebar,
.health-dashboard .dashboard-topbar {
  background: var(--vitalis-warm-white);
}

.health-dashboard .health-brand,
.health-dashboard .page-intro h1,
.health-dashboard .vital-title,
.health-dashboard .history-heading h2,
.health-dashboard .settings-heading h2 {
  color: var(--vitalis-dark);
  font-family: var(--vitalis-font);
}

.health-dashboard .health-brand-mark {
  background: var(--vitalis-sage);
}

.health-dashboard .vital-card,
.health-dashboard .history-panel,
.health-dashboard .settings-panel {
  border-color: var(--vitalis-border);
  background: var(--vitalis-warm-white);
  box-shadow: 0 3px 12px rgba(52, 59, 54, .06);
}

.health-dashboard .vital-card[data-vital="heart"] .vital-symbol,
.health-dashboard .vital-card[data-vital="heart"] .vital-value {
  color: #e15b64;
}

.health-dashboard .vital-card[data-vital="oxygen"] .vital-symbol,
.health-dashboard .vital-card[data-vital="oxygen"] .vital-value {
  color: #4a90d9;
}

.health-dashboard .vital-card[data-vital="temperature"] .vital-symbol,
.health-dashboard .vital-card[data-vital="temperature"] .vital-value {
  color: #e4b84d;
}

.health-dashboard .vital-symbol {
  background: var(--vitalis-beige);
}

.health-dashboard .vital-unit,
.health-dashboard .vital-meta,
.health-dashboard .vital-meta strong,
.health-dashboard .history-heading p,
.health-dashboard .settings-heading p,
.health-dashboard .legend-item,
.health-dashboard .update-time {
  color: var(--vitalis-gray);
}

/* Mantiene las vistas de VITALIS APP a todo el ancho de la pantalla. */
html,
body {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  overflow-x: clip;
}

.home-page,
.gb-microapp-root,
.health-dashboard {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.gb-microapp-root .content-wrapper,
.home-content {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.health-dashboard .dashboard-main {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
