/* ============================================================
   Lusaka Eye Hospital — Clinical Notes & Dot Phrases Module
   Mobile-first, clean Slate/Sky/Indigo palette matching LEH Portal
   ============================================================ */

:root {
  --leh-blue: #0284c7;
  --leh-blue-dark: #0369a1;
  --leh-blue-light: #e0f2fe;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-900);
  -webkit-font-smoothing: antialiased;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

#main-sidebar {
  width: 264px;
  background-color: #ffffff;
  border-right: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 264px;
  min-width: 0;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  #main-sidebar {
    transform: translateX(-100%);
  }
  #main-sidebar.open {
    transform: translateX(0);
  }
  .content-wrapper {
    margin-left: 0;
  }
}

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 30;
}

#nav-overlay.open {
  display: block;
}

.top-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  margin: 3px 12px;
}

.nav-item:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.nav-item.active {
  background-color: var(--leh-blue-light);
  color: var(--leh-blue-dark);
  font-weight: 700;
}

.view-section {
  display: none;
  flex-direction: column;
  animation: viewFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
  display: flex;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.note-card-anim {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.note-card-anim:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08);
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-backdrop {
  animation: fadeModal 0.18s ease-out;
}

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