/* Maros+ Video Call — modern premium UI */
.vc-page {
  --vc-ink: #0C2F5C;
  --vc-leaf: #1565C0;
  --vc-leaf-2: #29B6F6;
  --vc-gold: #4FC3F7;
  --vc-gold-soft: #f3e2a0;
  --vc-fog: #EAF6FF;
  --vc-panel: rgba(255, 255, 255, .88);
  --vc-line: rgba(6, 36, 22, .08);
  display: grid;
  gap: 1.1rem;
}

.vc-shell {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(20, 148, 86, .18), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(201, 162, 39, .16), transparent 50%),
    linear-gradient(165deg, #F4FAFF 0%, #eef5f0 48%, #e7f1ea 100%);
  border: 1px solid var(--vc-line);
  box-shadow: 0 18px 50px rgba(6, 36, 22, .08);
}

.vc-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.vc-eyebrow {
  margin: 0 0 .35rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vc-leaf);
  font-weight: 700;
}
.vc-hero h2 {
  margin: 0 0 .45rem;
  color: var(--vc-ink);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -.02em;
}
.vc-hero .muted { color: rgba(6, 36, 22, .68); max-width: 42rem; }
.vc-hero-badge {
  flex-shrink: 0;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 18px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #29B6F6, #0D5BB5);
  box-shadow: 0 12px 28px rgba(11, 92, 54, .28);
}
.vc-hero-badge span { font-size: .68rem; opacity: .85; display: block; }
.vc-hero-badge strong { font-size: 1rem; }

.vc-capacity {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .55rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(15, 107, 60, .08);
  color: var(--vc-leaf);
  font-size: .82rem;
  font-weight: 600;
}
.vc-capacity b { color: var(--vc-ink); }

.vc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
  padding: 0 1.15rem 1.25rem;
}
@media (max-width: 920px) {
  .vc-layout { grid-template-columns: 1fr; }
}

.vc-card {
  background: var(--vc-panel);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 10px 30px rgba(6, 36, 22, .05);
}
.vc-card .panel-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: var(--vc-ink);
}
.vc-form .form-group { margin-bottom: .85rem; }
.vc-form label { font-weight: 600; color: rgba(6, 36, 22, .78); font-size: .84rem; }
.vc-form .form-control {
  border-radius: 12px;
  border-color: rgba(6, 36, 22, .12);
  background: #fff;
}
.vc-submit {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: .85rem 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #29B6F6, #1565C0);
  border: 0;
  box-shadow: 0 10px 24px rgba(30, 136, 229, .28);
}

/* —— Session / stage —— */
.vc-session { padding: 0; overflow: hidden; }
.vc-session-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding: 1rem 1.1rem .85rem;
  border-bottom: 1px solid var(--vc-line);
}
.vc-session-head .panel-title { margin: 0; }
.vc-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.vc-status::before {
  content: '';
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: vcPulseDot 1.6s ease-out infinite;
}
.vc-status.is-waiting { background: #fff6df; color: #8a5a00; }
.vc-status.is-active { background: #ddf7e9; color: #1565C0; }
.vc-status.is-ended { background: #e8ecea; color: #556; }
@keyframes vcPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(11, 107, 60, .35); }
  70% { box-shadow: 0 0 0 8px rgba(11, 107, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 107, 60, 0); }
}

.vc-wait {
  margin: 1rem 1.1rem 0;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 148, 86, .08), rgba(201, 162, 39, .1));
  border: 1px solid rgba(15, 107, 60, .1);
  display: grid;
  gap: .2rem;
}
.vc-wait strong { color: var(--vc-ink); }
.vc-wait-pulse {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  margin-bottom: .25rem;
  background: radial-gradient(circle at 35% 35%, #fff7c8, #29B6F6);
  animation: vcPulseDot 1.5s ease-out infinite;
}

/* Dual camera panes — selalu terlihat di akun masyarakat */
.vc-duo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: .75rem;
  margin: 1rem 1.1rem;
}
.vc-pane {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #041E3A;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 12px 28px rgba(6, 36, 22, .12);
}
.vc-pane video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #041E3A;
  z-index: 1;
}
.vc-pane-local video { transform: scaleX(-1); }
.vc-stage-tag {
  position: absolute;
  left: .65rem;
  top: .65rem;
  z-index: 4;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.vc-pane-ph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(420px 180px at 50% 40%, rgba(20, 148, 86, .2), transparent 65%),
    rgba(4, 22, 14, .72);
  pointer-events: none;
  transition: opacity .2s ease;
}
.vc-pane-ph strong {
  font-size: .95rem;
  color: #fff;
}
.vc-pane-ph span { font-size: .8rem; max-width: 16rem; line-height: 1.4; }
.vc-pane.has-video .vc-pane-ph {
  display: none !important;
}
.vc-pane.has-video video {
  z-index: 3;
}
.vc-pane-local {
  border-color: rgba(20, 148, 86, .45);
}
.vc-pane-remote {
  border-color: rgba(201, 162, 39, .35);
}

