/* ===============================
   ECOCLEAN • Design System Base
   =============================== */

/* RESET SUAVE */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0A1B2B; background: #f6f8fb; }

/* PALETA */
:root{
  --eco-bg: #f6f8fb;
  --eco-white: #ffffff;
  --eco-blue: #0B5ED7;         /* azul principal */
  --eco-blue-600: #0A4FAC;     /* azul médio */
  --eco-blue-900: #0A1B2B;     /* azul escuro */
  --eco-line: #E6ECF3;
  --eco-soft: #f1f4f9;
  --eco-ok: #16a34a;
  --eco-warn: #d97706;
  --eco-danger: #dc2626;
}

/* MARCA D'ÁGUA */
.eco-body {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(60% 60% at 110% -10%, rgba(11,94,215,0.10) 0%, rgba(11,94,215,0) 70%),
    radial-gradient(50% 50% at -10% 120%, rgba(10,31,43,0.08) 0%, rgba(10,31,43,0) 70%),
    var(--eco-bg);
}
.eco-body::after {
  content: "ECOCLEAN";
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: block;
  text-align: center;
  margin-top: 18vh;
  font-weight: 800;
  font-size: 16vw;
  letter-spacing: 0.08em;
  color: rgba(10,31,43,0.03); /* água leve */
  transform: scale(1.1);
  z-index: 0;
}

/* LAYOUT */
.eco-main { position: relative; z-index: 1; }
.eco-container { width: min(1200px, 92%); margin: 24px auto 48px; }

/* TÍTULOS */
.eco-page-title {
  margin: 12px 0 18px;
  font-size: 28px;
  font-weight: 800;
  color: var(--eco-blue-900);
}

/* GRID */
.eco-grid { display: grid; gap: 16px; }
.eco-grid--kpi { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* CARDS */
.eco-card {
  background: var(--eco-white);
  border: 1px solid var(--eco-line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 3px 10px rgba(10,27,43,0.05);
}
.eco-card--kpi { padding: 18px 20px; }
.eco-card__title { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--eco-blue-600); }
.eco-card__value { margin-top: 6px; font-size: 34px; font-weight: 800; color: var(--eco-blue-900); line-height: 1.15; }
.eco-card__note { margin-top: 2px; font-size: 12px; color: #5f7286; }

/* AÇÕES RÁPIDAS */
.eco-quick { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* BOTÕES */
.eco-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; font-weight: 600; font-size: 14px;
  box-shadow: 0 2px 6px rgba(11,94,215,0.10);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.eco-btn:hover { transform: translateY(-1px); }
.eco-btn:active { transform: translateY(0); }

.eco-btn--primary {
  background: var(--eco-blue);
  color: #fff;
}
.eco-btn--primary:hover { box-shadow: 0 4px 12px rgba(11,94,215,0.18); }

.eco-btn--ghost {
  background: var(--eco-white);
  border-color: var(--eco-line);
  color: var(--eco-blue-900);
}
.eco-btn--ghost:hover {
  background: var(--eco-soft);
}

/* HEADER (compatível com seu partial) */
.eco-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--eco-line);
}
.eco-header-inner {
  width: min(1200px, 92%); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px;
  align-items: center; min-height: 58px;
}
.eco-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--eco-blue-900); font-weight: 900; letter-spacing: .04em; text-decoration: none; }
.eco-logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--eco-blue); color: #fff; font-weight: 800; }
.eco-brand-text { font-size: 15px; }

.eco-nav { display: none; gap: 8px; }
.eco-nav .eco-nav-link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px;
  color: #2d4053; text-decoration: none; border: 1px solid transparent;
}
.eco-nav .eco-nav-link:hover { background: var(--eco-soft); }
.eco-nav .eco-nav-link.is-active {
  background: #e9f1ff; color: var(--eco-blue); border-color: #d7e7ff;
}

/* Usuário + logout */
.eco-user { display: none; align-items: center; gap: 10px; }
.eco-user-name { font-size: 13px; color: #3b4f65; }

.eco-btn-logout {
  height: 30px; padding: 0 10px; border-radius: 8px;
  border: 1px solid #e6eaf0; background: #fff; cursor: pointer; font-weight: 600;
}
.eco-btn-logout:hover { background: var(--eco-soft); }

/* BURGER + DRAWER (mobile) */
.eco-burger { display: inline-flex; gap: 3px; flex-direction: column; justify-content: center; width: 36px; height: 36px; border: 1px solid #e6eaf0; border-radius: 8px; background: #fff; cursor: pointer; }
.eco-burger span { display: block; height: 2px; width: 18px; background: #23374a; }

.eco-drawer {
  display: none;
  position: fixed; inset: 58px 0 auto 0;
  background: #fff; border-bottom: 1px solid var(--eco-line);
  box-shadow: 0 10px 18px rgba(10,27,43,0.06);
  padding: 10px 12px 12px; z-index: 4;
}
.eco-drawer-link {
  display: block; padding: 12px; border-radius: 10px; text-decoration: none; color: #2d4053;
}
.eco-drawer-link.is-active { background: #e9f1ff; color: var(--eco-blue); }
.eco-drawer-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 2px; margin-top: 6px; border-top: 1px dashed var(--eco-line); }
.eco-drawer-user { font-size: 13px; color: #3b4f65; }
.eco-drawer-logout { text-decoration: none; font-weight: 700; color: var(--eco-danger); }

/* RESPONSIVO */
@media (min-width: 980px){
  .eco-header-inner { grid-template-columns: auto 1fr auto; }
  .eco-burger { display: none; }
  .eco-nav { display: inline-flex; }
  .eco-user { display: inline-flex; }
}
@media (max-width: 979px){
  body.menu-open .eco-drawer { display: block; }
}
