/* ============================================================
   AMATOTECH — DESIGN SYSTEM v3.0
   Global CSS Variables & Utility Classes
============================================================ */

:root {
  /* ── Brand Colors ── */
  --brand-primary:        #0f172a;
  --brand-accent:         #2563eb;
  --brand-accent-hover:   #1d4ed8;
  --brand-accent-light:   #eff6ff;
  --brand-accent-glow:    rgba(37, 99, 235, 0.18);

  /* ── Semantic Colors ── */
  --brand-success:        #059669;
  --brand-success-light:  #ecfdf5;
  --brand-warning:        #d97706;
  --brand-warning-light:  #fffbeb;
  --brand-danger:         #dc2626;
  --brand-danger-light:   #fef2f2;
  --brand-info:           #0ea5e9;
  --brand-info-light:     #f0f9ff;
  --brand-purple:         #7c3aed;
  --brand-purple-light:   #f5f3ff;

  /* ── Neutral Scale ── */
  --brand-neutral-50:     #f8fafc;
  --brand-neutral-100:    #f1f5f9;
  --brand-neutral-200:    #e2e8f0;
  --brand-neutral-300:    #cbd5e1;
  --brand-neutral-400:    #94a3b8;
  --brand-neutral-500:    #64748b;
  --brand-neutral-600:    #475569;
  --brand-neutral-700:    #334155;
  --brand-neutral-800:    #1e293b;
  --brand-neutral-900:    #0f172a;

  /* ── Layout ── */
  --brand-sidebar-bg:     #0d1117;
  --brand-sidebar-text:   #8b949e;
  --brand-topbar-bg:      rgba(255,255,255,0.92);
  --brand-page-bg:        #f0f4f8;
  --brand-card-bg:        #ffffff;
  --brand-border:         #e2e8f0;
  --brand-border-light:   #f1f5f9;

  /* ── Shadows ── */
  --brand-shadow-xs:      0 1px 3px rgba(15,23,42,.06);
  --brand-shadow-sm:      0 4px 12px rgba(15,23,42,.06);
  --brand-shadow:         0 8px 24px rgba(15,23,42,.08);
  --brand-shadow-md:      0 16px 40px rgba(15,23,42,.10);
  --brand-shadow-lg:      0 24px 60px rgba(15,23,42,.12);
  --brand-shadow-accent:  0 8px 24px rgba(37,99,235,.20);

  /* ── Radius ── */
  --brand-radius-sm:      8px;
  --brand-radius:         14px;
  --brand-radius-lg:      20px;
  --brand-radius-xl:      28px;
  --brand-radius-full:    9999px;

  /* ── Typography ── */
  --brand-font:           'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --brand-font-mono:      'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* ── Transitions ── */
  --brand-transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --brand-transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   GLOBAL RESETS & BASE
============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--brand-font);
  background: var(--brand-page-bg);
  color: var(--brand-neutral-800);
  line-height: 1.6;
}

.page-video-conference,
.page-video-conference .content-container,
.page-video-conference .main-content,
.page-video-conference .page {
  height: 100%;
  overflow: hidden;
}

.page-video-conference .vc-room {
  height: 100dvh;
  overflow: hidden;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
============================================================ */

.fs-7  { font-size: 0.75rem !important; }
.fs-8  { font-size: 0.7rem !important; }
.fw-800 { font-weight: 800 !important; }

.text-gradient {
  background: linear-gradient(135deg, var(--brand-accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   CARD SYSTEM
============================================================ */

.at-card {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-lg);
  box-shadow: var(--brand-shadow-sm);
  transition: var(--brand-transition);
}

.at-card:hover {
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-2px);
}

.at-card-flat {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-lg);
}

/* ============================================================
   BUTTON SYSTEM
============================================================ */

.btn {
  font-family: var(--brand-font);
  font-weight: 600;
  border-radius: var(--brand-radius-sm);
  transition: var(--brand-transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  box-shadow: var(--brand-shadow-accent);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,99,235,.30);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.btn-outline-primary:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-light {
  background: var(--brand-neutral-100);
  border-color: var(--brand-border);
  color: var(--brand-neutral-700);
}

.btn-light:hover {
  background: var(--brand-neutral-200);
  border-color: var(--brand-neutral-300);
  color: var(--brand-neutral-800);
}

.btn:focus, .btn:active:focus {
  box-shadow: 0 0 0 3px var(--brand-accent-glow);
}

/* ============================================================
   FORM CONTROLS
============================================================ */

.form-control, .form-select {
  font-family: var(--brand-font);
  border-radius: var(--brand-radius-sm);
  border: 1.5px solid var(--brand-border);
  background: #fff;
  color: var(--brand-neutral-800);
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  transition: var(--brand-transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px var(--brand-accent-glow);
  background: #fff;
  outline: none;
}

.form-control::placeholder {
  color: var(--brand-neutral-400);
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-neutral-700);
  margin-bottom: 0.4rem;
}

.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-neutral-500);
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--brand-border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-neutral-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-border-light);
}

