/* ========================================================
   KLINIK UTAMA RAWAT INAP PANASEA MEDIKA - CARUBAN, MADIUN
   Desain Medis Bersih & Elegan (Clean Medical Aesthetic)
   Palet Warna:
   - Putih Bersih & Soft Ice: #FFFFFF, #F8FAFC, #F1F5F9
   - Aksen Tosca Healing: #0D9488, #14B8A6, #CCFBF1
   - Biru Medis Kepercayaan: #0284C7, #0369A1, #E0F2FE
   - Aksen Merah Tanggap Darurat: #EF4444, #DC2626, #FEE2E2
======================================================== */

/* Smooth scrolling and font rendering */
html, body {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

/* Animations */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes floatSoftReverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

@keyframes shakeSlow {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}

@keyframes subtleShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.animate-float {
  animation: floatSoft 5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatSoftReverse 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.animate-shake {
  animation: shakeSlow 3s ease-in-out infinite;
}

.animate-card-in {
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Medical Ambient Grid Background */
.bg-medical-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(13, 148, 136, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(13, 148, 136, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Elegant Clean Card Glassmorphism */
.glass-clean-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(13, 148, 136, 0.04);
}

.glass-floating-pill {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
}

/* Soft Elevation on Hover */
.clean-hover-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.clean-hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -8px rgba(13, 148, 136, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  border-color: rgba(20, 184, 166, 0.4);
}

/* Active Filter Button in Catalog */
.filter-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-btn.active {
  background-color: #0D9488 !important;
  color: #FFFFFF !important;
  border-color: #0D9488 !important;
  box-shadow: 0 6px 18px -2px rgba(13, 148, 136, 0.35);
}

/* Day Filter Button in Schedule */
.day-filter-btn, .schedule-day-btn {
  transition: all 0.2s ease;
}
.day-filter-btn.active, .schedule-day-btn.active {
  background-color: #0D9488 !important;
  color: #FFFFFF !important;
  border-color: #0D9488 !important;
  box-shadow: 0 4px 14px -1px rgba(13, 148, 136, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Emergency Glow Button */
.btn-emergency-glow {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 24px -4px rgba(239, 68, 68, 0.38);
}
.btn-emergency-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(239, 68, 68, 0.52);
}

/* Primary Tosca Glow Button */
.btn-tosca-glow {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 24px -4px rgba(13, 148, 136, 0.32);
}
.btn-tosca-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(13, 148, 136, 0.45);
}

/* Scrolled Navbar State */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

/* Subtle Shimmer Badge */
.badge-shimmer {
  background: linear-gradient(90deg, rgba(204, 251, 241, 0.8) 0%, rgba(240, 253, 250, 1) 50%, rgba(204, 251, 241, 0.8) 100%);
  background-size: 200% 100%;
  animation: subtleShimmer 4s infinite linear;
}

/* ========================================================
   SEAMLESS INFINITE MARQUEE SCROLL ANIMATION
   ======================================================== */
@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.animate-marquee {
  display: inline-flex !important;
  width: max-content !important;
  white-space: nowrap !important;
  animation: marqueeScroll 45s linear infinite !important;
  will-change: transform;
}

.animate-marquee:hover {
  animation-play-state: paused !important;
}

