@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  margin: 0;
  }

html {
  scroll-behavior: smooth;
  }

body { 
  font-family: 'Roboto', sans-serif;
  }

.text-mvh-green { color: #04813b; }
.bg-mvh-green { background-color: #04813b; }
.border-mvh-green { border-color: #04813b; }
.hover-text-mvh:hover { color: #04813b; }
  
/* Custom scrollbars */
.scrollbar-hide::-webkit-scrollbar { display: none; }
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }  
.custom-scroll::-webkit-scrollbar { width: 8px; height: 8px;}
.custom-scroll::-webkit-scrollbar-thumb { background: #04813b; border-radius: 4px;}
.custom-scroll::-webkit-scrollbar-track { background: #f1f1f1;}

/* Heartbeat Animation */
.heartbeat-line path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: heartbeatDraw 4s linear infinite;
  filter: drop-shadow(0 0 4px #16a94c); /* Glow effect */
  }

  @keyframes heartbeatDraw {
    0% {
      stroke-dashoffset: 1200;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }

/* Watermark Styling */
#pdf-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('../img/logo/mvh_logo.png') no-repeat center;
  background-size: 300px;
  opacity: 0.05;
  width: 100%;
  height: 100%;
  z-index: 0;
  }

#pdf-content > * {
  position: relative;
  z-index: 10;
  }

/* Watermark effect for background */
#tos-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('../img/logo/mvh_logo.png') no-repeat center;
  background-size: 300px;
  opacity: 0.05;
  width: 100%;
  height: 100%;
  z-index: 0;
  }

#tos-content > * { 
  position: relative; 
  z-index: 10; 
  }

.curve-header {
  clip-path: ellipse(160% 100% at 50% 0%);
  }

.curve-footer {
  clip-path: ellipse(160% 100% at 50% 100%);
  }

html.modal-open {
  overflow: hidden;
  }

.modal {
  display: none;
  }

.modal.active {
  display: flex;
  }

#floorContainer {
  position: relative;
  width: 100%;
  max-width: 1000px; /* optional, control size */
  margin: 0 auto;
  }

/* Modal Styles */
#facilityModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem;
  transition: opacity 0.3s ease-in-out;
  }
  
#facilityModal.hidden { 
  display: none; 
  }
    
.modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  padding: 20px;
  }
  
.modal-images {
  position: relative;
    }
    
.modal-images img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 6px;
  display: none;
  }
    
.modal-images img.active { 
  display: block; 
}  

.image-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  }
    
.image-nav button {
      background: rgba(0,0,0,0.5);
      color: white;
      border: none;
      font-size: 20px;
      padding: 5px 10px;
      cursor: pointer;
      border-radius: 4px;
    }

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
  }
  
  .tooltip {
    visibility: hidden;
    transition: opacity 0.2s;
    white-space: nowrap;
  }
  .hotspot:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }

  #facilityModal .bg-white {
  max-width: 900px; /* Bigger modal width */
}

#modalImageWrapper img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

#prevImage, #nextImage {
  cursor: pointer;
  transition: background 0.2s ease;
}
#prevImage:hover, #nextImage:hover {
  background: rgba(0,0,0,0.7);
}

/* Responsive scaling */
.circle-pulse {
  font-size: clamp(20px, 4vw, 36px); /* min 20px, scales with viewport, max 36px */
  animation: pulse 1.5s infinite;
  text-shadow: 0 0 6px rgba(22, 163, 74, 0.6); /* subtle glow */
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Pulsing circle */
.circle-pulse {
  font-size: clamp(20px, 4vw, 36px);
  color: #16a34a;
  line-height: 1;
  animation: pulse 1.5s infinite;
  text-shadow: 0 0 6px rgba(22, 163, 74, 0.6);
  cursor: pointer;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Tooltip styling */
.circle-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circle-tooltip {
  position: absolute;
  bottom: 100%; /* Default: above */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 4px 8px;
  font-size: clamp(10px, 2.5vw, 12px);
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

.circle-wrapper:hover .circle-tooltip {
  opacity: 1;
}

/* Tooltip arrow */
.circle-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

/* Styles for the article content area */
.article-content h1, .article-content h2, .article-content h3 {
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.article-content h1 { font-size: 2.25rem; }
.article-content h2 { font-size: 1.875rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content p {
  margin-bottom: 1em;
  line-height: 1.75;
}
.article-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1em;
}
.article-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1em;
}
.article-content blockquote {
  border-left: 4px solid #16a94c;
  padding-left: 1rem;
  margin: 1.5em 0;
  font-style: italic;
  color: #4b5563;
}

input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            opacity: 0.6;
        }

/* --- Notification Container (Top Right) --- */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Toast Card Style --- */
.toast {
  background-color: #ffffff;
  color: #1e293b; /* Slate-800 */
  min-width: 320px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-family: sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  
  /* Animation Start: Hidden to the right */
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Animation Class --- */
.toast.show {
  transform: translateX(0);
}

/* --- Success (Green) --- */
.toast.success {
  border-left: 5px solid #22c55e;
}
.toast.success .toast-icon {
  color: #22c55e;
  font-size: 18px;
  font-weight: bold;
}

/* --- Error (Red) --- */
.toast.error {
  border-left: 5px solid #ef4444;
}
.toast.error .toast-icon {
  color: #ef4444;
  font-size: 18px;
  font-weight: bold;
}

.ProseMirror {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  min-height: 250px;
  background-color: white;
}
.ProseMirror:focus {
  outline: none;
  border-color: #16a94c;
  box-shadow: 0 0 0 2px rgba(22, 169, 76, 0.4);
}

/* Makes the TipTap placeholder text visible */
.tiptap p.is-editor-empty:first-child::before,
.tiptap p.is-empty::before {
    color: #9ca3af; /* Matches Tailwind's gray-400 */
    content: attr(data-placeholder);
    float: left;
    height: 0;
    pointer-events: none;
}