/* ============================================
   FARMACIA APOLO - BRAND RESKIN
   Navy + Green + Gold on Deep Navy Canvas
   ============================================ */

:root {
  /* Brand Palette */
  --navy: #1E2A8A;
  --navy-dark: #141B5E;
  --green: #46AC78;
  --green-dark: #359268;
  --gold: #E0A63E;
  --bg-app: #F5F7FB;
  --card-border: #E3E8F2;

  /* Deep Navy Canvas */
  --bg-deep: #141B5E;
  --bg-mid: #1E2A8A;
  --bg-light: #2B37A5;

  /* Glass Colors */
  --glass-white: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-strong: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-border-strong: rgba(255, 255, 255, 0.4);

  /* Accent Colors */
  --teal: #46AC78;
  --teal-dark: #359268;
  --blue: #1E2A8A;
  --silver: #c0c0c0;

  /* Semantic tokens used across inline styles */
  --primary: #1E2A8A;
  --primary-light: rgba(30, 42, 138, 0.08);
  --border: #E3E8F2;
  --border-color: #E3E8F2;

  /* Text */
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #475569;
  --text-muted: #64748b;
}

/* --- GLASS CARD UTILITY --- */
.glass-card {
  background: #ffffff;
  border: 1px solid #E3E8F2;
  box-shadow: 0 6px 20px rgba(20,27,94,0.08);
  border-radius: 24px;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #141B5E 0%, #1E2A8A 55%, #2B37A5 100%);
  background-attachment: fixed;
}

body {
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  position: relative;
  overflow-x: hidden;
}

#main-content {
  padding-bottom: 100px;
  background: linear-gradient(180deg, #EDF1F8 0%, #E3E9F5 100%);
  background-attachment: fixed;
  min-height: 100dvh;
}

/* --- HEADER --- */
.header {
  background: #ffffff;
  padding: 10px 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}

/* Faint marble statue behind the right side of the header */
.header-statue {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  height: 135%;
  width: auto;
  pointer-events: none;
}

.brand-tagline {
  font-size: 0.42rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

/* Vertical Greek key (meander) strip down the left edge of the app */
.greek-key-vertical {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - 215px));
  width: 10px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='20' viewBox='0 0 10 20'%3E%3Cpath d='M2 0v20 M2 16h6V6H4v6' fill='none' stroke='%231E2A8A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: center top;
  border-right: 1px solid var(--card-border);
  z-index: 99;
  pointer-events: none;
}

.header-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 46px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Brand wordmark: — FARMACIA — over APOLO with a green dot */
.brand-wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  pointer-events: none;
}

.brand-wordmark .brand-over {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--navy);
}

.brand-wordmark .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--navy);
  margin-left: 0.32em; /* optically recenter letter-spaced text */
}

.brand-wordmark .brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 4px;
}

/* Thin navy Greek key (meander) divider under the header */
.greek-key-strip {
  height: 10px;
  margin: 8px -16px 0;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M0 8h20 M16 8V2H6v4h6' fill='none' stroke='%231E2A8A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
}

.brand span {
  font-weight: 700;
  font-size: 1rem;
  color: white;
  letter-spacing: 0.5px;
}

/* Search Box */
.search-box {
  position: relative;
  margin-top: 8px;
}

.search-box input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: #ffffff;
  border: 1px solid #EEF1F8;
  box-shadow: 0 4px 16px rgba(20,27,94,0.10);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Icon Buttons */
.icon-btn {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #EEF1F8;
  box-shadow: 0 2px 8px rgba(20,27,94,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
}

/* --- DATE HEADER --- */
.date-header {
  text-align: center;
  padding: 16px;
  color: white;
}

.date-header .day {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: lowercase;
}

.date-header .title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 4px 0;
}

.date-header .subtitle {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- WHITE CARD (Progress Ring Container) --- */
.white-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  margin: 0 16px 16px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* --- CIRCULAR PROGRESS --- */
.circular-progress {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.circular-progress svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.circular-progress .track {
  fill: none;
  stroke: #e8e8e8;
  stroke-width: 14;
}

.circular-progress .progress {
  fill: none;
  stroke: url(#progressGrad);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.circular-progress .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circular-progress .percentage {
  font-size: 2.75rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
}

.circular-progress .label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

/* --- STREAK CARD --- */
.streak-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 16px 16px;
  color: white;
}

.streak-card .flame {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(255,200,100,0.5));
}

.streak-card .days {
  font-size: 1.5rem;
  font-weight: 700;
}

.streak-card .message {
  font-size: 0.85rem;
  opacity: 0.8;
}
}

.streak-card .flame {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(255,200,100,0.5));
}

.streak-card .days {
  font-size: 1.5rem;
  font-weight: 700;
}

.streak-card .message {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --- QUICK ACTION GRID (JS classes) --- */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px;
}

.quick-action-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action-btn .icon {
  font-size: 1.75rem;
}

.quick-action-btn .label {
  font-size: 0.85rem;
  font-weight: 600;
}

