/* Disguise Lock Screen & Video Call Styles */
:root {
  --bg-disguise: #eef2f5;
  --wa-teal: #008069;
  --wa-teal-dark: #075e54;
  --wa-green: #25d366;
  --wa-blue-ticks: #53bdeb;
  --wa-chat-bg: #efeae2;
  --wa-outgoing: #d9fdd3;
  --wa-incoming: #ffffff;
  --danger-red: #ea4335;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-disguise);
  color: #111b21;
}

.screen-hidden {
  display: none !important;
}

/* =========================================================
   1. DISGUISE / INITIAL SCREEN
   Requirement:
   - Background logo roda bergerigi seperti logo setting pada hp
   - Hanya menampilkan form password
   - Tidak ada teks atau informasi apapun
   ========================================================= */
.disguise-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #dbe4ea;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.45) 0%, rgba(200, 215, 226, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  user-select: none;
}

/* Big Gear Logo in Center/Background */
.disguise-logo-container {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.disguise-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(70, 90, 110, 0.25));
  border-radius: 28px;
  transition: transform 0.4s ease;
}

.disguise-logo:hover {
  transform: rotate(30deg);
}

/* Minimalist Form - Absolutely NO TEXT */
.disguise-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 280px;
  padding: 0 1rem;
}

.disguise-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.disguise-input {
  width: 100%;
  height: 48px;
  padding: 0 45px 0 16px;
  font-size: 1.25rem;
  letter-spacing: 0.35rem;
  text-align: center;
  color: #2c3e50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(170, 185, 200, 0.6);
  border-radius: 24px;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.disguise-input:focus {
  border-color: #8da4b8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.disguise-submit-btn {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #738a9c;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.disguise-submit-btn:hover {
  background: #5b7284;
}

.disguise-submit-btn:active {
  transform: scale(0.92);
}

.disguise-submit-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Shake Animation on Wrong Password */
.input-shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: #e57373 !important;
  box-shadow: 0 0 12px rgba(229, 115, 115, 0.4) !important;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* =========================================================
   2. VIDEO CALL MODALS & OVERLAYS
   ========================================================= */
.call-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 20, 26, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 3rem 1.5rem;
  z-index: 2000;
  color: #fff;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.call-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.call-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  font-size: 2.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Pulsing waves for calling */
.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.call-name {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.call-mode-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #86efac;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02rem;
}

.call-status {
  font-size: 0.95rem;
  color: #aebac1;
}

.call-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  width: 100%;
}

.call-circle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.call-circle-btn:active {
  transform: scale(0.9);
}

.call-circle-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.btn-accept {
  background-color: var(--wa-green);
}

.btn-decline, .btn-end {
  background-color: var(--danger-red);
}

/* Active Video Call Screen */
.active-call-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}

.remote-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111b21;
}

/* Floating Local PIP Video */
.local-pip-container {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 110px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: #202c33;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 3100;
}

#local-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror selfie view */
}

.call-header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  z-index: 3200;
}

.call-timer {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05rem;
}

.call-controls-bar {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(32, 44, 51, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.5rem;
  border-radius: 36px;
  z-index: 3200;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.call-control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.call-control-btn:active {
  transform: scale(0.9);
}

.call-control-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.control-off {
  background: #ea4335 !important;
  color: #fff !important;
}

/* =========================================================
   3. APP TOAST NOTIFICATIONS
   ========================================================= */
.app-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(17, 27, 33, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 400;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

.toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Lightbox Image Preview */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.image-lightbox.lightbox-show {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: 92%;
  max-height: 85%;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
