/* Virtual Boardroom — minimal, crisp, cPanel-friendly */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --blue: #2b7cff;
  --red: #ff4d4d;
  --green: #27d98a;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(43,124,255,0.22), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(39,217,138,0.14), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,18,32,0.55);
}

.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43,124,255,0.9), rgba(39,217,138,0.7));
  box-shadow: var(--shadow);
  font-weight:800;
}
.title{ font-weight:800; letter-spacing:0.2px; }
.subtitle{ font-size: 12px; color: var(--muted); margin-top:2px; }

.layout{
  display:grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 14px;
  padding: 14px;
  max-width: 1400px;
  margin: 0 auto;
}

.boardroom{
  min-height: calc(100vh - 74px);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tile{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  min-height: 210px;
}

.tile-head{
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.who .name{ font-weight:800; font-size: 14px; letter-spacing:0.4px; }
.who .role{ font-size:12px; color: var(--muted); margin-top:2px; }

.avatar{
  padding: 12px;
  display:grid;
  place-items:center;
  height: 150px;
}
.avatar img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.tile-foot{
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.status-pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
}

.mute-btn{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: transform .08s ease, background .12s ease, opacity .12s ease;
  opacity: 0.55;            /* default: non-active speaker UI */
  pointer-events: none;     /* enabled only while persona is speaking (as per requirement) */
}
.mute-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.06); }

.mute-btn.active{
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(43,124,255,0.55);
  box-shadow: 0 0 0 4px rgba(43,124,255,0.12);
}
.mute-btn.muted{
  border-color: rgba(255,77,77,0.55);
  box-shadow: 0 0 0 4px rgba(255,77,77,0.10);
  color: rgba(255,255,255,0.9);
}
.mute-btn.muted i{ color: rgba(255,255,255,0.9); }

.tile.active{
  border-color: rgba(43,124,255,0.9);
  box-shadow: 0 0 0 4px rgba(43,124,255,0.14), var(--shadow);
}
.tile.active::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(120deg,
    rgba(43,124,255,0.0),
    rgba(43,124,255,0.7),
    rgba(255,255,255,0.20),
    rgba(43,124,255,0.7),
    rgba(43,124,255,0.0)
  );
  filter: blur(10px);
  opacity: 0.65;
  animation: shimmer 1.4s linear infinite;
  pointer-events:none;
}
@keyframes shimmer{
  0%{ transform: translateX(-30%); }
  100%{ transform: translateX(30%); }
}

.tile.muted .status-pill{
  border-color: rgba(255,77,77,0.35);
  color: rgba(255,255,255,0.82);
}
.tile.muted .status-pill::before{
  content:"Muted · ";
  color: rgba(255,77,77,0.95);
}

.panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: calc(100vh - 74px);
}

.panel-head{
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.panel-title{ font-weight:800; }
.panel-hint{ margin-top:4px; font-size:12px; color: var(--muted); }

.transcript{
  flex: 1;
  padding: 12px 12px 0 12px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.bubble{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 10px 10px 10px;
  background: rgba(0,0,0,0.22);
  max-width: 100%;
}
.bubble .meta{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:center;
  margin-bottom:6px;
}
.bubble .speaker{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
}
.bubble .time{
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.bubble .text{
  white-space: pre-wrap;
  line-height: 1.35;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}

.bubble.user{
  border-color: rgba(39,217,138,0.32);
  background: rgba(39,217,138,0.10);
}
.bubble.user .speaker{ color: rgba(39,217,138,0.95); }

.composer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  background: rgba(255,255,255,0.03);
}
.input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  padding: 10px 10px;
  resize: vertical;
  outline: none;
}
.input:focus{
  border-color: rgba(43,124,255,0.65);
  box-shadow: 0 0 0 4px rgba(43,124,255,0.12);
}

.composer-actions{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}

.btn{
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, opacity .12s ease;
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:center;
  font-weight: 700;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.06); }
.btn:disabled{ opacity: 0.5; cursor:not-allowed; transform:none; }

.btn-primary{
  border-color: rgba(39,217,138,0.35);
  background: rgba(39,217,138,0.14);
}
.btn-secondary{
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.fineprint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
}
.fineprint code{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 2px 6px;
  border-radius: 8px;
}

@media (max-width: 1100px){
  .layout{ grid-template-columns: 1fr; }
  .panel{ min-height: 520px; }
  .boardroom{ min-height: auto; }
}
@media (max-width: 720px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
}
