* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f5f7fb;
}

.app {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #f5f7fb;
  padding: 24px 16px;
  border-right: 1px solid #e5e7eb;
  width: 300px;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 2;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}

.patients-card {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 367px;
}

.logo {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.topbar .logo {
  margin-right: auto;
  margin-left: 0;
}

.patient-list { list-style: none; margin: 8px 0; padding: 0; overflow-y: auto; flex: 1; -ms-overflow-style: auto; scrollbar-width: thin; }

/* Patient list scrollbar styling (cross-browser) */
.patient-list::-webkit-scrollbar {
  width: 8px;
}
.patient-list::-webkit-scrollbar-track {
  background: transparent;
}
.patient-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.patient-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.patient-list li {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 6px;
}

.patient-list li.active,
.patient-list li:hover {
  background: #e0f2fe;
}

.patient-list span {
  font-size: 12px;
  color: #64748b;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.avatar.small {
  width: 30px;
  height: 30px;
}

.main {
  display: flex;
  flex: 1;
  overflow: hidden;
  grid-column: 2;
  grid-row: 2;
}

.topbar {
  height: 72px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  grid-column: 1 / -1;
  grid-row: 1;
  background: var(--unnamed-color-ffffff) 0% 0% no-repeat padding-box;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  border-radius: 70px;
  opacity: 1;
  top: 18px;
  left: 18px;
  width: 1665px;
  margin-left: 12px;
}

.menu span {
  margin-right: 18px;
  cursor: pointer;
}

.menu .active {
  background: #01F0D0;
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
}

.doctor-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  padding: 24px;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  grid-auto-rows: auto;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.card {
  background: #fff;
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  
}

.profile .card,
.bp-card {
  padding: 16px;
}

.bp-card {
  grid-column: 1;
  margin-bottom: 0;
  padding-bottom: 8px;
}

.profile {
  text-align: center;
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
  padding: 12px 12px 8px 12px !important;
}

.diagnostic {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
}
 
.lab-results {
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 100px;
}

.bp-header {
  margin-bottom: 12px;
}

.bp-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.chart-box {
  background: #f5f3ff;
  padding: 16px;
  border-radius: 16px;
  height: 280px;
}

.chart-box canvas {
  width: 100% !important;
  height: 220px !important;
}

.bp-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.bp-stat {
  background: #fafafa;
  padding: 14px;
  border-radius: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.pink {
  background: #ec4899;
}

.dot.purple {
  background: #8b5cf6;
}

.mini-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini {
  padding: 16px;
  border-radius: 16px;
}

.mini.blue {
  background: #e0f2fe;
}

.mini.pink {
  background: #ffe4e6;
}

.mini.red {
  background: #fee2e2;
}

.icon-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 8px;
}

.info-list {
  list-style: none;
  margin-top: 12px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 1px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-list small {
  color: #64748b;
  font-size: 13px;
}

.info-list p {
  font-weight: 600;
  font-size: 14px;
}

.show-all-btn {
  background: #01F0D0;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 26px;
  width: 100%;
  transition: background 0.3s ease;
}

.show-all-btn:hover {
  background: #0d9488;
}

.diagnostic h3 {
  margin-bottom: 16px;
}

.diagnostic-table {
  overflow-y: auto;
  max-height: 300px;
  padding-right: 8px;
}

.diagnostic-table::-webkit-scrollbar {
  width: 8px;
}

.diagnostic-table::-webkit-scrollbar-track {
  background: transparent;
}

.diagnostic-table::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.diagnostic-table::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 1.4fr 2.2fr 1fr;
  padding: 10px 0px 15px 30px;
}

.table-header {
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #e5e7eb;
}

.table-row {
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  margin-bottom: 8px;
}

.lab-results h3 {
  margin-bottom: 16px;
}

.lab-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 40px;
  background: #f8fafc;
  margin-bottom: 10px;
}

/* Final layout tweaks to match screenshot */
.card h3 {
  margin: 0 0 12px 0;
}

.bp-card {
  padding-bottom: 12px; /* reduce bottom space */
}

.profile {
  padding-bottom: 12px !important; /* compact bottom padding */
}

.diagnostic,
.lab-results {
  margin-bottom: 24px;
  margin-left: 12px;  
}

.table-header {
  padding: 10px 0;
}

.patients-card {
  padding-bottom: 12px;
}

.patient-list li p { margin: 0; }

/* Final alignment tweaks to better match the mockup */
.content { align-items: start; margin-left: 80px;}
.patients-card { min-height: calc(105vh - 0px); }
.patient-list { padding-right: 8px; min-height: 0; }
.patient-list li { align-items: center; }

.profile {
  position: sticky;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px !important;
   top: 0px;
  left: 1216px;
  width: 367px;
  height: 515px;
}

.show-all-btn {
  margin-top: auto;
  width: 100%;
}

.diagnostic-header{
  top: 920px;
  left: 437px;
  width: 828px;
  height: 48px;
  background: #F6F7F8 0% 0% no-repeat padding-box;
  border-radius: 24px;
  opacity: 1;
  display: grid;
  grid-template-columns: 1.4fr 2.2fr 1fr;
  padding: 10px 0px 15px 30px;
}