/* Global Resets */
body {
    font-family: 'Hind Siliguri', sans-serif;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
input, select, textarea { font-size: 16px; }

/* Clear Button Visibility Logic */
#searchInput:placeholder-shown + #clearSearchBtn { display: none; }
#searchInput:not(:placeholder-shown) + #clearSearchBtn { display: flex; }

/* Pill Shape & Glow for Categories */
.cat-btn {
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-btn.active {
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.4);
    transform: scale(1.05);
}

/* Animations */
.card-hover { transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s; will-change: transform; }
.card-hover:active { transform: scale(0.98); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }

.skeleton {
    background: #f1f5f9;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
.dark .skeleton {
    background: #1e293b;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Loaders & Modals */
#siteLoader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s ease-out, visibility 0.5s ease-out; }
.dark #siteLoader { background: #0f172a; }
.loader-spinner { width: 45px; height: 45px; border: 4px solid #e2e8f0; border-top: 4px solid #0d9488; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#contactModal { transition: opacity 0.2s ease, visibility 0.2s ease; backdrop-filter: blur(4px); }
.modal-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.modal-visible { opacity: 1; visibility: visible; pointer-events: auto; }

#loadingOverlay { transition: opacity 0.3s; }
#captureContainer { position: absolute; top: -9999px; left: -9999px; width: 750px; font-family: 'Hind Siliguri', sans-serif; z-index: -1; }
.pro-card { background: linear-gradient(145deg, #ffffff, #f8fafc); }
.pro-watermark { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); }

#toast { visibility: hidden; min-width: 200px; background-color: #1e293b; color: #fff; text-align: center; border-radius: 50px; padding: 12px 24px; position: fixed; z-index: 9999; left: 50%; bottom: 80px; transform: translateX(-50%); font-size: 14px; font-weight: 500; opacity: 0; transition: opacity 0.3s, bottom 0.3s; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; gap: 8px; }
#toast.show { visibility: visible; opacity: 1; bottom: 100px; }

.pb-safe { padding-bottom: env(safe-area-inset-bottom); }
.nav-active { color: #0d9488 !important; }
.dark .nav-active { color: #2dd4bf !important; }
.mask-linear-fade { mask-image: linear-gradient(to right, black 90%, transparent 100%); -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%); }
button:active { transform: scale(0.95); }
#installBtn { animation: bounce-subtle 2s infinite; }
@keyframes bounce-subtle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* Sticky Header Logic */
#mainNav { position: sticky; top: 0; transition: transform 0.3s ease; }
#hospitalHeader { position: relative; z-index: 40; }
#searchContainer { position: sticky; top: 64px; z-index: 30; transition: top 0.3s ease; }
body.hospital-mode #mainNav { transform: translateY(-100%); position: absolute; width: 100%; }
body.hospital-mode #hospitalHeader { position: sticky; top: 0; margin-bottom: 0; border-bottom: 1px solid rgba(226, 232, 240, 0.6); background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 50; padding-top: 10px; padding-bottom: 10px; }
body.dark.hospital-mode #hospitalHeader { background-color: rgba(15, 23, 42, 0.95); border-color: rgba(30, 41, 59, 0.8); }
body.hospital-mode #searchContainer { top: 85px; }
body.hospital-mode #hospitalHeader > div > div { border: none; box-shadow: none; background: transparent; padding: 0; }
