/**
 * Gestmod — identidad de marca (logo, paleta, acentos)
 * Colores extraídos de res/logo.png y res/favicon.png
 */
:root {
  --gm-brand: #00a0b0;
  --gm-brand-hover: #007d8c;
  --gm-brand-soft: rgba(0, 160, 176, 0.12);
  --gm-brand-soft-bg: rgba(0, 160, 176, 0.08);
  --gm-brand-border: rgba(0, 160, 176, 0.28);
  --gm-brand-rgb: 0, 160, 176;
  --gm-accent: #00c9a7;
  --gm-accent-hover: #00a88c;
  --gm-accent-soft: rgba(0, 201, 167, 0.14);
  --gm-accent-rgb: 0, 201, 167;
  --gm-navy: #141d27;
  --gm-navy-dark: #0c1116;
  --gm-surface: #f7f8fc;
  --gm-surface-elevated: #ffffff;
}

body.gestmod-app .sidebar {
  background: linear-gradient(180deg, var(--gm-navy) 0%, var(--gm-navy-dark) 100%) !important;
}

body.gestmod-app .gestmod-mobile-bar {
  background: var(--gm-navy) !important;
}

.gestmod-login-wrap {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(0, 160, 176, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 100%, rgba(0, 201, 167, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #f7f8fc 0%, #ffffff 45%, #f3fbf9 100%) !important;
}

.gestmod-login-wrap .gestmod-login-tagline {
  color: var(--gm-navy);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.gestmod-login-wrap .gestmod-login-brand img {
  max-width: min(220px, 72vw);
  width: 220px;
  height: auto;
}

@media (max-width: 575px) {
  .gestmod-login-wrap .gestmod-login-brand img {
    width: 150px;
    max-width: 58vw;
  }
}

.gestmod-dash-hero {
  border-left-color: var(--gm-brand) !important;
}

.gestmod-dash-section-icon {
  background: var(--gm-brand-soft) !important;
  color: var(--gm-brand) !important;
}

.btn-primary,
.sidebar .nav-item[data-module=dashboard] > .nav-link:hover,
.sidebar .nav-item[data-module=dashboard].active > .nav-link {
  background-color: var(--gm-brand) !important;
  border-color: var(--gm-brand) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gm-brand-hover) !important;
  border-color: var(--gm-brand-hover) !important;
}

.gestmod-login-submit.btn-primary {
  background: linear-gradient(135deg, var(--gm-brand), var(--gm-accent)) !important;
  border: none;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 160, 176, 0.28);
}

.gestmod-login-submit.btn-primary:hover {
  background: linear-gradient(135deg, var(--gm-brand-hover), var(--gm-accent-hover)) !important;
  box-shadow: 0 14px 28px rgba(0, 160, 176, 0.34);
}

body.gestmod-app .sidebar .sidebar-head .logo a {
  background: #fff;
  box-shadow: none;
}

.gm-pwa-update {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  background: #141d27;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 29, 39, 0.28);
}

.gm-pwa-update img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gm-pwa-update__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gm-pwa-update__text strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.gm-pwa-update__text span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.gm-pwa-update__btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #00a0b0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.gm-pwa-update__btn:hover,
.gm-pwa-update__btn:focus {
  background: #007d8c;
}

.gm-pwa-update__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
