 /* Header Styles */
 .main-header {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-light);
}

a{
    text-decoration: none;
}

/* Modern Custom Scrollbar Design - Style 1 */
/* Clean & Minimalist */
::-webkit-scrollbar {
    width: 16px;
    padding: 2px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-left: 1px solid #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border: 4px solid transparent;
    background-clip: padding-box;
    border-radius: 9999px;
    box-shadow: inset 0 0 0 10px #cbd5e1;
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: inset 0 0 0 10px #94a3b8;
}

/* Style 2 - Modern Glass Effect */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    backdrop-filter: blur(7px);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border: 3px solid rgba(241, 245, 249, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Style 3 - Dots Style */
::-webkit-scrollbar {
    width: 10px;
    margin-right: 2px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 10px;
    background-image: radial-gradient(circle at center, #fff 2px, transparent 2px);
    background-size: 6px 6px;
    background-position: 0 0, 0 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #64748b;
}

/* Style 4 - Neon Effect */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 8px;
    box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
    box-shadow: 0 0 15px #2563eb, 0 0 30px #2563eb;
}

/* Style 5 - Line Pattern */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: repeating-linear-gradient(
        45deg,
        #94a3b8 0px,
        #94a3b8 2px,
        #cbd5e1 2px,
        #cbd5e1 4px
    );
    border: 3px solid #f8fafc;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: repeating-linear-gradient(
        45deg,
        #64748b 0px,
        #64748b 2px,
        #94a3b8 2px,
        #94a3b8 4px
    );
}

/* Firefox compatibility */
* {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile optimization */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.medical-loader {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pills Circle */
.pills-circle {
    position: relative;
    width: 120px;
    height: 120px;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pills Styles */
.pill {
    position: absolute;
    width: 40px;
    height: 16px;
    border-radius: 8px;
    animation: self-rotate 8s linear infinite;
}

@keyframes self-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.pill-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #4299e1;
}

.pill-1::before {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 16px;
    background: #fff;
    border: 2px solid #4299e1;
    border-radius: 8px 0 0 8px;
    box-sizing: border-box;
}

.pill-2 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #48bb78;
}

.pill-2::before {
    content: '';
    position: absolute;
    right: 0;
    width: 20px;
    height: 16px;
    background: #fff;
    border: 2px solid #48bb78;
    border-radius: 0 8px 8px 0;
    box-sizing: border-box;
}

.pill-3 {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ed64a6;
    border-radius: 50%;
}

.pill-4 {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ecc94b;
    border-radius: 8px;
}

/* Heart Animation */
.heart {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ff4757;
    transform: rotate(45deg);
    animation: heartbeat 1.2s ease-in-out infinite;
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ff4757;
    border-radius: 50%;
}

.heart::before {
    left: -15px;
}

.heart::after {
    top: -15px;
}

@keyframes heartbeat {
    0% { transform: rotate(45deg) scale(0.8); }
    5% { transform: rotate(45deg) scale(0.9); }
    10% { transform: rotate(45deg) scale(0.8); }
    15% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(0.8); }
    100% { transform: rotate(45deg) scale(0.8); }
}

/* Loading Text */
.loading-text {
    position: absolute;
    bottom: -30px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #4299e1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 4px;
    height: 4px;
    background: #4299e1;
    border-radius: 50%;
    animation: dots 1.5s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Fade Out Animation */
.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
}

/* Logo Styles */
.header-left {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

/* Navigation Styles */
.navbar {
    padding: 0;
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 0 15px;
}

.nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4299e1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4299e1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-top: 10px;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-column h4 {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.mega-menu-column ul li a:hover {
    color: #4299e1;
}

/* Appointment Button Styles */
.appointment-btn {
    background: #4299e1;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #4299e1;
    text-decoration: none;
}

.appointment-btn:hover {
    background: white;
    color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.2);
}

.header-right{
    text-align: right;
}

@media (max-width: 991.5px){
    .header-left{
        text-align: right;
    }
    .appointment-btn{
        background-color: transparent;
        border: 0;
        padding: 0;
    }
    .appointment-btn i{
        color: #4299e1;
    }
    .header-center{
        text-align: center;
    }
}

.navbar-expand-lg .navbar-collapse{
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .mega-menu {
        position: static;
        box-shadow: none;
        padding: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item {
        padding: 5px 0;
    }
}

/* Mobile Header Styling */
.main-header {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Enhanced Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 0 30px;
    z-index: 1100;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    transform: translateX(300px);
}

/* Logo in Sidebar */
.sidebar-logo {
    padding: 0 25px;
    margin-bottom: 30px;
}

.sidebar-logo img {
    max-width: 150px;
    height: auto;
}

/* Navigation Links */
.sidebar .nav-link {
    color: #e2e8f0;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #4299e1;
    border-left-color: #4299e1;
}

.sidebar .nav-link i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Enhanced Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
    z-index: 1050;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Toggle Button */
#menuToggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

#menuToggle i {
    font-size: 24px;
    color: #4299e1;
    transition: all 0.3s ease;
}

#menuToggle:hover i {
    transform: scale(1.1);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-footer .social-links {
    display: flex;
    gap: 15px;
}

.sidebar-footer .social-links a {
    color: #e2e8f0;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar-footer .social-links a:hover {
    color: #4299e1;
    transform: translateY(-2px);
}

/* Animation Classes */
.slide-in {
    animation: slideIn 0.4s forwards;
}

.slide-out {
    animation: slideOut 0.4s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .sidebar {
        display: none;
    }
    
    #menuToggle {
        display: none;
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        display: none;
    }
    
    .header-right .appointment-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(280px);
    }
}

/* Scroll Progress Indicator Styles */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #4299e1, #2b6cb0);
    transition: width 0.1s ease;
    position: relative;
}

.scroll-progress-bar::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #2b6cb0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(43, 108, 176, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-progress-bar.scrolling::after {
    opacity: 1;
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

.back-to-top:hover {
    background-color: #2b6cb0;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Make button smaller on mobile */
@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
        font-size: 16px;
    }
}