/* BM Stedtli App - Modal Styles */

/* Modal styles */
.bm-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.bm-modal-container.active {
  display: block;
}

.bm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease;
}

.bm-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

/* Modal animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Modal scrollbar styling */
.bm-modal-content::-webkit-scrollbar {
  width: 8px;
}

.bm-modal-content::-webkit-scrollbar-track {
  background: var(--secondary-color);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.bm-modal-content::-webkit-scrollbar-thumb {
  background-color: #cbd5e0;
  border-radius: 4px;
}

.bm-modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #a0aec0;
}

/* Modal close button */
.bm-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.bm-modal-close:hover {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bm-modal-content {
    width: 95%;
    max-height: 95vh;
  }
}
