:root {
    --bg-page: #e0f2fe; /* Light sky blue background for the page */
    --canvas-bg: transparent; /* Canvas is transparent to show gradient background */
    --card-bg: #ffffff;
    
    --text-dark: #0f172a;
    --text-muted: #64748b;
    
    --primary-cyan: #06b6d4;
    --primary-teal: #0d9488;
    
    --red: #ef4444;
    --green: #10b981;
    
    --border-color: rgba(0,0,0,0.05);
    
    --shadow-window: 0 25px 50px -12px rgba(6, 182, 212, 0.25), 0 0 0 1px rgba(255,255,255,0.5) inset;
    --shadow-float: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    /* Soft gradient background for the whole page */
    background: radial-gradient(circle at top left, #e0f2fe 0%, #f0fdfa 50%, #eff6ff 100%);
    color: var(--text-dark);
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo b, .app-title b, .user-greeting b { font-family: 'Outfit', sans-serif; }

/* Canvas & Glowing Background Orbs */
.presentation-canvas {
    width: 100%; max-width: 1400px; height: 900px;
    position: relative; 
    display: flex; flex-direction: column;
}

.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; z-index: 0; pointer-events: none;
}
.glow-orb.top-left {
    width: 500px; height: 500px; background: #22d3ee; top: -100px; left: -100px;
}
.glow-orb.bottom-right {
    width: 600px; height: 600px; background: #818cf8; bottom: -100px; right: -100px;
}

/* Header */
.presentation-header {
    text-align: center; padding: 3rem 4rem 1rem; position: relative; z-index: 10;
}
.presentation-header h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; color: #0f172a; text-shadow: 0 2px 10px rgba(255,255,255,0.8);}
.presentation-header p { color: #334155; font-size: 1.1rem; max-width: 800px; margin: 0 auto; line-height: 1.5; font-weight: 500;}

/* Floating Showcase Layout */
.floating-showcase {
    position: relative; width: 100%; height: 700px; margin-top: 2rem; z-index: 10;
}

/* Mockup Windows (The "Glass Panels") */
.mockup-window {
    position: absolute;
    background: rgba(255, 255, 255, 0.85); /* Frosted glass */
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--shadow-window);
    border: 1px solid rgba(255,255,255,0.6);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform 0.3s ease;
}

/* Mac-style Window Header */
.mac-header {
    display: flex; align-items: center; padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.5); border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mac-header i { width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; background: #cbd5e1; }
.mac-header i:nth-child(1) { background: #ff5f56; }
.mac-header i:nth-child(2) { background: #ffbd2e; }
.mac-header i:nth-child(3) { background: #27c93f; }
.mac-header span { margin-left: auto; margin-right: auto; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding-right: 48px; /* offset for dots to center text */}

.window-body { flex: 1; display: flex; flex-direction: column; overflow: hidden;}


/* --- 1. Left Float (Hospital Operations) --- */
.left-float {
    width: 320px; height: 550px;
    left: 40px; top: 80px;
    z-index: 20;
    box-shadow: var(--shadow-float);
}
.left-float .window-body { padding: 1.5rem; background: rgba(248, 250, 252, 0.6); gap: 1.5rem; overflow-y: auto;}
.app-header { display: flex; align-items: center; gap: 0.8rem; }
.app-icon { font-size: 2rem; background: white; padding: 0.5rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); line-height: 1;}
.app-title { font-size: 1.2rem; color: var(--text-dark);}
.alert-bar { display: flex; align-items: center; gap: 0.5rem; background: #fffbeb; color: #b45309; padding: 0.8rem; border-radius: 8px; font-size: 0.85rem; font-weight: 700; border: 1px solid #fde68a;}
.pulse { width: 10px; height: 10px; background: #f59e0b; border-radius: 50%; animation: pulse 2s infinite;}
@keyframes pulse { 0% {box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);} 70% {box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);} 100% {box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);} }
.v-metrics { display: flex; flex-direction: column; gap: 1rem;}
.v-metric { background: white; padding: 1rem; border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.02);}
.v-metric span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600;}
.v-metric b { font-size: 1.4rem; display: block; margin-top: 0.2rem; margin-bottom: 0.5rem;}
.v-metric .bar { width: 100%; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden;}
.v-metric .fill { height: 100%; background: var(--primary-cyan); border-radius: 3px;}
.v-metric .fill.red { background: var(--red); }
.fleet-map h4 { font-size: 0.9rem; margin-bottom: 0.8rem;}
.map-view { position: relative; height: 120px; border-radius: 12px; overflow: hidden; background: #e2e8f0;}
.map-view img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; filter: grayscale(100%) contrast(1.2);}
.map-view .pin { position: absolute; width: 12px; height: 12px; background: #334155; border-radius: 50%; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.3);}
.map-view .pin.active { background: var(--red); box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(239, 68, 68, 0.3);}


/* --- 2. Main Center Float (Clinical Dashboard) --- */
.main-window {
    width: 900px; height: 600px;
    left: 50%; top: 0;
    transform: translateX(-50%);
    z-index: 15; /* Behind left/right floats */
}
.main-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: white; border-bottom: 1px solid var(--border-color);}
.main-topbar .logo { font-size: 1.2rem; display: flex; align-items: center; gap: 0.4rem;}
.main-topbar .logo-icon { color: var(--primary-cyan); font-size: 1.4rem;}
.main-topbar nav { display: flex; gap: 1rem; margin-left: 2rem; flex: 1;}
.main-topbar nav a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 600;}
.main-topbar nav a.active { color: var(--primary-cyan); }
.right-actions { display: flex; align-items: center; gap: 1rem;}
.search-pill { background: #f1f5f9; padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.8rem; color: var(--text-muted);}
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover;}

