/* People Dashboard — styles.css */
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1000px 520px at 20% -10%, rgba(109,94,252,.24), transparent 55%),
    radial-gradient(900px 520px at 85% -15%, rgba(245,158,11,.16), transparent 55%),
    radial-gradient(900px 520px at 70% 110%, rgba(34,197,94,.10), transparent 55%),
    #05070a;
  color:#e7eef8;
}

/* Layout */
.container{display:flex; height:100vh;}

/* Sidebar */
.sidebar{
  width:280px;
  min-width:280px;
  padding:20px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02) 35%, transparent 70%), rgba(8,10,13,.92);
  border-right:1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap:18px;
  overflow-y:auto;
}
.sidebar-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.avatar{color:rgba(255,255,255,.45)}
.title{margin:0; font-size:22px; font-weight:800; letter-spacing:-.02em}
.sidebar-section{padding:8px 0}
.section-title{
  margin:0 0 10px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:rgba(255,255,255,.45);
}
.stat-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:5px 0;
}
.stat-label{font-size:13px; color:rgba(255,255,255,.6)}
.stat-value{font-size:15px; font-weight:700}
.stat-value.signed{color:#4caf50}
.stat-value.not-signed{color:#ef5350}
.log-container{max-height:200px; overflow-y:auto}
.log-entry{
  margin:0;
  padding:4px 0;
  font-size:11px;
  color:rgba(255,255,255,.4);
  border-bottom:1px solid rgba(255,255,255,.04);
}

/* Main content */
.main-content{
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* Tabs */
.tabs-container{
  display:flex;
  gap:4px;
  padding:12px 18px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.tab{
  padding:10px 20px;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.5);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  border-bottom:2px solid transparent;
  transition: all .15s;
  font-family:inherit;
}
.tab:hover{color:rgba(255,255,255,.8)}
.tab.active{
  color:#e7eef8;
  border-bottom-color:#6d5efc;
}

/* Filter bar */
.filter-bar{
  display:flex;
  gap:8px;
  padding:10px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(0,0,0,.12);
}
.filter-btn{
  padding:5px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:transparent;
  color:rgba(255,255,255,.6);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition: all .15s;
  font-family:inherit;
}
.filter-btn:hover{
  border-color:rgba(255,255,255,.3);
  color:rgba(255,255,255,.85);
}
.filter-btn.active{
  background:rgba(109,94,252,.25);
  border-color:rgba(109,94,252,.5);
  color:#e7eef8;
}
.filter-btn.active[data-filter="signed"]{
  background:rgba(76,175,80,.2);
  border-color:rgba(76,175,80,.5);
  color:#a5d6a7;
}
.filter-btn.active[data-filter="not-signed"]{
  background:rgba(239,83,80,.2);
  border-color:rgba(239,83,80,.5);
  color:#ef9a9a;
}

/* Export bars */
.export-bar, .export-bar-inline{
  display:flex;
  gap:10px;
  padding:10px 18px;
}
.export-bar-inline{padding:10px 0}
.export-btn{
  padding:5px 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.7);
  font-size:12px;
  cursor:pointer;
  transition: all .15s;
  font-family:inherit;
}
.export-btn:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.3);
  color:#e7eef8;
}
.export-icon{font-size:13px}

/* Search bar */
.search-bar{
  position:relative;
  padding:8px 18px;
}
.search-input{
  width:100%;
  padding:10px 14px 10px 36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#e7eef8;
  font-size:13px;
  font-family:inherit;
  outline:none;
  transition: border-color .15s;
}
.search-input:focus{border-color:rgba(109,94,252,.5)}
.search-input::placeholder{color:rgba(255,255,255,.35)}
.search-icon{
  position:absolute;
  left:28px;
  top:50%;
  transform:translateY(-50%);
  font-size:14px;
  opacity:.4;
  pointer-events:none;
}

/* Content area */
.content-area{
  flex:1;
  overflow-y:auto;
  padding:16px 18px;
}
.tab-content{display:none}
.tab-content.active{display:block}

/* Cards container */
.cards-container{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:10px;
}

/* Card */
.card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px 14px;
  background: rgba(255,255,255,.03);
  transition: filter .12s, transform .12s;
}
.card:hover{filter:brightness(1.06); transform:translateY(-1px)}
.card.signed{
  background: linear-gradient(180deg, rgba(76,175,80,.14), rgba(0,0,0,.20));
  border-color: rgba(76,175,80,.30);
  border-left:4px solid #4caf50;
}
.card.not-signed{
  background: linear-gradient(180deg, rgba(239,83,80,.14), rgba(0,0,0,.20));
  border-color: rgba(239,83,80,.30);
  border-left:4px solid #ef5350;
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}
.card-name{
  margin:0;
  font-size:13px;
  font-weight:800;
  line-height:1.25;
}
.card-badge{
  flex-shrink:0;
  padding:2px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  white-space:nowrap;
}
.card-badge.signed{
  background:rgba(76,175,80,.20);
  color:#a5d6a7;
  border:1px solid rgba(76,175,80,.35);
}
.card-badge.not-signed{
  background:rgba(239,83,80,.20);
  color:#ef9a9a;
  border:1px solid rgba(239,83,80,.35);
}

.card-body{
  margin-top:8px;
  display:block;
}
.card-field{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding:2px 0;
}
.card-label{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:rgba(255,255,255,.40);
  flex-shrink:0;
}
.card-value{
  font-size:11px;
  color:rgba(255,255,255,.70);
  text-align:right;
  word-break:break-all;
}
.card-value.usta{font-weight:600; color:rgba(255,255,255,.85)}
.card-value.email{color:rgba(109,94,252,.8)}
.card-divider{
  height:1px;
  background:rgba(255,255,255,.06);
  margin:6px 0;
}
.card-status-line{
  font-size:10px;
  color:rgba(255,255,255,.40);
  font-weight:600;
}

/* Group sections (JTT age groups) */
.group-section{
  margin-bottom:20px;
}
.group-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:10px;
  font-size:15px;
  font-weight:800;
}
.group-counts{
  display:flex;
  gap:12px;
  font-size:12px;
  font-weight:600;
}
.gc-signed{color:#a5d6a7}
.gc-notsigned{color:#ef9a9a}

/* Empty / placeholder states */
.empty-state{
  text-align:center;
  padding:30px 0;
  color:rgba(255,255,255,.35);
}
.empty-state p{margin:0; font-size:13px}
.placeholder{
  text-align:center;
  padding:60px 0;
  color:rgba(255,255,255,.30);
}
.placeholder h2{margin:0 0 8px; font-size:18px; font-weight:700}
.placeholder p{margin:0; font-size:13px}
.loading{
  text-align:center;
  padding:40px 0;
  color:rgba(255,255,255,.4);
  font-size:13px;
}

/* Responsive */
@media(max-width:768px){
  .container{flex-direction:column}
  .sidebar{width:100%; min-width:0; border-right:none; border-bottom:1px solid rgba(255,255,255,.08)}
  .cards-container{grid-template-columns:1fr}
}
