/* css/webprojects.css */
/* Shared styling for standalone WebProjects pages (base64, subnet, etc.) */

:root{
  --bg1:#0b1020;
  --bg2:#05070d;
  --card: rgba(10, 14, 25, 0.72);
  --card2: rgba(10, 14, 25, 0.55);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.52);
  --accent: #3fd1ff;
  --good: #43ffb1;
  --warn: #ffcc66;
  --bad: #ff6b6b;
  --shadow: 0 22px 60px rgba(0,0,0,0.55);
}

body.webproject {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 12% 18%, rgba(70,120,255,0.20), transparent 55%),
    radial-gradient(900px 500px at 72% 30%, rgba(0,255,210,0.12), transparent 60%),
    radial-gradient(900px 700px at 45% 85%, rgba(255,120,0,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.wp-shell{
  width: min(1060px, calc(100% - 32px));
  margin: 46px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wp-titlebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}

.wp-dots{
  display:flex;
  gap: 9px;
  align-items:center;
}
.wp-dot{ width: 12px; height: 12px; border-radius: 50%; opacity:0.9; }
.wp-dot.red{ background:#ff5f57; }
.wp-dot.yellow{ background:#febc2e; }
.wp-dot.green{ background:#28c840; }

.wp-title{
  font-weight: 650;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.85);
}
.wp-actions a{
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.wp-actions a:hover{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

.wp-body{
  padding: 22px;
}

h1{
  margin: 6px 0 8px;
  font-size: 34px;
}
.sub{
  margin: 0 0 18px;
  color: var(--muted);
}

.card{
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  flex: 1 1 260px;
}
label{
  color: var(--muted);
  font-size: 13px;
}
input, select{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  outline: none;
  font-size: 15px;
}
input:focus{
  border-color: rgba(63, 209, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(63, 209, 255, 0.12);
}

.btn{
  cursor:pointer;
  user-select:none;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
}
.btn:hover{ background: rgba(255,255,255,0.09); }
.btn.primary{
  border-color: rgba(63, 209, 255, 0.35);
  background: rgba(63, 209, 255, 0.15);
}
.btn.primary:hover{ background: rgba(63, 209, 255, 0.22); }

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; }
}

.kv{
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
  border-radius: 14px;
  padding: 12px;
}
.kv .k{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.kv .v{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  word-break: break-word;
}

.note{
  margin-top: 12px;
  color: var(--muted2);
  font-size: 13px;
}

.bits{
  margin-top: 16px;
}
.bitbar{
  display:flex;
  height: 18px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
}
.bit-net{ background: rgba(63, 209, 255, 0.28); }
.bit-host{ background: rgba(255,255,255,0.08); }
.bit-legend{
  display:flex;
  gap: 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.badge{
  display:inline-flex;
  gap: 8px;
  align-items:center;
}
.swatch{
  width: 12px; height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.18);
}
.swatch.net{ background: rgba(63, 209, 255, 0.28); }
.swatch.host{ background: rgba(255,255,255,0.08); }

.miniBlocks{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px){
  .miniBlocks{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.block{
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
  border-radius: 14px;
  padding: 10px;
}
.block .t{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.block .mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.35;
}
.status{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.status.good{ color: rgba(67,255,177,0.86); }
.status.warn{ color: rgba(255,204,102,0.90); }
.status.bad{ color: rgba(255,107,107,0.92); }


















/* ============================
   WEB PROJECTS (Window cards)
   Paste at bottom of webprojects.css
   ============================ */

.webapps-intro{
  margin: 6px 0 14px;
  color: rgba(245,245,255,0.78);
  line-height: 1.45;
}

.webapps-cards{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.webapp-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(0,0,0,0.22));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 18px 34px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.webapp-card:hover{
  transform: translateY(-2px);
  background: linear-gradient(to bottom, rgba(255,255,255,0.09), rgba(0,0,0,0.18));
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 22px 42px rgba(0,0,0,0.62),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.webapp-ico{
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(2,6,23,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  font-size:18px;
  flex: 0 0 auto;
}

.webapp-main{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.webapp-title{
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.webapp-sub{
  color: rgba(245,245,255,0.70);
  font-size: 13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.webapp-go{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(2,6,23,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(160,120,255,0.92);
  font-weight:700;
  font-size:13px;
  flex: 0 0 auto;
}

.webapp-card:hover .webapp-go{
  color: rgba(190,160,255,0.95);
  border-color: rgba(255,255,255,0.18);
}

