/* ============================================================
   e-Meeting System - Global Styles
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary: #64748b;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --info: #0891b2;
  --info-light: #cffafe;
  --dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font: 'Sarabun', 'Noto Sans Thai', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ── Layout ── */
.app-container { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  z-index: 100;
}
.sidebar.collapsed { width: 64px; min-width: 64px; }
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 60px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}
.page-content { flex: 1; padding: 24px; overflow-y: auto; }

/* ── Sidebar Branding ── */
.sidebar-brand {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 70px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
}
.brand-name span { font-size: 11px; color: var(--gray-400); display: block; font-weight: 400; }

/* ── Sidebar Nav ── */
.sidebar-nav { padding: 12px 8px; flex: 1; overflow-y: auto; }
.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 8px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: white; }
.nav-item.active { background: var(--primary); color: white; }
.nav-item .nav-icon { font-size: 18px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--danger); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }

/* ── Topbar ── */
.topbar-title { font-size: 17px; font-weight: 700; color: var(--gray-800); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray-600);
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--gray-100); border-color: var(--gray-300); }

/* ── Cards ── */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 11px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-200); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: #15803d; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline-primary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline-primary:hover:not(:disabled) { background: var(--primary-light); }
.btn-live { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; animation: pulse-live 2s infinite; }
@keyframes pulse-live { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); } 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-800);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.form-check-label { font-size: 14px; color: var(--gray-700); }