/* legacy aliases agar admin desk tetap jalan */
.vc-stage {
  position: relative;
  margin: 1rem 1.1rem;
  border-radius: 18px;
  overflow: hidden;
  background: #041E3A;
  min-height: 360px;
}
.vc-stage-remote {
  position: relative;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 10;
  background: #041E3A;
}
.vc-stage-remote video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vc-stage-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, .78);
  background: rgba(4, 22, 14, .55);
  z-index: 1;
  pointer-events: none;
}
.vc-stage.has-remote .vc-stage-placeholder,
.vc-desk-stage.has-remote .vc-stage-placeholder { display: none; }
.vc-pip {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  width: min(34%, 168px);
  aspect-ratio: 3 / 4;
  min-height: 150px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .92);
  background: #062A5C;
  z-index: 4;
}
.vc-pip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.vc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  padding: 0 1.1rem 1.15rem;
}
.vc-toolbar .vc-rtc {
  flex: 1 1 100%;
  margin: 0;
  color: rgba(6, 36, 22, .62);
  font-size: .82rem;
}
.vc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: .7rem 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vc-btn:active { transform: translateY(1px); }
.vc-btn-allow {
  background: linear-gradient(135deg, #29B6F6, #1565C0);
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 136, 229, .28);
}
.vc-btn-allow.is-on {
  background: linear-gradient(135deg, #1f9d5e, #147a48);
}
.vc-btn-allow svg { width: 1.05rem; height: 1.05rem; }
.vc-btn-end {
  background: rgba(6, 36, 22, .06);
  color: var(--vc-ink);
}
.vc-btn-end:hover { background: rgba(180, 40, 40, .1); color: #8b1e1e; }

/* —— Admin / operator premium stage —— */
.vc-desk {
  margin-top: 1rem;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(20, 148, 86, .16), transparent 55%),
    linear-gradient(165deg, #062A5C, #0B4F9C 55%, #1565C0);
  color: #f4faf6;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.vc-desk[hidden] { display: none !important; }
.vc-desk-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.vc-desk-head h2 { margin: 0; color: #fff; font-size: 1.05rem; }
.vc-desk-head .muted { color: rgba(230, 245, 236, .7); margin: .2rem 0 0; }
.vc-desk-stage {
  position: relative;
  min-height: 420px;
  background: #041E3A;
}
.vc-desk-stage.has-remote .vc-stage-placeholder { display: none; }
.vc-desk-stage .vc-stage-remote {
  min-height: 420px;
  aspect-ratio: 16 / 9;
}
.vc-desk-pip {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(28%, 200px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  background: #062A5C;
  z-index: 4;
}
.vc-desk-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}
.vc-desk-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  padding: .85rem 1.15rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.vc-desk-foot .form-hint { color: rgba(230, 245, 236, .65); margin: 0; flex: 1 1 100%; }
.vc-desk .vc-btn-allow {
  background: linear-gradient(135deg, #d4b145, #b8911c);
  color: #1a1405;
  box-shadow: 0 10px 22px rgba(184, 145, 28, .25);
}
.vc-desk .vc-btn-end {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.vc-queue-item {
  border-radius: 14px;
  border: 1px solid rgba(6, 36, 22, .08);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vc-queue-item:hover {
  border-color: rgba(15, 107, 60, .28);
  box-shadow: 0 8px 20px rgba(6, 36, 22, .06);
}

@media (max-width: 860px) {
  .vc-duo { grid-template-columns: 1fr; margin: .85rem; }
  .vc-pane { min-height: 220px; aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .vc-hero { padding: 1rem; }
  .vc-layout { padding: 0 .85rem 1rem; }
  .vc-stage { margin: .85rem; min-height: 280px; }
  .vc-stage-remote { min-height: 260px; }
  .vc-toolbar { padding: 0 .85rem 1rem; }
  .vc-desk-stage .vc-stage-remote { min-height: 300px; }
  .vc-desk-pip { width: 112px; }
}
