@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');
        

        
        :root {
            --primary-blue: #1e40af;
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --glass-bg: rgba(255, 255, 255, 0.04);
            --glass-border: rgba(255, 255, 255, 0.05);
            --text-primary: #2d3748;
            --text-secondary: #718096;
            --text-light: #a0aec0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #f8fafc !important;
            height: 100vh;
            overflow: hidden;
            position: relative;
        }

        body::before {
            display: none !important;
        }
        @media (max-width: 1024px) {
            body {
                overflow: auto !important;
            }
        }

        .container {
            display: grid;
            grid-template-columns: 320px 1fr 320px;
            height: 100dvh;
            gap: 2px;
            overflow: hidden;
            position: relative;
            z-index: 2;
        }

        
        /* Left Pane - Navigation */
        .left-pane {
            background: linear-gradient(to bottom, #009FE3, #008fcd);
            position: relative;
            overflow-y: auto;
            border-right: 1px solid var(--neutral-200);
        }

        
        .logo-section {
            padding: 1.5rem 1.5rem;
            text-align: center;
            position: relative;
            z-index: 2;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 1rem;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 600;
            color: white;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }
        .left-pane .logo-section img {
            border-radius: 12px; 
            overflow: hidden;
             
        }

        .logo-subtitle {
            font-size: 0.875rem;
            font-weight: 400;
            color: white;
            letter-spacing: 0.5px;
        }

        .nav-section {
            padding: 0 1rem;
            margin-bottom: 2rem;
            position: relative;
            z-index: 2;
        }

        .nav-title {
            font-size: 0.9rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.8;
            margin-bottom: 0.1rem;
            padding: 0.5rem 1.1rem;
            position: relative;
            color: white !important; /* Add this line for pure white */
            align-items: center;
           

        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            padding: 0.5rem 1.1rem;
            margin-bottom: 0.25rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            color: white;
            position: relative;
            overflow: hidden;
        }

        /* Lift all nav items slightly upward without touching the title */
        .nav-item:first-child {
            margin-top: -2rem; /* adjust value for how high you want it */
        }


        .nav-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(4px);
        }

        .nav-item.active {
            background: rgba(255, 255, 255, 0.15);
            box-shadow: inset 3px 0 0 var(--white);
        }

        .nav-icon {
            font-size: 1.125rem;
            width: 20px;
            text-align: center;
        }

        .nav-text {
            font-size: 0.94rem;
            font-weight: 500;
        }
        


        html, body {
            min-height: 100vh;
            height: auto;
        }


        .center-pane {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        }

        .chat-header {
            position: sticky;
            top: 0;
            background: white;
            padding: 0.6rem 1rem;
            border-bottom: 2px solid #e2e8f0;
            display: flex;
            justify-content: space-between; /* 👈 left & right separation */
            align-items: center;
            height: 48px; /* slim header */
            z-index: 10;
        }


        /* Keep content above overlay */
        .chat-header > * {
            position: relative;
            z-index: 1;
        }


        .ai-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: width 0.3s ease, height 0.3s ease; /* 👈 smooth resize */
        }


        .ai-icon {
            font-size: 2rem;
            z-index: 2;
            filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
        }

        .header-info h2 {
            font-family: "franklin-gothic-urw", "Helvetica Neue", Helvetica, Arial, sans-serif;

            letter-spacing: 2px;
            font-size: 1.5rem;
            font-weight: 900;
            margin-bottom: 0.2rem;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            transition: font-size 0.3s ease, letter-spacing 0.3s ease; /* 👈 smooth shrink */
        }

        /* Smaller version when scrolled */
        .header-info h2.shrink {
            font-size: 1rem;     /* 👈 smaller */
            letter-spacing: 2px; /* 👈 tighter spacing */
        }



        .header-status {
            font-size: 0.9rem;
            font-weight: 500;
            color: black;
            display: flex;
            align-items: center;
            gap: 0.4rem; /* space between dot & text */
        }
        .status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #10b981; /* green */
            animation: statusPulse 2s infinite;
        }

        @keyframes statusPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }


        .chat-messages {
            flex: 1;
            overflow-y: auto; /* ✅ only shows scrollbar when needed */
            padding: 2rem;
            background: 
                radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
            position: relative;

            display: flex;
            flex-direction: column;
        }


        .welcome-message {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-secondary);
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid #009FE3;
            border-radius: 24px;
            margin: 2rem auto;
            max-width: 700px;
            position: relative;
            overflow: hidden;
        }

        .welcome-message::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            animation: welcomeShimmer 3s infinite;
        }

        @keyframes welcomeShimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .welcome-message {
            display: flex;                  /* enable flexbox */
            flex-direction: column;         /* stack children vertically */
            justify-content: center;        /* center vertically */
            align-items: center;            /* center horizontally */
            
            padding: 40px 20px;             /* increase padding for taller card */
            margin: 2rem auto;
            
            min-height: 400px;              /* ensure the card is tall */
            max-width: 600px;
            
            background: var(--white);
            border: 3px solid #e2e8f0; 
            border-radius: 16px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .welcome-to {
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            font-size: 1.2rem;              /* slightly larger */
            color: gray;
            letter-spacing: 3px;
            margin-bottom: 10px;
            text-transform: uppercase;
        }

        .hospital-name {
            font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
            font-size: 2.5rem;              /* larger heading */
            font-weight: 700;
            color: black;
            margin: 0 0 20px 0;
            line-height: 1.2;
        }

        .welcome-text {
            font-size: 1.1rem;
            line-height: 1.5;
            margin-top: 20px;
            margin-bottom: 0;
            color: var(--text-primary);
            font-weight: 400;
        }


        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .quick-action {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 2rem 1.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .quick-action::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--primary-gradient);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .quick-action:hover::before {
            opacity: 0.1;
        }

        .quick-action:hover {
            transform: translateY(-8px) scale(1.05);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .quick-action-icon {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
            animation: iconFloat 2s infinite ease-in-out;
        }

        @keyframes iconFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        .quick-action-text {
            font-weight: 700;
            color: var(--text-primary);
            font-size: 1.1rem;
            letter-spacing: 0.3px;
        }

        .message {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 2rem;
            animation: messageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes messageSlideIn {
            from { 
                opacity: 0; 
                transform: translateY(30px) scale(0.95); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0) scale(1); 
            }
        }

        .message.user {
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }

        .message-avatar.ai {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            animation: aiAvatarGlow 2s infinite ease-in-out;
        }
        .message-avatar.ai img {
            object-fit: contain;
            width: 100%;
            height: 100%;
        }

        .message-avatar.user {
            background: var(--secondary-gradient);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.4);
        }

        @keyframes aiAvatarGlow {
            0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
            50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.8); }
        }

        .message-bubble {
            max-width: 75%;
            padding: 1.5rem 2rem;
            border-radius: 24px;
            position: relative;
            word-wrap: break-word;
            line-height: 1.6;
            font-weight: 500;
        }

        .message-bubble.ai {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 24px 24px 24px 8px;
            color: var(--text-primary);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .message-bubble.user {
            background: var(--secondary-gradient);
            color: white;
            border-radius: 24px 24px 8px 24px;
            box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            margin: 5px 0;
            border-radius: 18px;
            background-color: #f0f0f0;
            max-width: 70%;
            width: fit-content;
            align-self: flex-start;
            animation: fadeIn 0.3s;
        }
        
        .typing-dots {
            display: flex;
            gap: 4px;
        }
        
        .typing-dot {
            width: 8px;
            height: 8px;
            background-color: #888;
            border-radius: 50%;
            animation: typingAnimation 1.4s infinite ease-in-out;
        }
        
        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .typing-dot:nth-child(3) { animation-delay: 0.4s; }
        
        @keyframes typingAnimation {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-5px); }
        }

        .chat-input {
            padding: 0.2rem 2rem;
            background: var(--glass-bg);
            backdrop-filter: blur(30px);
            border-top: 1px solid var(--glass-border);
            position: relative;
        }

        .input-container {
            display: flex;
            align-items: center;
            border: 3px solid #009FE3;
            border-radius: 10px;
            padding: 0.3rem 0.4rem; /* reduced container padding */
            background: #009FE3;
            margin: 0;
        }

        .message-input {
            flex: 1;
            padding: 0.6rem 1rem; /* reduced from 1.5rem 2rem */
            background: white;
            backdrop-filter: blur(20px);
            border: 2px solid var(--glass-border);
            border-radius: 15px; /* slightly smaller radius to match reduced size */
            font-size: 0.95rem;
            resize: none;
            min-height: 28px; /* smaller starting height */
            max-height: 80px; /* still allows a few lines before expanding */
            line-height: 1.3;
            transition: all 0.3s ease;
            color: var(--text-primary);
            font-weight: 500;
            box-sizing: border-box;
        }

        .message-input::placeholder {
            color: var(--text-light);
        }

        .message-input:focus {
            outline: none;
            border-color: rgba(102, 126, 234, 0.5);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }


        .send-button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            border: none;
            color: #009FE3;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }

        .send-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            transition: all 0.4s ease;
            transform: translate(-50%, -50%);
        }

        .send-button:hover::before {
            width: 100%;
            height: 100%;
        }

        .send-button:hover {
            
            box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
        }

        .send-button:disabled {
            background: linear-gradient(135deg, #9ca3af, #6b7280);
            cursor: not-allowed;
            transform: none;
        }

        
        

        /* Enhanced Responsive Design */
        @media (max-width: 1400px) {
            .container {
                grid-template-columns: 280px 1fr 280px;
            }
        }

        @media (max-width: 1024px) {
            .container {
                grid-template-columns: 1fr;
                grid-template-rows: auto 1fr;
            }
            
            .left-pane, .right-pane {
                display: block;
            }
            
            .center-pane {
                grid-row: 1 / -1;
            }
            
            .message-bubble {
                max-width: 90%;
            }
            
            .quick-actions {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .welcome-title {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 640px) {
            .quick-actions {
                grid-template-columns: 1fr;
            }
            
            .chat-messages {
                padding: 1.5rem;
            }
            
            .chat-input {
                padding: 1.5rem;
            }
            
            .welcome-message {
                padding: 3rem 1.5rem;
            }
        }

        /* Custom Enhanced Scrollbar */
        .left-pane::-webkit-scrollbar,
        .chat-messages::-webkit-scrollbar,
        .right-pane::-webkit-scrollbar {
            width: 8px;
        }

        .left-pane::-webkit-scrollbar-track,
        .chat-messages::-webkit-scrollbar-track,
        .right-pane::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb,
        .right-pane::-webkit-scrollbar-thumb,
        .left-pane::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
            border-radius: 4px;
        }

        .left-pane::-webkit-scrollbar-thumb:hover,
        .chat-messages::-webkit-scrollbar-thumb:hover,
        .right-pane::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
        }
        .message-bubble.ai p { 
          margin: 0 0 1rem 0; 
          line-height: 1.6; 
        }
        .message-bubble.ai p:last-child { 
          margin-bottom: 0; 
        }


        /* Loading Animation */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: opacity 0.5s ease;
        }

        .loading-content {
            text-align: center;
            color: white;
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 2rem;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Floating particles animation */
        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            animation: float 6s infinite ease-in-out;
            pointer-events: none;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
            50% { transform: translateY(-100vh) rotate(180deg); opacity: 1; }
        }
        .ai-avatar img.ai-logo {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: contain;   /* instead of cover */
            background: white;     /* optional: background color behind logo */
            padding: 5px;          /* optional: gives breathing space */
        }

        
        
        .left-pane-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;   /* keep behind pane content */
            opacity: 0.2;  /* adjust transparency so text stays readable */

        }
                
        /* Right Pane Styles */
        /* Right Pane Styles */
        .right-pane {
            padding: 1.5rem;
            overflow-y: auto;
            opacity: 1;
            transform: translateX(0);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            position: relative;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
            border-left: 1px solid #e5e7eb;
            background: white;
            min-height: 0 !important;
            max-height: 100%;
        }
        /* Add a subtle overlay to improve text readability */
        .right-pane::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            z-index: -1;
        }


        .suggestions-title {
            font-family: 'Outfit', sans-serif;
            font-size: 1.2rem;
            font-weight: 700;
            color: #1e3a8a;
            margin-bottom: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Media Section Styles */
        /* Media Section Styles */

        .media-container {
            width: 100%;
            height: 250px; /* Fixed height */
            position: relative;
            border-radius: 12px;
            overflow: hidden; /* This prevents overflow */
            margin-bottom: 0.05rem;
            outline: 1px solid #c3d9ff;

        }

        .media-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;

        }
        

        .media-carousel {
            position: relative;
        }

        .media-item {
            display: none;
        }

        .media-item.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .media-placeholder {
            background: white;
            border: 2px dashed #d1d5db;
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            color: #64748b;
            min-height: 150px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .media-placeholder:hover {
            background: #f1f5f9;
            border-color: #9ca3af;
        }

        .media-placeholder span {
            display: block;
            font-size: 2.5rem;
            margin-bottom: 0.8rem;
        }

        .media-placeholder p {
            font-size: 0.95rem;
            font-weight: 500;
            margin: 0;
        }
        /* All images stack on top of each other */
        .media-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;   /* 👈 ensures image fills container fully */
            opacity: 0;          /* hidden by default */
            transition: opacity 2s ease-in-out; /* smooth fade */
        }

        /* Active image fades in */
        .media-item.active {
            opacity: 1;
            z-index: 2;
        }
        /* --- Carousel crossfade fix --- */
        .media-container { position: relative; } /* already true in your CSS; repeating is harmless */

        .media-carousel .media-item {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;

          /* Key bits for smooth crossfade */
          opacity: 0;
          display: block;                 /* explicitly overrides earlier display:none */
          transition: opacity 3s ease;  /* adjust speed to taste */
          z-index: 1;
          pointer-events: none;           /* ignore clicks on non-active slides */
          will-change: opacity;
        }

        .media-carousel .media-item.active {
          opacity: 1;
          z-index: 2;
          animation: none;                /* kills the old 0.5s fadeIn that was fighting this */
        }



        

        /* Contact Section Styles */
        .contact-section {
            background: white; /* More pronounced gradient */
            border-radius: 16px;
            padding: 1.5rem;
            border: 1px solid #c3d9ff; /* Slightly darker border for contrast */
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1); /* Blue tinted shadow */
        }

        .contact-title {
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            color: #009FE3;
            margin-bottom: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            padding-bottom: 0.8rem;
            border-bottom: 2px solid #e0f2fe;
        }

        .contact-title-icon {
            font-size: 1.4rem;
            color: #3b82f6;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .contact-card {
            background: white !important;
            border-radius: 12px;
            padding: 1rem;
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
            height: auto; /* Reduced size */
        }

        .contact-card:hover {
            background: #f8fafc;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        .contact-card.emergency {
            border-left: 3px solid #ef4444;
        }

        .contact-card.general {
            border-left: 3px solid #3b82f6;
        }

        .contact-card.navigator {
            border-left: 3px solid #10b981;
        }

        .contact-card.location {
            border-left: 3px solid #f59e0b;
        }

        .contact-card.email {
            border-left: 3px solid #8b5cf6;
        }

        .contact-card.hours {
            border-left: 3px solid #06b6d4;
        }

        .contact-card-header {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 0.8rem;
        }

        .contact-card-icon {
            font-size: 0.7rem;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            border-radius: 6px;
            color: #3b82f6;
        }

        .contact-card.emergency .contact-card-icon {
            background: #fef2f2;
            color: #ef4444;
        }

        .contact-card.general .contact-card-icon {
            background: #eff6ff;
            color: #3b82f6;
        }

        .contact-card.navigator .contact-card-icon {
            background: #f0fdf4;
            color: #10b981;
        }

        .contact-card.location .contact-card-icon {
            background: #fffbeb;
            color: #f59e0b;
        }

        .contact-card.email .contact-card-icon {
            background: #f5f3ff;
            color: #8b5cf6;
        }

        .contact-card.hours .contact-card-icon {
            background: #ecfeff;
            color: #06b6d4;
        }

        .contact-card-header h4 {
            font-size: 0.9rem;
            font-weight: 600;
            color: #1f2937;
            margin: 0;
        }

        .contact-card-content {
            color: #4b5563;
        }

        .contact-number, .contact-address, .contact-email, .operating-hours, .emergency-hours {
            font-size: 0.9rem;
            margin: 0.3rem 0;
            font-weight: 500;
            color: #111827;
        }

        .directions-btn, .email-btn {
            background: #e0f2fe;
            border: 1px solid #bae6fd;
            color: #0369a1;
            padding: 0.4rem 0.8rem;
            border-radius: 16px;
            font-size: 0.8rem;
            margin-top: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .directions-btn:hover, .email-btn:hover {
            background: #bae6fd;
            transform: scale(1.03);
        }

        .social-links {
            text-align: center;
            padding-top: 1rem;
            border-top: 1px solid #e5e7eb;
        }

        .social-links p {
            font-size: 0.9rem;
            color: #6b7280;
            margin-bottom: 0.8rem;
            font-weight: 500;
        }

        .social-icons {
            display: flex;
            justify-content: center;
            gap: 0.8rem;
        }

        .social-icon {
            font-size: 1rem;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 50%;
            transition: all 0.3s ease;
            border: 1px solid #e5e7eb;
            color: #4b5563;
            text-decoration: none;
        }

        .social-icon:hover {
            background: #3b82f6;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
        }

        /* Responsive adjustments */
        @media (max-width: 1400px) {
            .contact-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1024px) {
            .right-pane {
                display: none;
            }
        }

        
        /* === Compact Chat Header Overrides === */
        

        .chat-header .ai-avatar {
            width: 80px !important;
            height: 80px !important;
            border-width: 1px !important;
            animation: none !important;           
        }

        

        .chat-header .header-status {
            font-size: 0.85rem !important;
            gap: 0.4rem !important;
        }

        .chat-header .status-indicator {
            width: 6px !important;
            height: 6px !important;
        }
                
        .logo {
            font-weight: 900 !important;  /* force heavier weight */
            font-size: 1.7rem;            /* optional: make slightly bigger */
            letter-spacing: 0.5px;        /* optional: improve readability */
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

        }

        

        

        /* Ultra small screens (phones under 480px) */
        @media (max-width: 480px) {
            .container {
                grid-template-columns: 1fr;
                height: 100vh;   /* fallback */
                height: 100dvh;  /* dynamic */
                height: 100svh;  /* safe area */
            }

            .center-pane {
                display: flex;
                flex-direction: column;
            }

            .chat-header {
                padding: 0.4rem o.2rem;
                gap: 0.1rem;
            }

            .chat-header .ai-avatar {
                width: 50px;
                height: 50px;
            }

            .chat-header .header-info h2 {
                font-size: 1.2rem !important;
            }

            .chat-header .header-status {
                font-size: 0.75rem;
            }

            .chat-messages {
                flex: 1;
                overflow-y: auto;
                padding: 1rem;
                font-size: 0.9rem;
            }

            .welcome-message {
                padding: 1rem;
                font-size: 0.85rem;
            }

            .welcome-to {
                font-size: 0.9rem;
                letter-spacing: 2px;
            }

            .hospital-name {
                font-size: 1.5rem;
            }

            .icon-label {
                font-size: 0.9rem;
            }

            .welcome-text {
                font-size: 1rem;
                line-height: 1.5;
            }

            .chat-input {
                flex-shrink: 0;
                padding: 0.8rem 1rem;
            }

            .message-input {
                font-size: 0.85rem;
                min-height: 40px;
                max-height: 80px; /* slightly smaller for safety */
            }

            .message-input::placeholder {
                font-size: 0.9rem;
            }

            .send-button {
                width: 44px;
                height: 44px;
                font-size: 1.2rem;
            }
        }

        .chat-header,
        .chat-header * { transition: all 200ms ease; } /* smooth overall */

        .chat-header .ai-avatar {
          transform-origin: center;
          transition: transform 220ms ease, border-width 220ms ease;
        }

        

        /* make pseudo-element behave nicely when scaled */
        .chat-header.shrink .ai-avatar::before,
        .chat-header .ai-avatar.shrink::before {
          transform: scale(0.85);
          transition: transform 220ms ease;
        }
        /* Hide the hamburger by default */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #1e40af;
            margin-right: 10px;
        }

        /* Show only on mobile */
        @media (max-width: 1024px) {
            .menu-toggle {
                display: block;
            }
        }

        /* Sidebar toggle behavior on mobile */
        @media (max-width: 1024px) {
          .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.0);
            z-index: 2000;
            display: none;
          }
          .overlay.active {
            display: block;
          }

          .left-pane {
            position: fixed !important;
            top: 0;
            left: -100%;
            width: 260px;
            height: 100%;
            background: #009FE3;
            z-index: 3001; /* higher than overlay */
            transition: left 0.3s ease-in-out;
            display: block;
          }
          .left-pane.active {
            left: 0 !important;
            z-index: 3001 !important;
            display: block !important;
          }
        }
        .overlay {
            pointer-events: none !important;
        }
        /* Hide by default */
        .close-sidebar {
            display: none;
        }

        /* Show only on mobile */
        @media (max-width: 1024px) {
            .close-sidebar {
                display: block;
                position: sticky;
                top: 0;
                right: 0;
                width: 40px;
                height: 40px;
                background: transparent;
                border: none;
                font-size: 2rem;
                font-weight: bold;
                color: #fff;
                cursor: pointer;
                z-index: 3100; /* above sidebar content */
                margin-left: auto;
            }

            .close-sidebar:hover {
                color: #f87171; /* optional hover */
            }
        }
        @media (max-width: 1024px) {
            .chat-header {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 1200;
                padding: 0.4rem 1.8rem;
                gap: 0.1rem;
                background: white; 
            }
            
            
        
            .chat-header .menu-toggle {
                color: #009FE3;
            }
            .chat-header .header-status {
                color: black;
            }
        

            .chat-messages {
                margin-top: 70px; /* equal to header height */
            }
        }
        .message.user {
            margin-top: 12px;  /* or whatever spacing looks good */
        }
        .chat-hint {
            text-align: center;
            font-size: 0.95rem;
            font-weight: 500;
            color: gray;  
            margin-bottom: 0.5rem;
        }
        .welcome-container {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            color: white;

            /* 👇 Force full height */
            height: 100%;
            display: flex;                /* center child */
            justify-content: center;
            align-items: center;
            box-sizing: border-box;       /* include padding in height */
        }

        .welcome-message {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            color: black; /* override parent white text */
            max-width: 700px;             /* keep it readable */
            width: 100%;
        }
        .contact-section {
            border: none !important;
            box-shadow: none !important;
            background: transparent !important;
            padding: 0.8rem 0;
        }

        .contact-title {
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid var(--primary, #007bff);
            padding-bottom: 0.5rem;
        }

        .contact-title-icon i {
            color: var(--primary, #007bff);
        }

        .contact-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .contact-list li {
            margin-bottom: 1.5rem; /* adds space between each contact item */
            padding: 0.6rem 0;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.7rem;
            font-size: 1rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* light divider line */
        }

        .contact-list li:last-child {
            border-bottom: none; /* no line on last item */
        }

        .contact-list i {
            color: var(--primary, #007bff);
            font-size: 1.2rem;
            min-width: 25px;
            text-align: center;
        }

        .contact-list button {
            margin-left: 0.8rem;
            background: var(--primary, #007bff);
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 0.4rem 0.8rem;
            cursor: pointer;
            transition: background 0.3s;
            font-size: 0.9rem;
        }

        .contact-list button:hover {
            background: var(--primary-dark, #0056b3);
        }

        .social-links {
            margin-bottom: 2rem;
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 0.5rem;
        }

        .social-icon i {
            font-size: 1.3rem;
            color: var(--primary, #007bff);
            transition: color 0.3s;
        }

        .social-icon i:hover {
            color: var(--primary-dark, #0056b3);
        }
        .nav-section {
            margin-top: 2rem; /* increase this to 3rem or 4rem if you want more space */
        }
        .social-links {
            margin-bottom: 1rem;
            padding-top: 0.5rem;
            border: none !important;
            box-shadow: none !important;
            text-align: left;
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 0.5rem;
            border-top: none !important;
            border-bottom: none !important;
            box-shadow: none !important;
            justify-content: flex-start;

        }
        .assistant-title {
            font-size: 0.9rem;
            font-weight: 800;
            margin-top: -0.5rem;
            margin-bottom: 1rem;
            color: #666;
            
        }
        .book-appointment-btn {
            display: inline-block;
            background-color: #007bff;
            color: #fff;
            padding: 10px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .book-appointment-btn i {
            margin-right: 6px;
        }

        .book-appointment-btn:hover {
            background-color: #0056b3;
            transform: translateY(-2px);
        }