/* ============================================================
    BADGE SYSTEM
 ============================================================ */

.badge {
  font-family: var(--brand-font);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--brand-radius-full);
}

.badge-soft-primary   { background: #eff6ff; color: #1d4ed8; }
.badge-soft-success   { background: #ecfdf5; color: #065f46; }
.badge-soft-warning   { background: #fffbeb; color: #92400e; }
.badge-soft-danger    { background: #fef2f2; color: #991b1b; }
.badge-soft-info      { background: #f0f9ff; color: #075985; }
.badge-soft-secondary { background: #f1f5f9; color: #475569; }
.badge-soft-purple    { background: #f5f3ff; color: #5b21b6; }

/* ============================================================
   TABLE SYSTEM
============================================================ */

.at-table {
  width: 100%;
  border-collapse: collapse;
}

.at-table thead th {
  background: var(--brand-neutral-50);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-neutral-500);
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--brand-border);
  white-space: nowrap;
}

.at-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--brand-border-light);
  color: var(--brand-neutral-700);
}

.at-table tbody tr {
  transition: background-color 0.15s ease;
}

.at-table tbody tr:hover {
  background: #f5f8ff;
}

.at-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   ALERT SYSTEM
============================================================ */

.alert {
  border-radius: var(--brand-radius);
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-success {
  background: var(--brand-success-light);
  color: #065f46;
  border-left: 4px solid var(--brand-success);
}

.alert-danger {
  background: var(--brand-danger-light);
  color: #991b1b;
  border-left: 4px solid var(--brand-danger);
}

.alert-warning {
  background: var(--brand-warning-light);
  color: #92400e;
  border-left: 4px solid var(--brand-warning);
}

.alert-info {
  background: var(--brand-info-light);
  color: #075985;
  border-left: 4px solid var(--brand-info);
}

/* ============================================================
   PAGE HEADER
============================================================ */

.page-header {
  padding: 0 0 1.5rem 0;
  margin-bottom: 0.25rem;
}

.page-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--brand-neutral-900);
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--brand-neutral-500);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================================
   KPI CARDS
============================================================ */

.kpi-card {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-lg);
  box-shadow: var(--brand-shadow-sm);
  transition: var(--brand-transition);
  overflow: hidden;
  position: relative;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), #7c3aed);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow-md);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card .kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.kpi-card .kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--brand-neutral-900);
  line-height: 1.1;
}

.kpi-card .kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-neutral-500);
}

.kpi-card .kpi-footer {
  border-top: 1px solid var(--brand-border-light);
  padding: 0.65rem 1.25rem;
  background: var(--brand-neutral-50);
}

/* ============================================================
   MODAL IMPROVEMENTS
============================================================ */

.modal-content {
  border: none;
  border-radius: var(--brand-radius-lg);
  box-shadow: var(--brand-shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--brand-border-light);
  padding: 1.25rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--brand-border-light);
  padding: 1rem 1.5rem;
}

/* ============================================================
   SPINNER
============================================================ */

.spinner-border {
  border-width: 2.5px;
}

/* ============================================================
   SCROLLBAR
============================================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--brand-neutral-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-neutral-400);
}

/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ============================================================
   EMPTY STATE
============================================================ */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--brand-neutral-300);
  display: block;
  margin-bottom: 1rem;
}

.empty-state h6 {
  font-weight: 700;
  color: var(--brand-neutral-600);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--brand-neutral-400);
  font-size: 0.875rem;
}

/* ============================================================
   LOADING SKELETON
============================================================ */

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--brand-radius-sm);
}

/* ============================================================
    VIDEO CONFERENCE PAGE ENHANCEMENTS
=========================================================== */

