/* ====== Movlan unified green header — 2026 modern design ====== */
:root {
  --mvh-primary: #28a745;
  --mvh-primary-dark: #218838;
  --mvh-primary-deep: #1a6b2c;
  --mvh-white: #fff;
  --mvh-alert-yellow: #ffdd57;
  --mvh-max-w: 900px;
  --mvh-radius: 14px;
  --mvh-shadow: 0 6px 24px rgba(13, 46, 19, 0.18);
  --mvh-shadow-hover: 0 10px 30px rgba(13, 46, 19, 0.28);
}

.mvh-header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: var(--mvh-max-w);
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--mvh-primary) 0%, var(--mvh-primary-dark) 60%, var(--mvh-primary-deep) 100%);
  padding: 18px 20px;
  min-height: 92px;
  border-radius: var(--mvh-radius);
  box-shadow: var(--mvh-shadow);
  overflow: hidden;
}

.mvh-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.mvh-header-left {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
  min-width: 0;
}

.mvh-seller-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mvh-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.mvh-user-name {
  font-size: 1.05rem;
  color: var(--mvh-white);
  opacity: 0.92;
  margin-top: 3px;
  font-weight: 500;
  line-height: 1.2;
}

.mvh-account-type {
  font-size: 1.15rem;
  color: var(--mvh-white);
  opacity: 0.88;
  margin-top: 5px;
  font-weight: 600;
  line-height: 1.2;
}

.mvh-account-type.unverified {
  color: var(--mvh-alert-yellow);
  font-weight: 700;
  opacity: 1;
}

.mvh-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--mvh-white);
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mvh-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  grid-column: 3;
  z-index: 1;
}

.mvh-btn {
  background: var(--mvh-white);
  color: var(--mvh-primary);
  border: 1px solid rgba(33, 136, 56, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  line-height: 1.3;
}

.mvh-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: var(--mvh-shadow-hover);
}

.mvh-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--mvh-white);
}

.mvh-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mvh-btn.is-loading {
  cursor: wait;
  opacity: 0.7;
}

.mvh-hidden {
  display: none !important;
}

#welcome {
  transition: opacity 0.5s ease;
}

#welcome.fade-out {
  opacity: 0;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .mvh-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    padding: 14px 12px;
    min-height: auto;
    gap: 8px;
  }

  .mvh-header-left {
    grid-column: 1;
    align-items: center;
    text-align: center;
  }

  .mvh-title {
    position: static;
    transform: none;
    font-size: 1.4rem;
  }

  .mvh-header-actions {
    grid-column: 1;
    justify-content: center;
    flex-wrap: wrap;
  }

  .mvh-seller-name {
    font-size: 1.25rem;
  }

  .mvh-account-type {
    font-size: 1rem;
  }
}

/* ====== Backward compatibility aliases ====== */
/* Pages still using old class names get the same styles */
.dashboard-header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: var(--mvh-max-w);
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--mvh-primary) 0%, var(--mvh-primary-dark) 60%, var(--mvh-primary-deep) 100%);
  padding: 18px 20px;
  min-height: 92px;
  border-radius: var(--mvh-radius);
  box-shadow: var(--mvh-shadow);
  overflow: hidden;
}

.dashboard-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.dashboard-header-left {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
  min-width: 0;
}

.seller-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mvh-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.user-name {
  font-size: 1.05rem;
  color: var(--mvh-white);
  opacity: 0.92;
  margin-top: 3px;
  font-weight: 500;
  line-height: 1.2;
}

.account-type {
  font-size: 1.15rem;
  color: var(--mvh-white);
  opacity: 0.88;
  margin-top: 5px;
  font-weight: 600;
  line-height: 1.2;
}

.account-type.unverified {
  color: var(--mvh-alert-yellow);
  font-weight: 700;
  opacity: 1;
}

.dashboard-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--mvh-white);
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dashboard-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  grid-column: 3;
  z-index: 1;
}

.logout-btn {
  grid-column: 3;
  justify-self: end;
  z-index: 1;
  background: var(--mvh-white);
  color: var(--mvh-primary);
  border: 1px solid rgba(33, 136, 56, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  line-height: 1.3;
}

.logout-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: var(--mvh-shadow-hover);
}

#btn-info-perso {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--mvh-white);
}

#btn-info-perso.is-loading {
  cursor: wait;
}

#seller-name.hidden,
#user-name.hidden,
#account-type.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .dashboard-header-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    padding: 14px 12px;
    min-height: auto;
    gap: 8px;
  }

  .dashboard-header-left {
    grid-column: 1;
    align-items: center;
    text-align: center;
  }

  .dashboard-title {
    position: static;
    transform: none;
    font-size: 1.4rem;
  }

  .dashboard-header-actions {
    grid-column: 1;
    justify-content: center;
    flex-wrap: wrap;
  }

  .seller-name {
    font-size: 1.25rem;
  }

  .account-type {
    font-size: 1rem;
  }
}

/* ====== Hardened overrides — prevent base.css conflicts ====== */
/* Ensure header background, text colors, and button styles are never overridden */
.dashboard-header-inner,
.mvh-header {
  background: linear-gradient(135deg, var(--mvh-primary) 0%, var(--mvh-primary-dark) 60%, var(--mvh-primary-deep) 100%) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: var(--mvh-white) !important;
}

.dashboard-header-inner .seller-name,
.dashboard-header-inner .user-name,
.dashboard-header-inner .account-type,
.dashboard-header-inner .dashboard-title,
.mvh-header .mvh-seller-name,
.mvh-header .mvh-user-name,
.mvh-header .mvh-account-type,
.mvh-header .mvh-title {
  color: var(--mvh-white) !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.dashboard-header-inner .account-type.unverified,
.mvh-header .mvh-account-type.unverified {
  color: var(--mvh-alert-yellow) !important;
}

.dashboard-header-inner .logout-btn,
.mvh-header .mvh-btn {
  color: var(--mvh-primary) !important;
  background: var(--mvh-white) !important;
  min-width: auto !important;
  min-height: auto !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.dashboard-header-inner #btn-info-perso,
.mvh-header .mvh-btn-secondary {
  color: var(--mvh-white) !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.dashboard-header-inner .dashboard-title {
  font-size: 1.85rem !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .dashboard-header-inner .dashboard-title,
  .mvh-header .mvh-title {
    font-size: 1.4rem !important;
    white-space: normal !important;
  }
}
.movlan-logo-amenagement {
  display: none !important;
}

html.movlan-amenagement-context .movlan-logo-standard {
  display: none !important;
}

html.movlan-amenagement-context .movlan-logo-amenagement {
  display: block !important;
}
