/* Responsive Modal Width */
@media (max-width: 767.98px) {
  #hotPreviewsModal .modal-dialog {
    margin: 1rem auto;
    max-width: 95vw;
  }

  #hotPreviewsModal .modal-content {
    border-radius: 1rem;
    padding: 0.5rem;
  }

  #hotPreviewsModal .modal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding-bottom: 1.5rem;
  }

  #hotPreviewsModal .preview-card img,
  #hotPreviewsModal .preview-card video {
    width: 120px !important;
    height: 220px !important;
  }

  #hotPreviewsModal .btn {
    min-width: 120px;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  #hotPreviewsModal h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  #hotPreviewsModal .modal-header {
    padding-top: 1rem;
    padding-bottom: 0.25rem;
  }
}
/* Match Theme Modal Width */
.custom-theme-modal-width {
  max-width: 720px !important;
}

/* Mobile Tweaks */
@media (max-width: 767.98px) {
  .custom-theme-modal-width {
    max-width: 95vw !important;
    margin: 1rem auto;
  }

  #hotPreviewsModal .modal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding-bottom: 1.5rem;
  }

  #hotPreviewsModal .preview-card img,
  #hotPreviewsModal .preview-card video {
    width: 120px !important;
    height: 220px !important;
  }

  #hotPreviewsModal .btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  #hotPreviewsModal h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}
/* Modern modal entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to Bootstrap modal */
.modal.fade .modal-dialog {
  animation: fadeInUp 0.4s ease forwards;
}
/* Soft bounce fade-in animation */
@keyframes fadeInUpBounce {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Apply animation to modal dialog */
.modal.fade .modal-dialog {
  animation: fadeInUpBounce 0.6s ease forwards;
}
.iphone-preview {
  width: 120px;
  height: 240px;
  background: white;
  border-radius: 28px;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex; /* ✅ Changed from inline-block */
  flex-direction: column;
  align-items: center;
  margin: 4px;
}
.iphone-preview:hover {
  transform: scale(1.05);
}
.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid #ccc;
}
.iphone-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(107, 70, 193, 0.4), 0 0 20px rgba(107, 70, 193, 0.2);
}
.iphone-preview {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* === Match Hot Previews Modal Colors to Dashboard === */

/* Modal content background */
#hotPreviewsModal .modal-content {
  background-color: #e6efeb !important;
  color: #36454F !important;
  border: none !important;
}

/* Top pill buttons (View HollaLink / Back / Add Links / Reset) */
#hotPreviewsModal .top-btn {
  background-color: #36454F !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  border: none !important;
  box-shadow: 0 3px 5px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
}
#hotPreviewsModal .top-btn:hover {
  transform: scale(1.05);
  background-color: #2c3840 !important; /* slightly darker on hover */
  color: #ffffff !important;
}

/* Reset button too */
#hotPreviewsModal #resetThemeVideoBtn {
  background-color: #36454F !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  border: none !important;
}
#hotPreviewsModal #resetThemeVideoBtn:hover {
  background-color: #2c3840 !important;
  color: #ffffff !important;
}

/* Preview card captions */
#hotPreviewsModal .text-gray-800,
#hotPreviewsModal .text-gray-700 {
  color: #36454F !important;
}

/* iPhone preview frame (optional to match) */
#hotPreviewsModal .iphone-preview {
  background-color: #ffffff !important; /* leave phones white */
  border: 1px solid #36454F22;
}
#hotPreviewsModal .iphone-screen {
  border: 1px solid #36454F22;
}

/* Header title */
#hotPreviewsModal .modal-title {
  color: #36454F !important;
}

