/* =============================================
   Baby Diary - 핑크 베이지 테마
   ============================================= */

:root {
  --pink-100: #fff0f3;
  --pink-200: #ffd6e0;
  --pink-300: #ffb3c6;
  --pink-400: #ff85a1;
  --pink-500: #e8637e;
  --pink-600: #c94b66;

  --beige-100: #fdf6f0;
  --beige-200: #f5e6d8;
  --beige-300: #e8d0b8;
  --beige-400: #d4b896;
  --beige-500: #b89878;

  --text-dark: #4a3728;
  --text-mid: #7a5c4a;
  --text-light: #a88070;

  --white: #ffffff;
  --shadow: 0 4px 20px rgba(200, 120, 140, 0.12);
  --shadow-hover: 0 8px 30px rgba(200, 120, 140, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: var(--beige-100);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ── 네비게이션 ─────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, var(--pink-400) 0%, var(--pink-500) 100%);
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(200, 80, 100, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

.navbar-brand {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-brand .logo-icon { font-size: 1.4rem; }

/* 메뉴: 가운데 정렬 - flex로 자연스럽게 */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}

.navbar-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 1200px 이하에서 패딩/폰트 축소 */
@media (max-width: 1200px) {
  .navbar-nav a { padding: 6px 7px; font-size: 0.78rem; }
  .navbar-nav { gap: 0; }
}

/* 1024px 이하에서 더 축소 */
@media (max-width: 1024px) {
  .navbar-nav a { padding: 5px 5px; font-size: 0.72rem; }
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* 유저: 오른쪽 끝 */
.navbar-user {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── 레이아웃 ────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-600);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── 카드 ────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--pink-200);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pink-600);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* ── 버튼 ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: white;
  box-shadow: 0 3px 10px rgba(200, 80, 100, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(200, 80, 100, 0.4);
}

.btn-secondary {
  background: var(--beige-200);
  color: var(--text-mid);
  border: 1px solid var(--beige-300);
}

.btn-secondary:hover { background: var(--beige-300); }

.btn-outline {
  background: transparent;
  color: var(--pink-500);
  border: 2px solid var(--pink-300);
}

.btn-outline:hover {
  background: var(--pink-100);
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.btn-danger:hover { background: #fecaca; }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* ── 폼 ─────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--beige-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 3px rgba(255, 133, 161, 0.15);
}

select.form-control { cursor: pointer; }

textarea.form-control { resize: vertical; min-height: 80px; }

input[type="date"].form-control,
input[type="date"] {
  cursor: pointer;
  position: relative;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  opacity: 0;
  cursor: pointer;
}

/* ── 로그인/회원가입 페이지 ──────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-100) 0%, var(--beige-200) 50%, var(--pink-200) 100%);
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(200, 100, 120, 0.15);
  border: 1px solid var(--pink-200);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo .logo-emoji { font-size: 3rem; display: block; margin-bottom: 8px; }

.auth-logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-600);
}

.auth-logo p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 0.85rem;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--beige-300);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── 대시보드 ────────────────────────────────── */
.week-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--pink-300), var(--pink-400));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-bar-wrap {
  background: var(--beige-200);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-500));
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* ── 달력 ────────────────────────────────────── */
.calendar-wrap {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--pink-200);
}

.calendar-header {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-header h2 { font-size: 1.3rem; font-weight: 700; }

.calendar-nav-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.calendar-nav-btn:hover { background: rgba(255,255,255,0.35); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
  text-align: center;
  padding: 12px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--pink-100);
  border-bottom: 1px solid var(--pink-200);
}