.vc-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--brand-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.vc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: var(--brand-radius-full);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vc-status-pill .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.vc-status-scheduled { background: #eff6ff; color: #1d4ed8; }
.vc-status-scheduled .status-dot { background: #3b82f6; }

.vc-status-inprogress { background: #fffbeb; color: #92400e; }
.vc-status-inprogress .status-dot { background: #f59e0b; }

.vc-status-ended { background: #ecfdf5; color: #065f46; }
.vc-status-ended .status-dot { background: #10b981; }

.vc-status-cancelled { background: #fef2f2; color: #991b1b; }
.vc-status-cancelled .status-dot { background: #ef4444; }

.icon-cell {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.table-row-hover {
  transition: background-color 0.15s ease;
}

.table-row-hover:hover {
  background: #f5f8ff;
}

.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--brand-border);
  background: var(--brand-card-bg);
  flex-wrap: wrap;
  gap: .75rem;
  border-radius: 0 0 var(--brand-radius-lg) var(--brand-radius-lg);
}

.pagination-info {
  font-size: .8rem;
  color: var(--brand-neutral-500);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pagination-controls {
  display: flex;
  gap: .3rem;
  align-items: center;
}

.pagination-btn {
  border: 1.5px solid var(--brand-border);
  background: var(--brand-card-bg);
  color: var(--brand-neutral-700);
  border-radius: var(--brand-radius-sm);
  padding: .3rem .6rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--brand-transition);
  min-width: 32px;
  text-align: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

.pagination-btn.active {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

.pagination-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.page-size-select {
  border-radius: var(--brand-radius-sm);
  border: 1.5px solid var(--brand-border);
  padding: .28rem .5rem;
  font-size: .78rem;
  color: var(--brand-neutral-700);
  background: var(--brand-card-bg);
  font-family: var(--brand-font);
}

/* ============================================================
    SEARCH WRAPPER
 ============================================================ */

.search-wrapper {
  position: relative;
}

.search-wrapper .si {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--brand-neutral-400);
  font-size: .875rem;
  pointer-events: none;
}

.search-wrapper input {
  padding-left: 40px;
}

/* ============================================================
    MODAL BACKDROP
 ============================================================ */

.modal-backdrop-custom {
  background: rgba(0, 0, 0, 0.45);
}

/* ============================================================
    VIDEO CONFERENCE ACTION BUTTONS
 ============================================================ */

.btn-act {
  border-radius: var(--brand-radius-sm);
  padding: .35rem .6rem;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid;
  transition: var(--brand-transition);
  cursor: pointer;
  background: transparent;
}

.btn-act-start { color: var(--brand-accent); border-color: var(--brand-accent); }
.btn-act-start:hover { background: var(--brand-accent); color: #fff; }

.btn-act-end { color: var(--brand-danger); border-color: var(--brand-danger); }
.btn-act-end:hover { background: var(--brand-danger); color: #fff; }

.btn-act-view { color: var(--brand-success); border-color: var(--brand-success); }
.btn-act-view:hover { background: var(--brand-success); color: #fff; }

.btn-act-delete { color: var(--brand-danger); border-color: var(--brand-danger); }
.btn-act-delete:hover { background: var(--brand-danger); color: #fff; }

/* ============================================================
    VIDEO CONFERENCE ROOM
 ============================================================ */

.vc-room {
  padding: 1rem;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  background: var(--brand-neutral-900);
  color: #fff;
  overflow: hidden;
}

.vc-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--brand-neutral-800);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow-sm);
}

.vc-room-header h4 {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.vc-room-header small {
  color: var(--brand-neutral-400);
}

.vc-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.vc-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--brand-transition);
  position: relative;
  background: var(--brand-neutral-700);
  color: #fff;
}

.vc-controls button:hover {
  transform: scale(1.05);
  background: var(--brand-neutral-600);
}

.vc-controls .btn-mute.muted,
.vc-controls .btn-video.off {
  background: var(--brand-danger);
}

.vc-controls .btn-mute.muted::after,
.vc-controls .btn-video.off::after {
  content: '×';
  position: absolute;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.vc-controls .btn-leave {
  background: var(--brand-danger);
}

.vc-controls .btn-leave:hover {
  background: #ef4444;
}

.vc-controls .btn-chat {
  background: var(--brand-neutral-700);
  position: relative;
}

.vc-controls .btn-chat.active {
  background: var(--brand-accent);
}

.vc-controls .btn-chat:hover {
  background: var(--brand-neutral-600);
}

.vc-controls .btn-chat.active:hover {
  background: var(--brand-accent-hover);
}

.vc-timer {
  font-family: var(--brand-font-mono);
  font-size: 1rem;
  color: var(--brand-neutral-300);
  font-weight: 600;
}

.vc-main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vc-video-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  overflow-y: auto;
}

.vc-video-card {
  background: var(--brand-neutral-800);
  border-radius: var(--brand-radius);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  box-shadow: var(--brand-shadow-md);
  display: flex;
  flex-direction: column;
}

.vc-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
  background: #000;
}

.vc-video-card .vc-label {
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.6);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #fff;
}

.vc-video-card .vc-label .vc-mic-status {
  font-size: 0.75rem;
  opacity: 0.9;
  color: var(--brand-neutral-300);
}

.vc-filmstrip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.75rem 0.25rem;
  background: var(--brand-neutral-900);
  border-top: 1px solid var(--brand-neutral-800);
  min-height: 140px;
  align-items: center;
}

.vc-filmstrip .vc-video-card {
  min-width: 180px;
  min-height: 120px;
  flex-shrink: 0;
  border-radius: var(--brand-radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--brand-transition);
}

.vc-filmstrip .vc-video-card:hover {
  border-color: var(--brand-neutral-600);
}

.vc-filmstrip .vc-video-card.active {
  border-color: var(--brand-accent);
}

.vc-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-danger);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-neutral-900);
}

.vc-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 340px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  color: var(--brand-neutral-800);
  border-radius: var(--brand-radius);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--brand-shadow-lg);
  font-family: var(--brand-font);
  border: 1px solid var(--brand-border);
}

