/* WP My Account Dashboard - Frontend
   Lakewood Chamber-inspired: clean cards, soft borders, blue accents, readable spacing.
*/
:root{
  --wpmad-bg:#f6f8fb;
  --wpmad-card:#ffffff;
  --wpmad-text:#1f2937;
  --wpmad-muted:#6b7280;
  --wpmad-border:#e5e7eb;
  --wpmad-blue:#1f6feb;
  --wpmad-blue2:#0b5bd3;
  --wpmad-success:#0f7b3a;
  --wpmad-danger:#b42318;
  --wpmad-shadow: 0 8px 24px rgba(16,24,40,.08);
  --wpmad-radius:14px;
}

#wpmad-shell, .wpmad-app{ box-sizing:border-box; }
.wpmad-shell * , .wpmad-app * { box-sizing: border-box; }

.wpmad-shell{
  width:100%;
  padding: 24px 12px;
  display:flex;
  justify-content:center;
  background: var(--wpmad-bg);
  margin-top: 25px;
}

.wpmad-card{
  background: var(--wpmad-card);
  border: 1px solid var(--wpmad-border);
  border-radius: var(--wpmad-radius);
  box-shadow: var(--wpmad-shadow);
}

.wpmad-auth-card{
  width: min(520px, 100%);
  padding: 18px;
}

.wpmad-brand{
  display:flex;
  justify-content:center;
  padding: 10px 0 18px;
}

.wpmad-brand-logo{
  max-height: 64px;
  max-width: 220px;
  object-fit: contain;
}

.wpmad-brand-name{
  font-weight:800;
  color: var(--wpmad-text);
  font-size: 20px;
  letter-spacing:.2px;
}

.wpmad-header{ text-align:center; padding: 2px 8px 10px; }
.wpmad-title{ margin:0; font-size: 22px; color: var(--wpmad-text); }
.wpmad-subtitle{ margin: 6px 0 0; color: var(--wpmad-muted); font-size: 14px; line-height: 1.4; }

.wpmad-form{ display:flex; flex-direction:column; gap: 12px; padding: 10px 6px 6px; }
.wpmad-field span{ display:block; font-size: 13px; color: var(--wpmad-muted); margin-bottom: 6px; }
.wpmad-field input{
  width:100%;
  border: 1px solid var(--wpmad-border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  outline:none;
  background:#fff;
}
.wpmad-field input:focus{ border-color: rgba(31,111,235,.6); box-shadow: 0 0 0 4px rgba(31,111,235,.12); }
.wpmad-help{ display:block; margin-top:6px; color: var(--wpmad-muted); font-size: 12px; }

.wpmad-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width:520px){ .wpmad-row{ grid-template-columns: 1fr; } }

.wpmad-check{ display:flex; align-items:center; gap: 8px; font-size: 14px; color: var(--wpmad-text); }

