/* ===== SANAL BEBEK APP — style.css ===== */
:root {
  --primary: #c06c84;
  --primary-light: #f8b195;
  --bg-body: #fdfbf7;
  --surface: #ffffff;
  --text-main: #353535;
  --text-sub: #666666;
  --radius: 16px;
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0; font-family: 'Outfit', sans-serif;
  background: var(--bg-body); color: var(--text-main);
  overflow: hidden; height: 100vh; height: 100dvh;
}

/* ===== GİRİŞ ===== */
#entry-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(135deg, #fff0f3 0%, #fff 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#entry-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.entry-card {
  background: rgba(255,255,255,0.8); backdrop-filter: blur(10px);
  padding: 40px; border-radius: 30px; border: 1px solid #fff;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.05); width: 85%; max-width: 360px;
}
.heart-icon { font-size: 3.5rem; display: block; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% {transform: translateY(0);} 50% {transform: translateY(-10px);} }
.entry-title { font-family: 'Dancing Script', cursive; font-size: 2.6rem; color: var(--primary); margin: 0; }

#user-input, #pass-input {
  width: 100%; padding: 15px; border-radius: 15px; border: 2px solid #eee;
  text-align: center; font-size: 1.1rem; color: var(--primary); font-weight: 600;
  background: #fff; margin: 10px 0; outline: none;
}
#user-input { margin-top: 20px; }
#login-btn {
  width: 100%; padding: 15px; border-radius: 15px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 1.1rem;
  margin-top: 10px;
}

/* ===== LAYOUT ===== */
.app-container { display: flex; flex-direction: column; height: 100%; }