.main-content { display: flex; height: 100%; background: #f8fafc;}
.queue-sidebar { width: 280px; background: white; border-right: 1px solid var(--border-color); padding: 1.5rem; overflow-y: auto;}
.queue-sidebar h4 { font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--text-dark);}
.q-card { display: flex; gap: 0.8rem; align-items: center; padding: 1rem; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 0.8rem;}
.q-card.active { background: var(--light-cyan); border-color: #cffafe;}
.q-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0;}
.q-dot.blink { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); animation: pulse 2s infinite;}
.q-text { flex: 1; display: flex; flex-direction: column;}
.q-text b { font-size: 0.9rem; color: var(--text-dark);}
.q-text span { font-size: 0.75rem; color: var(--text-muted);}
.q-time { font-size: 0.8rem; font-weight: 700; color: var(--text-dark);}
.q-time.red { color: var(--red);}

.active-patient-view { flex: 1; padding: 2rem; overflow-y: auto;}
.patient-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem;}
.ph-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.4rem;}
.tags { display: flex; gap: 0.5rem;}
.tags span { background: #f1f5f9; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted);}
.btn-cyan { background: var(--primary-cyan); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 6px rgba(6, 182, 212, 0.2);}

.clinical-grid { display: flex; flex-direction: column; gap: 1.5rem;}
.c-card { background: white; border-radius: 12px; padding: 1.5rem; border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.02);}
.vitals-summary { display: flex; justify-content: space-between;}
.v-box { display: flex; flex-direction: column; align-items: center; gap: 0.3rem;}
.v-box i { font-style: normal; font-size: 1.5rem; background: #f1f5f9; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px;}
.v-box b { font-size: 1.3rem; margin-top: 0.5rem;}
.v-box span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600;}

.mri-viewer .card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem;}
.tag-red { background: #fef2f2; color: var(--red); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; border: 1px solid #fecaca;}
.scan-area { position: relative; width: 100%; height: 220px; background: black; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;}
.scan-area img { height: 100%; object-fit: contain; filter: grayscale(100%);}
.scan-tools { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 0.5rem;}
.scan-tools button { background: rgba(0,0,0,0.6); color: white; border: 1px solid rgba(255,255,255,0.2); padding: 0.3rem 0.6rem; border-radius: 4px; font-size: 0.7rem;}
.scan-notes { font-size: 0.85rem; color: var(--text-dark); background: #f8fafc; padding: 1rem; border-radius: 8px;}


/* --- 3. Right Float (Patient Portal) --- */
.right-float {
    width: 360px; height: 500px;
    right: 40px; top: 180px;
    z-index: 20;
    box-shadow: var(--shadow-float);
}
.right-float .window-body { padding: 1.5rem; background: rgba(255,255,255,0.8); gap: 1.5rem; overflow-y: auto;}
.alt-header { display: flex; justify-content: space-between; align-items: center;}
.user-greeting { display: flex; align-items: center; gap: 1rem;}
.user-greeting div { display: flex; flex-direction: column;}
.user-greeting span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500;}
.user-greeting b { font-size: 1.1rem; color: var(--text-dark);}
.app-icon.cyan { color: var(--primary-cyan); box-shadow: none; border: 1px solid var(--border-color); font-size: 1.5rem;}

.p-card { background: white; padding: 1.2rem; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid var(--border-color);}
.p-card h4 { font-size: 0.9rem; margin-bottom: 1rem; color: var(--text-dark);}

.glucose-chart { width: 100%; height: 80px; background: #f8fafc; border-radius: 8px; display: flex; align-items: flex-end; padding: 0.5rem;}
.glucose-chart svg { width: 100%; height: 100%;}

.visit-item { display: flex; gap: 1rem; align-items: center;}
.v-date { background: var(--light-cyan); color: var(--primary-cyan); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 8px;}
.v-date b { font-size: 1.2rem; line-height: 1;}
.v-date span { font-size: 0.65rem; font-weight: 700; text-transform: uppercase;}
.v-desc { display: flex; flex-direction: column;}
.v-desc b { font-size: 0.95rem;}
.v-desc span { font-size: 0.8rem; color: var(--text-muted);}

.rx-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;}
.rx-row:last-child { margin-bottom: 0;}
.rx-row i { font-style: normal; font-size: 1.2rem; background: #f1f5f9; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px;}
.rx-row div { display: flex; flex-direction: column;}
.rx-row b { font-size: 0.85rem;}
.rx-row span { font-size: 0.75rem; color: var(--text-muted);}