.wpmad-btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  font-weight: 700;
  font-size: 15px;
}
.wpmad-btn-primary{ background: var(--wpmad-blue); color:#fff; }
.wpmad-btn-primary:hover{ background: var(--wpmad-blue2); }
.wpmad-actions{ padding: 10px 6px; display:flex; justify-content:center; }

.wpmad-links{ display:flex; justify-content:space-between; gap: 10px; padding-top: 6px; }
.wpmad-link{ color: var(--wpmad-blue); text-decoration:none; font-weight:600; font-size: 13px; }
.wpmad-link:hover{ text-decoration:underline; }

.wpmad-alert{
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
}
.wpmad-alert-error{ background: rgba(180,35,24,.08); border: 1px solid rgba(180,35,24,.25); color: var(--wpmad-danger); }
.wpmad-alert-success{ background: rgba(15,123,58,.10); border: 1px solid rgba(15,123,58,.25); color: var(--wpmad-success); }

/* App layout (dashboard/account) */
.wpmad-app{
  width:100%;
  background: var(--wpmad-bg);
  margin-top: 25px;
  padding: 16px 12px 26px;
  border-radius: var(--wpmad-radius);
}

.wpmad-topbar{
  width: min(1100px, 100%);
  margin: 0 auto 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.wpmad-top-logo{ max-height: 44px; max-width: 220px; object-fit: contain; }
.wpmad-top-name{ font-weight: 900; color: var(--wpmad-text); font-size: 18px; }
.wpmad-toplink{ color: var(--wpmad-blue); text-decoration:none; font-weight: 700; }
.wpmad-toplink:hover{ text-decoration: underline; }

.wpmad-layout{
  width: min(1100px, 100%);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}
@media (max-width:980px){ .wpmad-layout{ grid-template-columns: 1fr; } }

.wpmad-side{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.wpmad-side-card{
  background: var(--wpmad-card);
  border: 1px solid var(--wpmad-border);
  border-radius: var(--wpmad-radius);
  padding: 14px;
  display:flex;
  gap: 12px;
  align-items:center;
}
.wpmad-avatar{
  width: 44px; height:44px;
  border-radius: 14px;
  background: rgba(31,111,235,.12);
  color: var(--wpmad-blue);
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
}
.wpmad-username{ font-weight: 900; color: var(--wpmad-text); }
.wpmad-useremail{ color: var(--wpmad-muted); font-size: 13px; margin-top: 2px; }

.wpmad-nav{
  background: var(--wpmad-card);
  border: 1px solid var(--wpmad-border);
  border-radius: var(--wpmad-radius);
  padding: 8px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.wpmad-navlink{
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--wpmad-text);
  font-weight: 700;
  border: 1px solid transparent;
}
.wpmad-navlink:hover{ background: rgba(31,111,235,.06); border-color: rgba(31,111,235,.12); }
.wpmad-navlink.is-active{ background: rgba(31,111,235,.10); border-color: rgba(31,111,235,.18); color: var(--wpmad-blue2); }

.wpmad-side-section{
  background: var(--wpmad-card);
  border: 1px solid var(--wpmad-border);
  border-radius: var(--wpmad-radius);
  padding: 10px;
}
.wpmad-side-title{ font-weight: 900; margin: 2px 4px 8px; color: var(--wpmad-muted); font-size: 12px; text-transform:uppercase; letter-spacing:.08em; }
.wpmad-sidemodule{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--wpmad-text);
  border:1px solid transparent;
  font-weight: 700;
}
.wpmad-sidemodule:hover{ background: rgba(31,111,235,.06); border-color: rgba(31,111,235,.12); }
.wpmad-sidemodule.is-active{ background: rgba(31,111,235,.10); border-color: rgba(31,111,235,.18); color: var(--wpmad-blue2); }

.wpmad-main{ display:flex; flex-direction:column; gap: 12px; }
.wpmad-pagehead{
  background: var(--wpmad-card);
  border: 1px solid var(--wpmad-border);
  border-radius: var(--wpmad-radius);
  padding: 14px 16px;
}
.wpmad-pagehead h2{ margin:0; color: var(--wpmad-text); font-size: 20px; }
.wpmad-pagehead p{ margin:6px 0 0; color: var(--wpmad-muted); }

.wpmad-grid{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
@media (max-width:980px){ .wpmad-grid{ grid-template-columns: 1fr; } }

.wpmad-card-pad{ padding: 16px; }
.wpmad-card-title{ margin: 0 0 12px; font-size: 16px; color: var(--wpmad-text); font-weight: 900; }

.wpmad-list{ display:flex; flex-direction:column; gap: 8px; }
.wpmad-list-item{
  background: #fff;
  border: 1px solid var(--wpmad-border);
  border-radius: 12px;
  padding: 10px 12px;
  text-decoration:none;
  color: var(--wpmad-text);
  font-weight: 700;
}
.wpmad-list-item:hover{ border-color: rgba(31,111,235,.35); box-shadow: 0 8px 24px rgba(16,24,40,.06); }

.wpmad-note{ color: var(--wpmad-muted); font-size: 12px; margin: 10px 0 0; }

.wpmad-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width:980px){ .wpmad-cards{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:640px){ .wpmad-cards{ grid-template-columns: 1fr; } }

.wpmad-module-card{
  display:block;
  text-decoration:none;
  color: var(--wpmad-text);
  background: var(--wpmad-card);
  border: 1px solid var(--wpmad-border);
  border-radius: var(--wpmad-radius);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.wpmad-module-card:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,235,.35);
  box-shadow: 0 14px 30px rgba(16,24,40,.08);
}
.wpmad-module-top{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.wpmad-module-title{ font-weight: 900; font-size: 15px; }
.wpmad-module-pill{
  font-size: 12px;
  font-weight: 900;
  color: var(--wpmad-blue2);
  background: rgba(31,111,235,.10);
  border: 1px solid rgba(31,111,235,.18);
  border-radius: 999px;
  padding: 6px 10px;
}
.wpmad-module-desc{ color: var(--wpmad-muted); font-size: 13px; margin-top: 8px; line-height: 1.35; }

.wpmad-divider{ height:1px; background: var(--wpmad-border); margin: 14px 0; }
.wpmad-small{ color: var(--wpmad-muted); font-size: 13px; line-height: 1.6; }

.wpmad-kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width:900px){ .wpmad-kpi-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:520px){ .wpmad-kpi-grid{ grid-template-columns: 1fr; } }

.wpmad-kpi{
  border: 1px solid var(--wpmad-border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.wpmad-kpi-label{ color: var(--wpmad-muted); font-size: 12px; text-transform:uppercase; letter-spacing:.08em; font-weight:900; }
.wpmad-kpi-value{ margin-top: 6px; font-size: 18px; font-weight: 900; color: var(--wpmad-text); }


/* [login-myaccount] menu link */
.wpmad-login-myaccount-link{
  font-size: 16px;
  color: #ffffff !important;
  text-decoration: none;
}
.wpmad-login-myaccount-link:hover{
  color: #FFCC00 !important;
}

/* Login CAPTCHA */
.wpmad-captcha-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:6px;
}
.wpmad-captcha-img{
  display:block;
  max-width:190px;
  height:auto;
  border:1px solid rgba(0,0,0,.12);
  border-radius:6px;
}

/* =========================================================
   FULLSCREEN / FULL-WIDTH DASHBOARD OVERRIDES
   - Forces the dashboard to span the full viewport width
     even when rendered inside a theme "container".
   - Leaves all PHP/templates/modules unchanged.
   ========================================================= */

.wpmad-app{
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
}

.wpmad-topbar,
.wpmad-layout{
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

