@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #4A90E2;    /* Trust and stability */
    --secondary-green: #50C878; /* Health and recovery */
    --bg-clinical: #F8FAFC;     /* Eye strain reduction */
    --accent-coral: #FF7F50;    /* Urgent alerts */
    --text-dark: #2C3E50;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-clinical);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* UI Affordances: Soft, approachable cards */
.card-clinical {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.text-primary-custom { color: var(--primary-blue) !important; }
.bg-primary-custom { background-color: var(--primary-blue) !important; }
.btn-primary-custom { 
    background-color: var(--primary-blue); 
    border-color: var(--primary-blue);
    color: white;
    border-radius: 20px; /* Soft buttons */
}
.btn-primary-custom:hover { background-color: #3A78C4; color: white; }

/* Sticky Sidebars */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Hide scrollbar for sidebars for a cleaner look */
.sticky-sidebar::-webkit-scrollbar { display: none; }

@media print {
    .col-lg-3, .navbar, .btn, .alert, .compose-box { display: none !important; }
    .col-lg-6 { width: 100% !important; margin: 0 !important; }
    .card { border: 1px solid #ccc !important; box-shadow: none !important; }
    body { background: white !important; }
}

/* ==========================================
   MOBILE UX (Twitter-Style UI)
   ========================================== */
@media (max-width: 991.98px) {
    /* Create space at the bottom of the page so content isn't hidden behind the nav */
    body { padding-bottom: 70px; }
}

/* Sticky Bottom Navigation */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    z-index: 1030;
    display: flex; justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom); /* Fix for iPhone home bar */
}

.mobile-bottom-nav .nav-link {
    color: #6c757d; text-align: center;
    font-size: 0.7rem; padding: 0.5rem 0; width: 100%;
}

.mobile-bottom-nav .nav-link.active {
    color: var(--primary-blue); font-weight: bold;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.35rem; display: block; margin-bottom: 2px;
}

/* Floating Action Button (FAB) */
.fab-btn {
    position: fixed; bottom: 80px; right: 20px;
    width: 56px; height: 56px; border-radius: 50%;
    background-color: var(--primary-blue); color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.4);
    z-index: 1040; font-size: 1.5rem; border: none; transition: 0.2s;
}
.fab-btn:active { transform: scale(0.95); }