/* GlowContacts by SWC styles */
:root{
  --bg:#0b0e18;
  --card:#121530;
  --text:#e8ebff;
  --muted:#a8b0d9;
  --accent1:#6ea8ff;
  --accent2:#b06bff;
  --accent3:#28ffe5;
  --ring: rgba(110,168,255,0.6);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #111a3a 0%, #0b0e18 60%) no-repeat fixed;
  overflow-x:hidden;
}

.app-header{
  padding: 48px 24px 8px;
  text-align:center;
}
h1{
  margin:0 0 8px 0;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.5px;
}
.glow{
  display:inline-block;
  position:relative;
  color:#fff;
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(110,168,255,0.35);
}
.tagline{
  margin:0;
  color: var(--muted);
}

.container{
  width:min(1100px, 94%);
  margin: 16px auto 60px;
  display:grid;
  gap:16px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  box-shadow: 0 8px 40px rgba(32,64,196,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  padding:20px;
  position:relative;
}

.uploader{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:12px;
}
#fileInput{ display:none; }
.button{
  appearance:none;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  padding:12px 16px;
  border-radius:12px;
  color: var(--text);
  cursor:pointer;
  transition: transform .04s ease, box-shadow .2s ease, border-color .2s ease;
  font-weight:600;
}
.button:hover{
  border-color: var(--ring);
  box-shadow: 0 0 0 6px rgba(110,168,255,0.15), 0 6px 24px rgba(110,168,255,0.25);
  transform: translateY(-1px);
}
.button.primary{ background: linear-gradient(90deg, rgba(110,168,255,0.25), rgba(176,107,255,0.25)); }
.button.success{ background: linear-gradient(90deg, rgba(40,255,229,0.2), rgba(110,168,255,0.2)); text-decoration:none; }
.button.danger{ background: rgba(255,80,110,0.16); }
.button.ghost{ background: transparent; }

.meta{ margin-top:8px; color: var(--muted); }
.meta.small{ font-size: 12px; }

.stats{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:16px;
  margin-top:8px;
}
.stats.compact{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat{
  background: rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  padding:14px;
}
.stat-num{ font-size:28px; font-weight:800; }
.stat-label{ color: var(--muted); }

.conflict, .multi{
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
  padding:12px;
  margin:10px 0;
  background: rgba(255,255,255,0.02);
}
.conflict h3, .multi h3{ margin:0 0 6px 0; font-size:18px; }
.inline{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.badge{ padding:6px 10px; border-radius:999px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); }
.badge.num{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:center;
  padding:8px 0;
  border-top:1px dashed rgba(255,255,255,0.08);
}
.row:first-child{ border-top:0; }
.choice{ display:flex; align-items:center; gap:8px; }

.bg-orb{
  position:fixed;
  filter: blur(100px);
  opacity:0.6;
  z-index:-1;
}
.orb-1{
  width:380px; height:380px;
  background: radial-gradient(closest-side, rgba(110,168,255,0.45), transparent 70%);
  top:-80px; left:-60px;
}
.orb-2{
  width:460px; height:460px;
  background: radial-gradient(closest-side, rgba(176,107,255,0.35), transparent 70%);
  bottom:-120px; right:-80px;
}

.app-footer{
  text-align:center;
  color: var(--muted);
  padding: 24px 12px 48px;
}

/* tables used in multi contacts */
.table{
  width:100%;
  border-collapse: collapse;
  margin-top:6px;
}
.table th, .table td{
  padding:8px 10px;
  border-top:1px solid rgba(255,255,255,0.08);
  text-align:left;
}
.table th{ color: var(--muted); font-weight:600; }
.checkbox{ transform: translateY(1px); }