.baby-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--surface); border-bottom: 1px solid #f0f0f0;
  z-index: 900; flex-shrink: 0;
}
.topbar-logo {
  font-family: 'Dancing Script', cursive; font-size: 1.5rem; color: var(--primary); font-weight: 700;
}
.topbar-right {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem;
}
.topbar-session {
  color: #999; font-size: 0.8rem;
}
.topbar-session .session-warn { color: #e53935; animation: warnBlink 0.8s ease infinite; }
.topbar-logout-btn {
  padding: 6px 14px; border: 1.5px solid #ede0e5; border-radius: 12px;
  background: rgba(255,255,255,0.7); color: #999; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.topbar-logout-btn:hover { background: #fff0f3; color: #d63384; border-color: #e0c0cc; }

.baby-main {
  flex: 1; padding: 24px; overflow-y: auto; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ===== SECTION HEADER ===== */
h2 {
  font-family: 'Dancing Script', cursive; font-size: 2.2rem; color: var(--primary);
  margin: 0 0 20px 0; border-bottom: 2px solid rgba(192, 108, 132, 0.1);
  display: inline-block; padding-bottom: 5px;
}

.baby-section-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:16px; flex-wrap:wrap; gap:10px;
}
.baby-section-header h2 { margin-bottom:0; }
.baby-header-btns { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.baby-help-btn {
  background:linear-gradient(135deg, #fff 0%, #fff5f7 100%);
  border:2px solid #f0e0e6; border-radius:30px;
  padding:8px 20px; font-size:0.88rem; font-weight:700;
  color:var(--primary); cursor:pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(192,108,132,0.08);
}
.baby-help-btn:hover {
  background:linear-gradient(135deg, #fff0f3 0%, #ffe8ee 100%);
  transform:translateY(-2px);
  box-shadow: 0 4px 14px rgba(192,108,132,0.16);
  border-color:#e8c0cc;
}

/* ===== GUIDE ===== */
.baby-guide {
  background:#fff; border-radius:24px; padding:24px;
  box-shadow:0 8px 30px rgba(0,0,0,0.06); margin-bottom:24px;
  border:1px solid #f8e8ee;
  max-height:70vh; overflow-y:auto;
  animation: fadeUp 0.3s ease-out;
}
.guide-content { max-width:480px; margin:0 auto; }
.guide-section {
  margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid #f5f0f2;
}
.guide-section:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.guide-section h3 { font-size:1.05rem; margin:0 0 10px 0; color:var(--primary); }
.guide-section p { font-size:0.9rem; line-height:1.6; color:#555; margin:0; }
.guide-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:10px;
}
.guide-item {
  background:#fafafa; border-radius:14px; padding:12px 10px;
  font-size:0.82rem; color:#444; text-align:center; line-height:1.4;
  border:1px solid #f0f0f0;
}
.guide-item b { display:block; margin-bottom:2px; color:#333; }
.guide-item small { color:#888; }
.gi-icon { font-size:1.4rem; display:block; margin-bottom:4px; }
.guide-tip ul {
  margin:8px 0 0 0; padding-left:20px; font-size:0.88rem; color:#555; line-height:1.8;
}

/* ===== BABY APP ===== */
.baby-app { max-width:480px; margin:0 auto; }

.baby-card {
  border-radius:28px; padding:32px 24px 24px; text-align:center;
  box-shadow:0 8px 32px rgba(192,108,132,0.08), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom:22px;
  transition: background 0.5s ease, box-shadow 0.3s ease;
  position:relative;
  border:1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.baby-card::before {
  content:''; position:absolute; inset:-1px; border-radius:29px;
  background: linear-gradient(135deg, rgba(192,108,132,0.15), rgba(248,177,149,0.1), transparent 60%);
  z-index:-1; pointer-events:none;
}
.baby-avatar {
  font-size:5.5rem; line-height:1; margin-bottom:10px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
  animation: babyBounce 2.5s ease-in-out infinite;
}
@keyframes babyBounce {
  0%,100% { transform:translateY(0) scale(1); }
  50% { transform:translateY(-10px) scale(1.06); }
}
.baby-name {
  font-family:'Dancing Script',cursive; font-size:2.2rem; color:var(--primary);
  margin:0; line-height:1.2;
}
.baby-age { font-size:0.92rem; color:#999; margin:4px 0 6px; }
.baby-mood-label {
  display:inline-block; padding:5px 16px; border-radius:20px;
  font-size:0.84rem; font-weight:700; color:#555;
  background:rgba(255,255,255,0.75); backdrop-filter: blur(6px);
  margin-top:6px; border:1px solid rgba(255,255,255,0.5);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.baby-balance { margin-top:10px; font-size:1.05rem; font-weight:700; color:#f9a825; }

/* Status badges */
.baby-status-badge {
  display:inline-block; padding:5px 14px; border-radius:20px;
  font-size:0.78rem; font-weight:700; margin-bottom:8px;
  animation: badgeSlide 0.4s ease-out; backdrop-filter: blur(4px);
}
@keyframes badgeSlide {
  from { transform:translateY(-10px) scale(0.9); opacity:0; }
  to { transform:translateY(0) scale(1); opacity:1; }
}
.sick-badge {
  background:linear-gradient(135deg, #ffcdd2, #ffebee);
  color:#c62828; border:1px solid rgba(198,40,40,0.15);
  box-shadow: 0 2px 8px rgba(198,40,40,0.12);
}
.sleep-badge {
  background:linear-gradient(135deg, #c5cae9, #e8eaf6);
  color:#283593; border:1px solid rgba(40,53,147,0.12);
  box-shadow: 0 2px 8px rgba(40,53,147,0.1);
}

/* Warnings */
.baby-warnings { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:12px; }
.baby-warn-tag {
  background:rgba(255,255,255,0.9); padding:4px 12px; border-radius:20px;
  font-size:0.76rem; font-weight:700; color:#e65100;
  border:1px solid rgba(230,81,0,0.18);
  animation: warnBlink 2s ease-in-out infinite;
}
@keyframes warnBlink {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.7; transform:scale(0.97); }
}
.baby-notif {
  margin-top:12px; padding:10px 18px; border-radius:14px;
  background:linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,240,243,0.9));
  color:var(--primary); font-weight:700; font-size:0.9rem;
  animation: notifSlide 0.35s ease-out;
  border:1px solid rgba(192,108,132,0.15);
}
@keyframes notifSlide {
  from { transform:translateY(8px) scale(0.95); opacity:0; }
  to { transform:translateY(0) scale(1); opacity:1; }
}

/* Stat bars */
.baby-stats {
  background:#fff; border-radius:22px; padding:18px 22px;
  box-shadow:0 4px 18px rgba(0,0,0,0.04); margin-bottom:22px;
  border:1px solid rgba(0,0,0,0.03);
}
.stat-row {
  display:flex; align-items:center; gap:10px; margin-bottom:12px;
  padding:3px 0; transition: background 0.2s; border-radius: 8px;
}
.stat-row:last-child { margin-bottom:0; }
.stat-row:hover { background:rgba(0,0,0,0.015); }
.stat-icon { font-size:1.05rem; width:24px; text-align:center; flex-shrink:0; }
.stat-label { width:72px; font-size:0.82rem; font-weight:700; color:#666; text-align:right; }
.stat-track {
  flex:1; height:16px; background:linear-gradient(180deg, #f5f5f5, #ececec);
  border-radius:10px; overflow:hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.stat-fill {
  height:100%; border-radius:10px;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
  position:relative;
}
.stat-fill::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  border-radius:10px;
}
.stat-fill.stat-warn { animation: statPulse 1.2s ease-in-out infinite; }
.stat-critical { background:rgba(255,0,0,0.04); border-radius:10px; padding:3px 6px; margin:-3px -6px; }
@keyframes statPulse { 0%,100% { opacity:1; } 50% { opacity:0.55; } }
.stat-val { width:38px; font-size:0.82rem; font-weight:800; color:#555; font-variant-numeric: tabular-nums; }
.stat-timer {
  min-width:56px; font-size:0.7rem; font-weight:700; color:#bbb;
  text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums;
}
.stat-row:hover .stat-timer { color:#888; }

/* Timer cards */
.baby-timer-cards { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; animation: fadeUp 0.4s ease-out; }
@keyframes fadeUp { from { transform:translateY(8px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.baby-timer-card {
  flex:1; min-width:140px; display:flex; align-items:center; gap:12px;
  padding:14px 18px; border-radius:18px; background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,0.04); border:1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.baby-timer-card:hover { transform:translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.timer-card-icon {
  font-size:1.6rem; flex-shrink:0; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px; background:rgba(0,0,0,0.025);
}
.timer-card-body { display:flex; flex-direction:column; gap:2px; }
.timer-card-label { font-size:0.72rem; color:#999; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
.timer-card-val { font-size:1.05rem; font-weight:800; color:var(--primary); font-variant-numeric:tabular-nums; }
.timer-levelup { border-left:3px solid #ffd54f; }
.timer-levelup .timer-card-icon { background:rgba(255,213,79,0.12); }
.timer-levelup .timer-card-val { color:#f9a825; }
.timer-sick-warn { border-left:3px solid #ff8a65; }
.timer-sick-warn .timer-card-icon { background:rgba(255,138,101,0.12); }
.timer-sick-warn .timer-card-val { color:#e65100; }
.timer-wake { border-left:3px solid #90caf9; }
.timer-wake .timer-card-icon { background:rgba(144,202,249,0.15); }
.timer-wake .timer-card-val { color:#1565c0; }
.timer-sick-active { border-left:3px solid #ef5350; background:linear-gradient(135deg, #fff5f5, #fff); }
.timer-sick-active .timer-card-icon { background:rgba(239,83,80,0.1); }
.timer-sick-active .timer-card-val { color:#e53935; }
.timer-cooldown { border-left:3px solid #7e57c2; background:linear-gradient(135deg, #f3e5f5, #fff); }
.timer-cooldown .timer-card-icon { background:rgba(126,87,194,0.12); }
.timer-cooldown .timer-card-val { color:#7e57c2; font-weight:800; }
.timer-event-wait { border-left:3px solid #78909c; background:linear-gradient(135deg, #eceff1, #fff); }
.timer-event-wait .timer-card-icon { background:rgba(120,144,156,0.12); }
.timer-event-wait .timer-card-val { color:#546e7a; }

/* Cooldown banner */
.cooldown-banner {
  text-align:center; padding:12px 18px; margin:8px 0 12px;
  background:linear-gradient(135deg, #ede7f6, #f3e5f5);
  border-radius:14px; font-weight:700; font-size:0.95rem;
  color:#5e35b1; border:2px solid #d1c4e9;
  animation: cooldownPulse 2s ease-in-out infinite;
}
.cooldown-banner .stat-timer { display:inline; font-size:1.1rem; font-weight:800; color:#7e57c2; margin:0 4px; }
@keyframes cooldownPulse {
  0%, 100% { box-shadow:0 0 0 0 rgba(126,87,194,0.15); }
  50% { box-shadow:0 0 12px 4px rgba(126,87,194,0.15); }
}
.baby-action-btn.btn-cooldown { opacity:0.35; cursor:not-allowed; filter:grayscale(0.4); transform:none !important; box-shadow:none !important; }
.baby-action-btn.btn-low-energy { opacity:0.30; cursor:not-allowed; filter:grayscale(0.6) sepia(0.3); transform:none !important; box-shadow:none !important; border:2px dashed #ce93d8 !important; }

/* Events */
.baby-event {
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 18px; margin:10px 0; border-radius:16px;
  border:2px solid transparent; animation: eventSlideIn 0.5s ease-out;
}
.baby-event-negative { background:linear-gradient(135deg, #fff3e0, #fce4ec); border-color:#ffab91; }
.baby-event-positive { background:linear-gradient(135deg, #e8f5e9, #f1f8e9); border-color:#a5d6a7; }
.baby-event-icon { font-size:2rem; flex-shrink:0; animation: eventBounce 0.6s ease-out; }
.baby-event-body { display:flex; flex-direction:column; gap:3px; }
.baby-event-title { font-size:0.95rem; font-weight:800; color:#333; }
.baby-event-negative .baby-event-title { color:#d84315; }
.baby-event-positive .baby-event-title { color:#2e7d32; }
.baby-event-desc { font-size:0.82rem; color:#555; line-height:1.4; }
.baby-event-ago { font-size:0.72rem; color:#999; margin-top:2px; font-style:italic; }
@keyframes eventSlideIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes eventBounce { 0% { transform:scale(0.5); } 50% { transform:scale(1.3); } 100% { transform:scale(1); } }

/* Action buttons */
.baby-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:6px; }
.baby-action-btn {
  display:flex; flex-direction:column; align-items:center; gap:5px;
  padding:16px 20px; border-radius:20px; border:2px solid var(--ac, #ddd);
  background:#fff; cursor:pointer; font-weight:700; font-size:0.84rem;
  color:#444; transition: all 0.2s ease; text-align: center; min-width:74px;
  position:relative; overflow:hidden;
}
.baby-action-btn::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at center, var(--ac) 0%, transparent 70%);
  opacity:0; transition: opacity 0.3s;
}
.baby-action-btn:hover::before { opacity:0.06; }
.baby-action-btn:hover { transform:translateY(-3px); box-shadow: 0 6px 20px color-mix(in srgb, var(--ac) 25%, transparent); border-color: var(--ac); }
.baby-action-btn:active { transform:scale(0.92) translateY(0); }
.baby-action-btn:disabled { opacity:0.4; cursor:not-allowed; transform:none !important; box-shadow:none !important; }
.baby-action-icon { font-size:1.7rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06)); }

/* Sleeping state */
.baby-sleeping { position:relative; overflow:hidden; background: linear-gradient(180deg, #e8eaf6, #ede7f6) !important; }
.baby-sleeping::after {
  content:''; position:absolute; inset:0;
  background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(100,100,180,0.04) 10px, rgba(100,100,180,0.04) 20px);
  pointer-events:none; border-radius:28px;
}
.baby-avatar-sleep { animation: babySleep 3.5s ease-in-out infinite !important; opacity:0.85; }
@keyframes babySleep {
  0%,100% { transform:translateY(0) scale(1) rotate(0deg); }
  25% { transform:translateY(-4px) scale(1.02) rotate(-4deg); }
  75% { transform:translateY(-4px) scale(1.02) rotate(4deg); }
}

/* Sick state */
.baby-sick { border:2px dashed #ef9a9a; background: linear-gradient(180deg, #fce4ec, #fff) !important; }
.baby-sick .baby-avatar { animation: sickShake 2s ease-in-out infinite !important; }
@keyframes sickShake {
  0%,100% { transform:translateX(0); }
  10% { transform:translateX(-3px) rotate(-1deg); }
  20% { transform:translateX(3px) rotate(1deg); }
  30% { transform:translateX(-2px); }
  40%,100% { transform:translateX(0); }
}

/* Streak / level-up */
.streak-row .stat-label { color:#f9a825; font-weight:800; }
.streak-row .stat-icon { animation: starSpin 4s linear infinite; }
@keyframes starSpin { 0%,80%,100% { transform:rotate(0deg) scale(1); } 90% { transform:rotate(20deg) scale(1.2); } }
.streak-fill { background: linear-gradient(90deg, #ffd54f, #ffb300, #ffd54f) !important; background-size: 200% 100% !important; animation: streakShimmer 3s linear infinite !important; }
@keyframes streakShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Action log */
.action-log-box {
  background:#fff; border-radius:22px; padding:18px 22px;
  box-shadow:0 4px 16px rgba(0,0,0,0.04); margin-top:22px; border:1px solid rgba(0,0,0,0.03);
}
.action-log-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.action-log-title { font-weight:800; font-size:0.85rem; color:#aaa; text-transform:uppercase; letter-spacing:0.8px; }
.history-btn {
  background:linear-gradient(135deg, #fff 0%, #f8f4f6 100%);
  border:1.5px solid #ede0e5; border-radius:20px;
  padding:5px 14px; font-size:0.76rem; font-weight:700;
  color:var(--primary); cursor:pointer; transition: all 0.2s ease;
}
.history-btn:hover { background:linear-gradient(135deg, #fff0f3, #ffe8ee); transform:translateY(-1px); }
.action-log-row {
  display:flex; align-items:center; gap:10px; padding:8px 6px;
  border-bottom:1px solid #f8f8f8; font-size:0.84rem; border-radius:8px; transition: background 0.15s;
}
.action-log-row:hover { background:#fafafa; }
.action-log-row:last-child { border-bottom:none; }
.action-log-who { font-weight:800; color:var(--primary); min-width:44px; font-size:0.82rem; }
.action-log-icon { font-size:0.95rem; flex-shrink:0; width:22px; text-align:center; }
.action-log-detail { flex:1; color:#555; line-height:1.3; }
.action-log-when { color:#bbb; font-size:0.75rem; white-space:nowrap; font-variant-numeric:tabular-nums; }

/* ===== HISTORY OVERLAY ===== */
.history-overlay {
  display:none; position:fixed; inset:0; z-index:10001;
  background:rgba(0,0,0,0.45); backdrop-filter:blur(4px);
  align-items:center; justify-content:center; padding:16px;
}
.history-overlay.open { display:flex; animation: histOverlayIn 0.25s ease-out; }
@keyframes histOverlayIn { from { opacity:0; } to { opacity:1; } }

.history-panel {
  background:#fff; border-radius:24px;
  box-shadow:0 12px 50px rgba(0,0,0,0.15); border:1px solid rgba(0,0,0,0.06);
  overflow:hidden; animation: histPanelIn 0.3s cubic-bezier(0.22,1,0.36,1);
  width:100%; max-width:520px; max-height:90vh; display:flex; flex-direction:column;
}
@keyframes histPanelIn { from { transform:translateY(30px) scale(0.96); opacity:0; } to { transform:translateY(0) scale(1); opacity:1; } }
.history-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px 16px; border-bottom:1px solid #f5f0f2;
  background:linear-gradient(135deg, #fdfbf7, #fff5f7); flex-shrink:0;
}
.history-header h3 { margin:0; font-size:1.1rem; color:var(--primary); font-weight:800; }
.history-close-btn {
  background:none; border:none; font-size:1.3rem; color:#ccc;
  cursor:pointer; padding:6px 10px; border-radius:10px; transition: all 0.15s;
}
.history-close-btn:hover { color:#999; background:#f5f5f5; }
.history-filters {
  display:flex; gap:10px; padding:14px 24px; border-bottom:1px solid #f8f5f6;
  background:#fdfcfb; flex-shrink:0;
}
.history-filters select {
  flex:1; padding:10px 14px; border-radius:12px; border:1.5px solid #ede0e5;
  background:#fff; font-size:0.84rem; font-weight:600; color:#555;
  cursor:pointer; outline:none; -webkit-appearance:none; appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; padding-right:30px;
}
.history-filters select:focus { border-color:var(--primary); }
.history-list { flex:1; overflow-y:auto; padding:8px 18px; scroll-behavior:smooth; min-height:0; }
.history-list::-webkit-scrollbar { width:5px; }
.history-list::-webkit-scrollbar-thumb { background:#e0d0d5; border-radius:4px; }
.history-row {
  display:flex; align-items:center; gap:12px; padding:12px 8px;
  border-bottom:1px solid #f8f6f7; transition: background 0.15s; border-radius:10px;
}
.history-row:hover { background:#faf8f9; }
.history-row:last-child { border-bottom:none; }
.history-icon {
  font-size:1.15rem; flex-shrink:0; width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.025); border-radius:10px;
}
.history-info { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.history-detail { font-size:0.84rem; font-weight:600; color:#444; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.history-meta { font-size:0.74rem; color:#999; font-weight:600; }
.history-time { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.history-date { font-size:0.72rem; color:#bbb; font-weight:600; white-space:nowrap; }
.history-clock { font-size:0.84rem; color:#777; font-weight:700; font-variant-numeric:tabular-nums; }
.history-pagination {
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:14px 24px; border-top:1px solid #f5f0f2; flex-wrap:wrap; flex-shrink:0;
}
.history-pagination button {
  background:#fff; border:1.5px solid #ede0e5; border-radius:10px;
  padding:7px 13px; font-size:0.82rem; font-weight:700; color:#666;
  cursor:pointer; transition: all 0.15s; min-width:36px; text-align:center;
}
.history-pagination button:hover { background:#fff0f3; border-color:#e0c0cc; color:var(--primary); }
.history-pagination button.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.history-total { font-size:0.76rem; color:#bbb; font-weight:600; margin-right:8px; }
.history-dots { color:#ccc; font-size:0.8rem; padding:0 2px; }

/* ===== TOAST ===== */
.app-toast-container {
  position:fixed; top:20px; left:50%; transform:translateX(-50%);
  z-index:99999; display:flex; flex-direction:column; align-items:center; gap:10px;
  pointer-events:none; max-width:92vw;
}

/* ===== MOBILE ===== */
@media (max-width:600px) {
  .baby-main { padding:16px; }
  .baby-app { max-width:100%; }
  .baby-avatar { font-size:4.5rem; }
  .baby-card { padding:28px 18px 20px; border-radius:24px; }
  .baby-name { font-size:1.9rem; }
  .baby-action-btn { padding:14px 16px; min-width:68px; font-size:0.82rem; }
  .baby-timer-cards { flex-direction:column; }
  .baby-timer-card { min-width:auto; }
  .stat-timer { min-width:44px; font-size:0.68rem; }
  .stat-track { height:14px; }
  .stat-label { width:62px; font-size:0.8rem; }
  .baby-topbar { padding:12px 16px; }
  .topbar-logo { font-size:1.2rem; }
  
  .history-overlay { padding:0; align-items:flex-end; }
  .history-panel { max-width:100%; max-height:95vh; border-radius:24px 24px 0 0; }
  .history-header { padding:16px 18px 12px; }
  .history-filters { padding:12px 18px; flex-direction:column; gap:8px; }
  .history-list { padding:6px 14px; }
  .history-row { padding:10px 6px; gap:10px; }
  .history-icon { width:34px; height:34px; font-size:1rem; }
  .history-pagination { padding:12px 18px; }
  .baby-header-btns { gap:6px; }
  .baby-help-btn { padding:7px 14px; font-size:0.82rem; }
}
