/* Workspace meetings (Phase 3) — list page + meeting room. Flex/grid only. */

/* ---------- list page ---------- */
.wsm-toolbar-card { padding: 10px 14px; margin-bottom: 14px; }
.wsm-new-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--admin-primary, #3B82F6); color: #fff; border-radius: 10px; padding: 8px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.wsm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; margin-bottom: 14px; }
.wsm-card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 1px 4px rgba(15,23,42,.08); display: flex; flex-direction: column; gap: 10px; }
.wsm-card-head { display: flex; align-items: center; gap: 8px; }
.wsm-card-head i { color: #94A3B8; }
.wsm-state { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.wsm-state-scheduled { background: #EEF2FF; color: #4338CA; }
.wsm-state-live { background: #DCFCE7; color: #15803D; }
.wsm-state-ended { background: #F1F5F9; color: #64748B; }
.wsm-state-cancelled { background: #FEE2E2; color: #B91C1C; }
.wsm-title { margin: 0; font-size: 15.5px; font-weight: 700; }
.wsm-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #64748B; align-items: center; }
.wsm-meta i { margin-inline-end: 3px; }
.wsm-fromnow { color: #94A3B8; font-size: 11.5px; }
.wsm-attendees { display: flex; align-items: center; gap: 4px; }
.wsm-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.wsm-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-color, #E2E8F0); background: #fff; border-radius: 9px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: #475569; }
.wsm-btn:hover { color: var(--admin-primary, #3B82F6); border-color: var(--admin-primary, #3B82F6); }
.wsm-btn-primary { background: var(--admin-primary, #3B82F6); color: #fff; border-color: var(--admin-primary, #3B82F6); }
.wsm-btn-primary:hover { color: #fff; filter: brightness(1.05); }
.wsm-btn-danger:hover { color: #EF4444; border-color: #EF4444; }
.wsm-btn-xs { padding: 3px 8px; font-size: 11px; }
.wsm-empty { grid-column: 1/-1; text-align: center; color: #94A3B8; padding: 40px 0; }
.wsm-form-row { display: flex; gap: 14px; align-items: center; }

/* ---------- meeting room ---------- */
.wsm-room { display: flex; flex-direction: column; height: calc(100vh - 110px); background: #0B1220; border-radius: 14px; overflow: hidden; position: relative; }
.wsm-room-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; color: #E2E8F0; }
.wsm-room-title { display: flex; align-items: center; gap: 10px; }
.wsm-room-title i { font-size: 18px; color: #94A3B8; }
.wsm-room-title h4 { margin: 0; font-size: 15.5px; font-weight: 700; }
.wsm-room-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94A3B8; gap: 8px; text-align: center; padding: 20px; }
.wsm-room-center h4 { color: #E2E8F0; margin: 0; }
.wsm-big { font-size: 44px; }
.wsm-spin { font-size: 34px; animation: wsc-spin 1s linear infinite; }

.wsm-stage { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.wsm-grid-videos { flex: 1; display: grid; gap: 10px; padding: 0 18px; align-content: center; min-height: 0; }
.wsm-n1 { grid-template-columns: minmax(0, 640px); justify-content: center; }
.wsm-n2 { grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; }
.wsm-n3, .wsm-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wsm-tile { position: relative; background: #111C33; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; border: 2px solid transparent; }
.wsm-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wsm-tile-label { position: absolute; bottom: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 5px; background: rgba(11,18,32,.75); color: #E2E8F0; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 9px; }
.wsm-tile-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #475569; font-size: 34px; background: #111C33; }
.wsm-tile-local { border-color: rgba(59,130,246,.5); }
.wsm-speaking { border-color: #10B981; }

.wsm-controls { display: flex; justify-content: center; gap: 10px; padding: 14px; }
.wsm-ctl { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(226,232,240,.12); color: #E2E8F0; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.wsm-ctl:hover { background: rgba(226,232,240,.25); }
.wsm-ctl-off { background: rgba(239,68,68,.25); color: #FCA5A5; }
.wsm-ctl-active { background: var(--admin-primary, #3B82F6); color: #fff; }
.wsm-ctl-danger { background: #EF4444; color: #fff; }
.wsm-ctl-danger:hover { background: #DC2626; }

.wsm-side { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 330px; background: #fff; display: flex; flex-direction: column; box-shadow: -4px 0 16px rgba(0,0,0,.25); z-index: 10; }
.wsm-side-body { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; }
.wsm-person { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 13.5px; }
.wsm-person-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsm-hand { color: #F59E0B; }
.wsm-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; }
.wsm-side-chat { padding: 0; }
.wsm-chat-msgs { flex: 1; overflow-y: auto; padding: 10px 14px; }

@media (max-width: 900px) {
  .wsm-side { width: 280px; }
  .wsm-n2, .wsm-n3, .wsm-n4 { grid-template-columns: 1fr; overflow-y: auto; }
}
