/* ASAP Workshops - dark/silver theme */
:root{
  --bg:#0b0f14;
  --panel:#101826;
  --panel2:#0f1622;
  --text:#e6e8ee;
  --muted:#b2b8c4;
  --line:#243044;
  --accent:#c0c0c0; /* silver */
  --accent2:#8aa4ff;
  --good:#3ddc97;
  --bad:#ff6b6b;
  --warn:#ffcc66;
  --btn:#1b2a41;
  --btn2:#233a5c;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 20% 0%, #101b2e 0%, var(--bg) 50%) fixed;
  color:var(--text);
  font-family:var(--sans);
}

a{color:var(--accent2); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1100px;margin:0 auto;padding:28px 18px}
.header{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:18px;
}
.brand{display:flex;flex-direction:column;gap:4px}
.brand h1{font-size:22px;margin:0;letter-spacing:.3px}
.brand .sub{color:var(--muted);font-size:13px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card .pad{padding:18px}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.col-8{grid-column: span 8}
.col-4{grid-column: span 4}
@media (max-width: 860px){
  .col-8,.col-4{grid-column: span 12}
}

.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:12px;
  border:1px solid var(--line);
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.table th{
  text-align:left;
  color:var(--muted);
  font-weight:600;
  background: rgba(255,255,255,.02);
}
.table tr:last-child td{border-bottom:none}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}
.badge.good{color:var(--good);border-color:rgba(61,220,151,.4)}
.badge.bad{color:var(--bad);border-color:rgba(255,107,107,.4)}
.badge.warn{color:var(--warn);border-color:rgba(255,204,102,.4)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:10px 14px;
  background: linear-gradient(180deg, var(--btn2), var(--btn));
  border:1px solid var(--line);
  color:var(--text);
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{filter:brightness(1.05)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.secondary{
  background: transparent;
  border:1px solid var(--line);
  color:var(--muted);
}
.btn.danger{
  background: linear-gradient(180deg, rgba(255,107,107,.25), rgba(255,107,107,.12));
  border-color: rgba(255,107,107,.35);
}
.btn.small{padding:8px 10px;border-radius:10px;font-weight:600}

.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.field label{font-size:12px;color:var(--muted)}
.field input, .field textarea, .field select{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.2);
  color:var(--text);
  outline:none;
}
.field textarea{min-height:120px;resize:vertical}
.help{color:var(--muted);font-size:12px;line-height:1.4}

.alert{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  background: rgba(255,255,255,.02);
}
.alert.good{border-color:rgba(61,220,151,.4)}
.alert.bad{border-color:rgba(255,107,107,.4)}
.alert.warn{border-color:rgba(255,204,102,.4)}
.alert .title{font-weight:700;margin-bottom:4px}
.footer{
  margin-top:22px;
  color:var(--muted);
  font-size:12px;
}
.mono{font-family:var(--mono);font-size:12px;color:var(--muted)}
.top-actions{display:flex;gap:10px;flex-wrap:wrap}
.kv{display:grid;grid-template-columns: 110px 1fr;gap:8px 12px}
.kv div{padding:2px 0}
.kv .k{color:var(--muted)}
.img{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  overflow:hidden;
  background:#0a0f17;
}
.img img{display:block;width:100%;height:auto}


/* Workshop list (replaces table for better responsiveness) */
.workshop-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.workshop-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}

.workshop-left{
  min-width:0; /* allow wrapping */
  flex:1;
}

.workshop-title{
  font-weight:700;
  margin-bottom:4px;
  line-height:1.25;
}

.workshop-meta{
  font-size:13px;
  opacity:.82;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.workshop-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

@media (max-width: 820px){
  .workshop-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .workshop-right{
    width:100%;
    justify-content:space-between;
  }
  .workshop-meta{
    white-space:normal; /* allow wrap on mobile */
    overflow:visible;
    text-overflow:unset;
  }
  .workshop-right .btn{
    width:auto;
  }
}

.workshop-meta{
  font-size:13px;
  opacity:.85;
  line-height:1.4;
}

.workshop-location{
  font-size:12px;
  opacity:.65;
  line-height:1.4;
}
