:root{
  --bg:#0a0a0a;
  --cardA: rgba(255,255,255,.08);
  --cardB: rgba(255,255,255,.03);
  --line: rgba(255,255,255,.14);
  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.55);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --accent:#8f95ff;
  --danger:#ff6b6b;
  --ok:#22c55e;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    
    
    var(--bg);
  color: var(--txt);
}

/* ===== Basic page layout ===== */
.wrap{max-width:1180px;margin:0 auto;padding:0 16px 44px}
header{margin-top:40px;margin-bottom:14px;text-align:center}
h1{
  margin:0;
  font-size:30px;
  letter-spacing:-1px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.62));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  font-weight:800;
}
header p{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.35}

.card{
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--cardA), var(--cardB));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.center{max-width:560px;margin:18px auto 0}

label{display:block;font-size:12px;color:var(--muted);margin:10px 0 6px}
input[type="text"], input[type="date"], input[type="password"], select, textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: var(--txt);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(143,149,255,.5);
  box-shadow: 0 0 0 4px rgba(143,149,255,.10);
}

.btn{
  appearance:none;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  color: var(--txt);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:600;
  user-select:none;
  text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;
}
.btn:hover{border-color:rgba(255,255,255,.24)}
.btn.primary{
  border-color: rgba(143,149,255,.45);
  background: linear-gradient(180deg, rgba(143,149,255,.22), rgba(255,255,255,.04));
}
.btn.danger{
  border-color: rgba(255,107,107,.42);
  background: linear-gradient(180deg, rgba(255,107,107,.18), rgba(255,255,255,.04));
}

.hint{margin-top:12px;font-size:12px;color:var(--muted2);line-height:1.35}
.err{
  margin-top:10px;
  color: rgba(255,255,255,.92);
  background: rgba(255,107,107,.12);
  border: 1px solid rgba(255,107,107,.25);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.ok{
  margin-top:10px;
  color: rgba(255,255,255,.92);
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.small{font-size:12px;color:var(--muted2)}

/* ===== App shell with sidebar ===== */
.app-shell{
  min-height:100vh;
  display:flex;
  width:100%;
}

.sidebar{
  width:280px;
  flex:0 0 280px;
  border-right:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  position:sticky;
  top:0;
  height:100vh;
  padding:14px;
  overflow:auto;
}

.sidebar .logo{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 10px 6px;
}
.sidebar .logo img{
  width:170px;
  height:auto;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.35));
}

.userbox{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  border-radius: 16px;
  padding:12px;
}
.userbox .line1{font-size:12px;color:rgba(255,255,255,.84)}
.userbox .line2{margin-top:6px;font-size:12px;color:var(--muted)}
.userbox b{color:rgba(255,255,255,.95)}

.navlist{
  margin-top:12px;
  display:grid;
  gap:8px;
}
.navitem{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.86);
  text-decoration:none;
  font-size:13px;
  font-weight:650;
}
.navitem:hover{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.05);
}
.navitem.active{
  border-color: rgba(143,149,255,.52);
  background: rgba(143,149,255,.14);
  color: rgba(255,255,255,.95);
}
.navitem .dot{
  width:9px;height:9px;border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
}
.navitem.active .dot{
  border-color: rgba(143,149,255,.8);
  background: rgba(143,149,255,.75);
}

.main{
  flex:1;
  padding:18px 18px 44px;
}

.main-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  max-width:1180px;
  margin:0 auto 12px;
}
.main-title{
  display:flex;flex-direction:column;gap:6px;
}
.main-title h2{
  margin:0;
  font-size:18px;
  letter-spacing:-.4px;
  color: rgba(255,255,255,.94);
}
.main-title p{
  margin:0;
  color: var(--muted);
  font-size:12px;
  line-height:1.35;
}

.main-content{
  max-width:1180px;
  margin:0 auto;
}

/* mobile sidebar */
.mobilebar{
  display:none;
}
@media (max-width:960px){
  .sidebar{
    position:fixed;
    left:-300px;
    top:0;
    height:100vh;
    z-index:9999;
    transition:left .18s ease;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.95);
  }
  .sidebar.open{ left:0; }
  .mobilebar{
    display:flex;
    gap:10px;
    align-items:center;
  }
  .overlay{
    display:none;
    position:fixed;
    inset:0;
    background: rgba(0,0,0,.95);
    z-index:9998;
  }
  .overlay.show{ display:block; }
}


/* ===== Existing panel components ===== */
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:560px){.row{grid-template-columns:1fr}}

.grid{
  display: grid;
  grid-template-columns: 1fr;   /* 1 coluna */
  gap: 14px;
}
.grid > section{
  width: 100%;
}


.list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--muted);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.chip.active{
  color: var(--txt);
  border-color: rgba(143,149,255,.5);
  background: rgba(143,149,255,.18);
}

.client{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  padding: 14px;
  margin-bottom: 12px;
}
.client-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.name{font-weight:800;letter-spacing:-.3px;font-size:14px;color:rgba(255,255,255,.95)}
.meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:6px}
.badge{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.ok{
  border-color: rgba(143,149,255,.55);
  background: rgba(143,149,255,.14);
  color: rgba(255,255,255,.92);
}
.progress{
  margin-top:10px;border:1px solid rgba(255,255,255,.12);
  border-radius:999px;overflow:hidden;height:10px;background:rgba(255,255,255,.06)
}
.bar{height:100%;width:0%;background: linear-gradient(90deg, rgba(143,149,255,.72), rgba(255,255,255,.45))}

details{margin-top:12px;border-top:1px solid rgba(255,255,255,.10);padding-top:10px}
summary{cursor:pointer;user-select:none;color:rgba(255,255,255,.88);font-weight:700;list-style:none}
summary::-webkit-details-marker{display:none}

.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
@media (max-width:860px){.edit-grid{grid-template-columns:1fr}}
.steps{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
@media (max-width:640px){.steps{grid-template-columns:1fr}}

.step{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  padding:10px;
  display:flex;gap:10px;align-items:flex-start
}
.step input[type="checkbox"]{width:18px;height:18px;accent-color: var(--accent);margin-top:2px;cursor:pointer}
.step .txt{flex:1;display:flex;flex-direction:column;gap:6px}
.step .txt b{font-size:13px;letter-spacing:-.2px;color:rgba(255,255,255,.92)}
.step .txt small{font-size:12px;color:var(--muted2);line-height:1.25}

/* Admin table */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.20);
}
.table th, .table td{
  padding:12px 10px;
  font-size:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top;
}
.table th{color:rgba(255,255,255,.82);text-align:left;background: rgba(255,255,255,.04)}
.table tr:last-child td{border-bottom:none}