/* ── Badges / Status ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-draft { background: var(--gray-100); color: var(--gray-600); }
.badge-scheduled { background: #fef3c7; color: #92400e; }
.badge-live { background: #fee2e2; color: #991b1b; animation: blink 1.5s infinite; }
.badge-paused { background: #fef3c7; color: #92400e; }
.badge-ended { background: var(--gray-100); color: var(--gray-500); }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: var(--info-light); color: #155e75; }
.badge-answered { background: var(--success-light); color: #166534; }
.badge-rejected { background: var(--danger-light); color: #991b1b; }
.badge-active { background: var(--success-light); color: #166534; }
.badge-closed { background: var(--gray-100); color: var(--gray-500); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1s infinite; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }

/* ── Stats Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.blue { background: #dbeafe; }
.stat-icon.green { background: #dcfce7; }
.stat-icon.orange { background: #ffedd5; }
.stat-icon.purple { background: #f3e8ff; }
.stat-icon.red { background: #fee2e2; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ── Meeting Card ── */
.meeting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.meeting-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.meeting-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.meeting-card.live { border-color: #fca5a5; box-shadow: 0 0 0 2px rgba(239,68,68,0.1); }
.meeting-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.meeting-thumb img { width: 100%; height: 100%; object-fit: cover; }
.meeting-thumb .status-overlay { position: absolute; top: 10px; left: 10px; }
.meeting-info { padding: 16px; }
.meeting-title { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.meeting-meta { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.meeting-meta span { display: flex; align-items: center; gap: 4px; }
.meeting-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--gray-100); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1100px; }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-title { font-size: 17px; font-weight: 700; color: var(--gray-900); }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-500); padding: 4px; border-radius: 4px; }
.modal-close:hover { background: var(--gray-100); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-info { background: var(--info-light); color: #155e75; border: 1px solid #a5f3fc; }
.alert-success { background: var(--success-light); color: #166534; border: 1px solid #86efac; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--gray-900);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  pointer-events: all;
  max-width: 360px;
  border-left: 4px solid var(--primary);
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-error { border-left-color: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* ── Loading ── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner.dark { border-color: rgba(0,0,0,0.15); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  flex-direction: column;
  gap: 16px;
  color: var(--gray-500);
  font-size: 14px;
}
.page-loader .spinner.dark { width: 36px; height: 36px; border-width: 3px; }

/* ── Search / Filters ── */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  flex: 1;
  min-width: 200px;
}
.search-box input { border: none; outline: none; flex: 1; font-family: var(--font); font-size: 14px; color: var(--gray-800); }
.search-box input::placeholder { color: var(--gray-400); }

/* ── Q&A Panel ── */
.qa-list { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; }
.qa-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: all var(--transition);
}
.qa-item.pending { border-left: 3px solid var(--warning); }
.qa-item.approved { border-left: 3px solid var(--info); }
.qa-item.answered { border-left: 3px solid var(--success); background: var(--success-light); }
.qa-item.rejected { border-left: 3px solid var(--danger); opacity: 0.6; }
.qa-name { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.qa-content { font-size: 14px; color: var(--gray-800); font-weight: 500; }
.qa-answer { font-size: 13px; color: #166534; background: white; padding: 8px 10px; border-radius: 6px; margin-top: 8px; border: 1px solid #86efac; }
.qa-actions { display: flex; gap: 6px; margin-top: 8px; }

/* ── Poll Component ── */
.poll-option {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.poll-option:hover { border-color: var(--primary); background: var(--primary-light); }
.poll-option.selected { border-color: var(--primary); background: var(--primary-light); }
.poll-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(37,99,235,0.1);
  transition: width 0.5s ease;
  z-index: 0;
}
.poll-option-text { position: relative; z-index: 1; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; }
.poll-pct { font-weight: 700; color: var(--primary); font-size: 13px; }

/* ── Reactions ── */
.reaction-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.reaction-btn {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.reaction-btn:hover { border-color: var(--primary); background: var(--primary-light); transform: scale(1.1); }
.reaction-btn:active { transform: scale(0.95); }
.reaction-count { font-size: 12px; font-weight: 700; color: var(--gray-600); }

/* Reaction animation */
.reaction-float {
  position: fixed;
  font-size: 28px;
  pointer-events: none;
  z-index: 9999;
  animation: floatUp 2s ease forwards;
}
@keyframes floatUp { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-120px) scale(1.4); } }

/* ── Online Counter ── */
.online-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--success-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: #166534;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; margin-top: 6px; }

/* ── Announcements ── */
.announcement-banner {
  padding: 12px 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeIn 0.4s ease;
}
.announcement-info { background: var(--info-light); color: #155e75; border: 1px solid #a5f3fc; }
.announcement-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.announcement-success { background: var(--success-light); color: #166534; border: 1px solid #86efac; }
.announcement-alert { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Login Page ── */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: white; border-radius: var(--radius-lg); width: 100%; max-width: 420px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.3); }
.login-header { background: linear-gradient(135deg, #1e40af, #2563eb); padding: 32px; text-align: center; color: white; }
.login-logo { font-size: 48px; margin-bottom: 8px; }
.login-title { font-size: 22px; font-weight: 800; }
.login-sub { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.login-body { padding: 32px; }

/* ── Presenter Room ── */
.presenter-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; height: calc(100vh - 60px); overflow: hidden; padding: 20px; }
.stream-panel { display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.control-panel { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.video-preview {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  flex: 1;
  min-height: 200px;
}
.video-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.stream-controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ── Participant Room ── */
.viewer-layout { display: grid; grid-template-columns: 1fr 300px; gap: 0; height: 100vh; overflow: hidden; background: #0f172a; }
.video-area { display: flex; flex-direction: column; background: #000; }
.video-area video { width: 100%; height: 100%; object-fit: contain; flex: 1; }
.viewer-sidebar { background: var(--dark); display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.viewer-topbar { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.viewer-title { font-size: 14px; font-weight: 700; color: white; }
.viewer-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.08); }
.viewer-tab { flex: 1; padding: 10px; text-align: center; font-size: 13px; cursor: pointer; color: var(--gray-400); border-bottom: 2px solid transparent; transition: all var(--transition); }
.viewer-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.viewer-tab-content { flex: 1; overflow-y: auto; padding: 14px; display: none; }
.viewer-tab-content.active { display: block; }

/* Waiting screen */
.waiting-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 40px;
  color: white;
}
.waiting-screen .big-icon { font-size: 64px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .presenter-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
  .viewer-layout { grid-template-columns: 1fr; grid-template-rows: 55vw 1fr; }
  .viewer-sidebar { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -260px; top: 0; bottom: 0; transition: left var(--transition); }
  .sidebar.open { left: 0; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .meeting-grid { grid-template-columns: 1fr; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
  .modal { max-height: 95vh; margin: 10px; }
}