.vc-chat.open {
  display: flex;
}

.vc-chat-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-neutral-50);
}

.vc-chat-header h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-neutral-900);
}

.vc-chat-header .vc-people-count {
  font-size: 0.8rem;
  color: var(--brand-neutral-500);
  font-weight: 500;
}

.vc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #ffffff;
}

.vc-chat-message {
  background: var(--brand-neutral-100);
  border: 1px solid var(--brand-border-light);
  padding: 0.6rem 0.8rem;
  border-radius: var(--brand-radius-sm);
  max-width: 100%;
  word-break: break-word;
}

.vc-chat-message .vc-chat-meta {
  font-size: 0.7rem;
  color: var(--brand-neutral-500);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.vc-chat-message .vc-chat-body {
  font-size: 0.9rem;
  color: var(--brand-neutral-800);
}

.vc-chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--brand-border);
  display: flex;
  gap: 0.5rem;
  background: var(--brand-neutral-50);
}

.vc-chat-input-area input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid var(--brand-border);
  color: var(--brand-neutral-800);
  border-radius: var(--brand-radius-sm);
}

.vc-chat-message-system {
  background: var(--brand-neutral-50);
  border: 1px dashed var(--brand-border);
  text-align: center;
  color: var(--brand-neutral-600);
  font-size: 0.85rem;
}

.vc-chat-message-system .chat-body {
  font-style: italic;
}

.vc-chat-media {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--brand-radius-sm);
  margin-top: 0.4rem;
  cursor: pointer;
}

.vc-chat-file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--brand-primary);
  text-decoration: none;
}
  padding: 0.5rem 0.8rem;
  outline: none;
  font-size: 0.9rem;
  font-family: var(--brand-font);
  transition: var(--brand-transition);
}

.vc-chat-input-area input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px var(--brand-accent-glow);
}

.vc-chat-input-area button {
  background: var(--brand-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--brand-radius-sm);
  padding: 0 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--brand-font);
  transition: var(--brand-transition);
}

.vc-chat-input-area button:hover {
  background: var(--brand-accent-hover);
}

.modal-dialog-centered-custom {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-dialog-sm-custom {
  max-width: 420px;
}

.modal-dialog-md-custom {
  max-width: 600px;
}

.modal-dialog-lg-custom {
  max-width: 700px;
}

.modal-dialog-xl-custom {
  max-width: 800px;
}

.border-separator {
  border-top: 1px solid var(--brand-border);
}

/* ============================================================
     RESPONSIVE UTILITIES
 ============================================================ */

@media (max-width: 768px) {
  .page-header h2 { font-size: 1.25rem; }
  .kpi-card .kpi-value { font-size: 1.4rem; }
  .vc-room { padding: 0.5rem; }
  .vc-video-grid { grid-template-columns: 1fr; }
  .vc-chat { width: calc(100% - 2rem); right: 1rem; left: 1rem; }
}

.reactions-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.reaction-bubble {
  position: absolute;
  bottom: 100px;
  right: 20px;
  font-size: 2rem;
  animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-120px); opacity: 0; }
}

.waiting-room-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.waiting-room-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--brand-radius);
  text-align: center;
  max-width: 360px;
  width: 90%;
}

.vc-video-card.speaking {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px #22c55e;
}

.host-badge {
  display: none;
}

.btn-chat {
  position: relative;
}

.dropdown-menu {
  right: 0;
  left: auto;
}

#callNotifications {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 320px;
}

.call-notification {
  padding: 0.75rem 1rem;
  border-radius: var(--brand-radius);
  background: #ffffff;
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow);
  font-size: 0.9rem;
}

.call-notification.missed {
  border-left: 4px solid var(--brand-danger);
}

.call-notification.incoming {
  border-left: 4px solid var(--brand-primary);
}
