/* Global custom overrides and shared utilities */

/* JSON viewer block used across results pages */
.json-viewer {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}

/* Login/Signup button styled to match get-started button */
.btn-theme-login {
  padding: 12px 24px;
  background-color: var(--theme-primary);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.2);
}

.btn-theme-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--theme-primary-rgb), 0.4);
  color: #ffffff !important;
  background-color: var(--theme-primary);
  border-radius: 8px;
}

/* Branding: powered by AI under logo */
.brand-subtext {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #888;
  margin-top: 4px;
}

/* Accent theme text utility */
.text-theme {
  color: var(--theme-primary);
}

/* Drag-and-drop upload area */
#dropZone {
  border: 2px dashed #adb5bd !important; /* make it clearly visible */
  background-color: #f8f9fa;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#dropZone.active {
  border-color: #0d6efd !important;
  background-color: #eef5ff;
}
#dropZone input[type="file"] {
  display: none; /* we handle click on the whole zone */
}

/* Toaster styles */
#toaster {
  pointer-events: none;
}
.toast-item {
  min-width: 280px;
  max-width: 420px;
  background: #ffffff;
  border-left: 4px solid var(--theme-primary);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  margin-bottom: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
}
.toast-item.success { border-left-color: #28a745; }
.toast-item.error { border-left-color: #dc3545; }
.toast-item.info { border-left-color: #17a2b8; }
.toast-title { font-weight: 600; margin: 0; font-size: 14px; }
.toast-message { margin: 2px 0 0 0; font-size: 13px; color: #444; }
.toast-close { margin-left: auto; border: 0; background: transparent; color: #666; }

/* Confirm modal basic layout (reuses Bootstrap modal container) */
.confirm-modal .modal-content { border-radius: 10px; }
.confirm-modal .modal-header { border: 0; }
.confirm-modal .modal-footer { border: 0; }

/* Fix Bootstrap dropdown z-index issue */
.hero-section-digital {
  position: relative;
  z-index: 1000;
}

.hero-section-digital .dropdown {
  position: static !important;
}

/* Template option cards styling */
.template-option {
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.template-option:hover {
  background-color: #e9ecef;
  border-color: var(--theme-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.2);
}

.template-option.selected {
  background-color: #ffe7e7; /* light tint of primary */
  border-color: var(--theme-primary) !important;
  border-width: 2px !important;
}

/* Template cards in grid */
.template-card {
  transition: all 0.2s ease;
}

.template-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-section-digital .dropdown-menu {
  z-index: 10000 !important;
  position: absolute !important;
}

/* Ensure nav container has proper stacking context */
.hero-section-digital .nav-custom {
  position: relative;
  z-index: 1001;
}

.hero-section-digital .nav-custom-inner {
  position: relative;
  z-index: 1002;
}