
/* Bottom Sheet */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  z-index: 2000; 
  pointer-events: none;
}

.bottom-sheet-inner {
  background-color: #fef9f3; 
  backdrop-filter: blur(12px);                
  box-shadow: 0 -12px 30px rgba(0,0,0,0.2);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  max-height: 95vh;
  overflow-y: auto;
  pointer-events: all;
  padding: 1.5rem;
  color: #333;
}
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: 1999; 
}


.bottom-sheet.hidden,
.bottom-sheet-overlay.hidden,.universal-popup.hidden,.universal-popup-overlay.hidden {
  display: none;
}

.bottom-sheet-drag-indicator {
  width: 80px;
  height: 7px;
  background-color: #ccc;
  border-radius: 3px;
  margin: 0 auto 12px auto;
}

.bottom-sheet-inner > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bottom-sheet.active .bottom-sheet-inner > * {
  opacity: 1;
  transform: translateY(0);
}
#bottom-sheet::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: -1;
}
.bottom-sheet.medium .bottom-sheet-inner { height: 50vh; }
.bottom-sheet.small .bottom-sheet-inner { height: 30vh; }
.bottom-sheet.full .bottom-sheet-inner { height: 95vh; }
.bottom-sheet.active .bottom-sheet-inner {
  transform: translateY(0);
}
.bottom-sheet-inner.success {
  background: #28a745;
  color: #333;
}
.bottom-sheet-inner.danger {
  background: #dc3545;
  color: #333;
}
.bottom-sheet-inner.info {
  background: #fef9f3;
  color: #333;
}
.hidden { display: none; }

/* Top Notification */
.top-notify {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  background: #212529;
  color: white;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  z-index: 99998;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  border-bottom: 3px solid #0d6efd;
}
.top-notify.active {
  transform: translateY(0);
}
.top-notify.success {
  background: #28a745;
  border-color: #1e7e34;
}
.top-notify.danger {
  background: #dc3545;
  border-color: #a71d2a;
}
.top-notify.info {
  background: #0d6efd;
  border-color: #0a58ca;
}
.universal-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.universal-popup {
  background: #fef9f3; 
  border-radius: 2rem;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}

.universal-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.universal-popup-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.universal-popup-content {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.universal-popup-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}



@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

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

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 19999;
  pointer-events: none;
}

.tour-highlight {
  position: absolute;
  border: 2px solid #ffffff85;
  border-radius: 1rem;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 10000;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
.highlight-pulse {
  animation: pulse 1.5s ease-out infinite;
  border-radius: 1rem;
}
.tour-tooltip {
  position: absolute;
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  z-index: 10000;
  max-width: 300px;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tour-actions {
  margin-top: 1rem;
  text-align: right;
}

.tour-actions button {
  margin-left: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 0.8rem;
  background: black;
  color: white;
  cursor: pointer;
}
.tour-cancel-link {
  display: inline-block;
  margin-right: auto;
  font-size: 0.85rem;
  color: #aaa;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

.tour-cancel-link:hover {
  color: #666;
}