.calendar-day-header:first-child { color: #e05c7a; }
.calendar-day-header:last-child { color: #5b8de0; }

.calendar-cell:hover { background: var(--pink-100); }

.calendar-cell.today { background: var(--pink-100); }

.calendar-cell.today .day-num {
  background: var(--pink-500);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-cell.other-month { opacity: 0.4; }

.day-num {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-cell:nth-child(7n+1) .day-num { color: #e05c7a; }
.calendar-cell:nth-child(7n) .day-num { color: #5b8de0; }

.event-dot {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-dot.medical {
  background: #fde8f0;
  color: #c94b66;
}

.event-dot.media {
  background: #e8f4fd;
  color: #3b82c4;
}

.event-dot.note {
  background: #fef3e2;
  color: #b07a20;
}

.event-dot.todo {
  background: #e8fde8;
  color: #2a8a2a;
}

/* ── TODO 리스트 ─────────────────────────────── */
.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--beige-100);
  margin-bottom: 8px;
  border: 1px solid var(--beige-200);
  transition: all 0.2s;
}

.todo-item:hover { border-color: var(--pink-300); }

.todo-item.done {
  opacity: 0.6;
  background: var(--beige-200);
}

.todo-item.done .todo-title { text-decoration: line-through; }

.todo-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--pink-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.todo-checkbox.checked {
  background: var(--pink-400);
  border-color: var(--pink-400);
  color: white;
}

.todo-title { flex: 1; font-size: 0.9rem; }

.todo-week-badge {
  font-size: 0.75rem;
  background: var(--pink-200);
  color: var(--pink-600);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── 아기 용품 카드 ──────────────────────────── */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--pink-200);
  transition: all 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.product-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--beige-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-body { padding: 16px; }

.product-category {
  font-size: 0.75rem;
  color: var(--pink-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── 갤러리 ─────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--beige-200);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.gallery-item:hover { transform: scale(1.03); }

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.75rem;
}

/* ── 인생네컷 ────────────────────────────────── */
.four-cut-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--pink-400);
  padding: 8px;
  border-radius: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.four-cut-cell {
  aspect-ratio: 3/4;
  background: var(--beige-200);
  border-radius: 6px;
  overflow: hidden;
}

.four-cut-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 성장 차트 영역 ──────────────────────────── */
.growth-stat {
  text-align: center;
  padding: 16px;
  background: var(--pink-100);
  border-radius: var(--radius-sm);
  border: 1px solid var(--pink-200);
}

.growth-stat .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pink-500);
}

.growth-stat .unit {
  font-size: 0.85rem;
  color: var(--text-light);
}

.growth-stat .label {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 4px;
}

/* ── 수유 타입 배지 ──────────────────────────── */
.feed-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.feed-badge.breast { background: #fde8f0; color: #c94b66; }
.feed-badge.formula { background: #e8f4fd; color: #3b82c4; }
.feed-badge.solid { background: #fef3e2; color: #b07a20; }

/* ── 예방접종 ────────────────────────────────── */
.vac-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--beige-200);
  margin-bottom: 10px;
}

.vac-status {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.vac-status.done { background: #dcfce7; }
.vac-status.pending { background: var(--pink-100); }

.vac-info { flex: 1; }
.vac-name { font-weight: 600; font-size: 0.95rem; }
.vac-date { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }

/* ── 초대코드 ────────────────────────────────── */
.invite-code-box {
  background: linear-gradient(135deg, var(--pink-100), var(--beige-100));
  border: 2px dashed var(--pink-300);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.invite-code-display {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--pink-600);
  font-family: monospace;
  margin: 12px 0;
}

/* ── 알림/메시지 ─────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: var(--pink-100);
  color: var(--pink-600);
  border: 1px solid var(--pink-200);
}

/* ── 모달 ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-box {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink-600);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 탭 ─────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--beige-200);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.2s;
}

.tab-btn.active {
  background: white;
  color: var(--pink-600);
  box-shadow: 0 2px 8px rgba(200, 80, 100, 0.15);
}

/* ── 반응형 ─────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ── 유틸리티 ────────────────────────────────── */
.text-pink { color: var(--pink-500); }
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none; }

/* ── 알림 팝업 ───────────────────────────────── */
#alertPopupOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#alertPopupBox {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

#alertPopupIcon  { font-size: 3rem; margin-bottom: 12px; }
#alertPopupTitle { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
#alertPopupMsg   { font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 24px; }

#alertPopupBtn {
  padding: 10px 36px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#alertPopupBtn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── 달력 셀 내용 표시 ───────────────────────── */

.calendar-cell {
  min-height: 100px;
  padding: 6px;
  border-right: 1px solid var(--beige-200);
  border-bottom: 1px solid var(--beige-200);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.calendar-cell:hover { background: var(--pink-100); }
.calendar-cell.today { background: var(--pink-100); }
.calendar-cell.other-month { opacity: 0.35; pointer-events: none; }

/* 내용 있는 날 배경 강조 */
.calendar-cell.has-content {
  background: linear-gradient(180deg, #fff 0%, #fff5f7 100%);
}
.calendar-cell.today.has-content {
  background: var(--pink-100);
}

/* 날짜 숫자 */
.day-num {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 3px;
}

.calendar-cell.today .day-num {
  background: var(--pink-500);
  color: white;
  border-radius: 50%;
}

/* 일요일/토요일 색상 */
.calendar-cell:nth-child(7n+1) .day-num { color: #e05c7a; }
.calendar-cell:nth-child(7n)   .day-num { color: #5b8de0; }
.calendar-cell.today .day-num  { color: white !important; }

/* ── 도트 영역 (항상 표시) ── */
.cell-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 8px;
  margin-bottom: 3px;
}

.cell-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-medical   { background-color: #e8637e; }
.dot-media     { background-color: #3b82c4; }
.dot-note      { background-color: #d4a020; }
.dot-todo      { background-color: #2a8a2a; }
.dot-todo-done { background-color: #a0c8a0; }

/* ── 이벤트 텍스트 (PC) ── */
.cell-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.cell-event-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}

.cell-event-item.medical { background: #fde8f0; color: #c94b66; }
.cell-event-item.media   { background: #e8f4fd; color: #3b82c4; }
.cell-event-item.note    { background: #fef3e2; color: #b07a20; }
.cell-event-item.todo    { background: #e8fde8; color: #2a8a2a; }
.cell-event-item.todo.done { opacity: 0.6; text-decoration: line-through; }

.cell-event-more {
  font-size: 0.68rem;
  color: var(--text-light);
  padding: 1px 4px;
  background: var(--beige-200);
  border-radius: 4px;
  display: inline-block;
}

/* ── 모바일: 도트만, 텍스트 숨김 ── */
@media (max-width: 640px) {
  .cell-events  { display: none; }
  .cell-dots    { justify-content: center; }
  .calendar-cell { min-height: 54px; padding: 4px 2px; }
  .day-num      { font-size: 0.8rem; width: 22px; height: 22px; }
}

/* 768px 이하에서 event-dot (범례용) 숨김 - cell-events는 별도 클래스 사용 */
@media (max-width: 768px) {
  .navbar-nav  { display: none; }
  .navbar-user { display: none; }

  .navbar-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 1001;
    position: relative;
  }
  .navbar-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: white;
    border-radius: 2px;
  }

  .navbar-mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; right: 0;
    width: 200px;
    background: linear-gradient(135deg, var(--pink-400) 0%, var(--pink-500) 100%);
    padding: 8px 0 16px;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(200,100,120,0.3);
    border-radius: 0 0 12px 12px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .navbar-mobile-menu.open { display: flex; }
  .navbar-mobile-menu a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    display: block;
  }
  .navbar-mobile-menu a:hover { background: rgba(255,255,255,0.15); }
  .navbar-mobile-divider {
    border-top: 1px solid rgba(255,255,255,0.3);
    margin: 8px 0;
  }
  .navbar-mobile-user {
    padding: 8px 24px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    display: block;
  }
}
@media (min-width: 769px) {
  .navbar-hamburger   { display: none; }
  .navbar-mobile-menu { display: none !important; }
}

/* ── 알림 센터 ───────────────────────────────── */
.notif-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.notif-bell-btn {
  position: relative;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.notif-bell-btn:hover { background: rgba(255,255,255,0.25); }
.notif-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid white;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 2000;
  overflow: hidden;
  border: 1px solid var(--beige-200);
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--beige-200);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink-600);
}
.notif-panel-header button {
  font-size: 0.75rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
}
.notif-panel-header button:hover { color: var(--pink-500); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--beige-100);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.notif-item:hover { background: var(--pink-100); }
.notif-item.unread { background: #fff8fa; }
.notif-item.unread:hover { background: var(--pink-100); }
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink-400);
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-dot.read { background: transparent; }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.notif-body  { font-size: 0.78rem; color: var(--text-mid); margin-top: 2px; }
.notif-time  { font-size: 0.7rem; color: var(--text-light); margin-top: 3px; }
.notif-empty { text-align: center; padding: 32px 16px; color: var(--text-light); font-size: 0.85rem; }