.quick-action-btn .value {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* --- SEGMENTED PROGRESS BAR --- */
.segmented-progress {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  margin-bottom: 16px;
}

.segment {
  width: 18px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
}

.segment.filled {
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.2));
  border-color: rgba(255,255,255,0.3);
}

.segment.half-filled {
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 50%, transparent 50%);
  border-color: rgba(255,255,255,0.3);
}

/* --- QUICK ACTIONS --- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.quick-action {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.3);
}

.quick-action svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.quick-action .label {
  font-size: 0.85rem;
  font-weight: 600;
}

.quick-action .value {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* --- WATER TRACKER --- */
.water-tracker {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.water-crescent {
  width: 20px;
  height: 36px;
  position: relative;
}

.water-crescent::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  border: 2px solid rgba(255,255,255,0.3);
}

.water-crescent.filled::before {
  background: linear-gradient(180deg, #46AC78, #359268);
  border-color: #46AC78;
  box-shadow: 0 0 10px rgba(70,172,120,0.4);
}

/* --- FOOD LOG CARD --- */
.food-log-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  margin: 0 16px 100px;
  padding: 20px;
  color: white;
}

.food-log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.food-item-glass {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #1a1a2e;
}

.food-item-glass .icon {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.food-item-glass .info {
  flex: 1;
}

.food-item-glass .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.food-item-glass .details {
  font-size: 0.8rem;
  color: #666;
}

.food-item-glass .delete {
  color: #ff6b6b;
  font-size: 1.2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Simple food item (used in JS) */
.food-item {
  background: white;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.food-item .icon {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.food-item .info {
  flex: 1;
}

.food-item .name {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.food-item .details {
  font-size: 0.8rem;
  color: #64748b;
}

.calorie-progress {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.calorie-progress .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}

.calorie-progress .label strong {
  color: white;
  font-weight: 700;
}

.progress-bar-glass {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-glass .fill {
  height: 100%;
  background: linear-gradient(90deg, #46AC78, #359268);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Simple progress bar */
.progress-bar {
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: #1E2A8A;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* --- BOTTOM NAVIGATION --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 18px 0 max(20px, env(safe-area-inset-bottom));
  z-index: 100;
}

/* Greek key (meander) strip along the top edge of the nav */
.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M0 8h20 M16 8V2H6v4h6' fill='none' stroke='%231E2A8A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  border-bottom: 1px solid var(--card-border);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.nav-item.active {
  color: var(--navy);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(30,42,138,0.35));
}

/* Navy bar under the active tab */
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
}

/* --- MENU PANEL --- */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: rgba(20, 27, 94, 0.98);
  backdrop-filter: blur(30px);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.menu-panel.active {
  transform: translateX(0);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- MENU NAVIGATION --- */
.menu-nav {
  padding: 8px 0;
}

.menu-section {
  padding: 16px 20px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: var(--green);
}

.menu-item .menu-icon {
  font-size: 1.25rem;
  width: 32px;
  text-align: center;
}

/* User section in menu */
.menu-user {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-user .user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.menu-user .user-name {
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

.menu-user .user-level {
  font-size: 0.85rem;
  color: var(--green);
}

/* Menu header */
.menu-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-header .brand-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
}

.menu-header span {
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 27, 94, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 4px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

/* ============================================
   REUSABLE MODAL BUTTON CLASSES
   ============================================ */

.btn-modal-primary {
  flex: 1;
  padding: 0.875rem;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-modal-secondary {
  flex: 1;
  padding: 0.875rem;
  background: #f3f4f6;
  color: #1e293b;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

.btn-modal-danger {
  flex: 1;
  padding: 0.875rem;
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

.btn-modal-ghost {
  flex: 1;
  padding: 0.875rem;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

.modal-actions-sticky {
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Fix medicine-card display */
.medicine-card {
  display: flex;
}

/* Toast notification styles */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  background: linear-gradient(135deg, #1E2A8A, #141B5E);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  max-width: 90vw;
  animation: toastIn 0.3s ease;
}

.toast-success { background: linear-gradient(135deg, #1E2A8A, #141B5E); }
.toast-error { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.toast-info { background: linear-gradient(135deg, #0369a1, #075985); }
.toast-warning { background: linear-gradient(135deg, #d97706, #b45309); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   NOTIFICATION CENTER
   ============================================ */

.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.notification-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 27, 94, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  padding: 0;
}

.notification-panel {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 430px;
  max-height: 80vh;
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notifSlideUp 0.3s ease;
}

@keyframes notifSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.notification-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1E2A8A, #141B5E);
  color: white;
}

.notification-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.notification-header button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
}

.notification-list {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem 0;
}

.notification-item {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item.unread {
  background: #f0f9ff;
}

.notification-item.unread:hover {
  background: #e0f2fe;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notification-icon.prescription { background: #fef3c7; }
.notification-icon.refill { background: #dbeafe; }
.notification-icon.appointment { background: #dcfce7; }
.notification-icon.order { background: #fce7f3; }
.notification-icon.default { background: #f3f4f6; }

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.notification-message {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-time {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.notification-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #94a3b8;
}

.notification-empty .icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}
