/* ==========================================================================
   Couples Daily Planner - Exact Notebook Replica Style Sheet
   Inspired 100% by the physical spiral daily planner image
   ========================================================================== */

:root {
  --photo-purple: #9d71f5;
  --photo-purple-light: #b993ff;
  --photo-purple-dark: #22123d;
  --line-black: #000000;
  --paper-white: #ffffff;
  --teal-carpet-bg: #0d838d;
  --water-blue: #38bdf8;
  --star-gold: #ffbe0b;
}

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

/* Background: Rich teal fluffy carpet texture from the photo */
body.teal-carpet-theme {
  font-family: 'Quicksand', sans-serif;
  background: radial-gradient(circle at 50% 25%, #18a2ad 0%, #0d838d 45%, #086770 100%);
  background-attachment: fixed;
  color: var(--line-black);
  min-height: 100vh;
  padding: 16px 12px 60px;
  position: relative;
  overflow-x: hidden;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  background: #ffffff;
  color: #1e1b4b;
  border-radius: 12px;
  border-left: 6px solid var(--photo-purple);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.toast-error {
  border-left-color: #ef4444;
  color: #991b1b;
}

.toast.toast-success {
  border-left-color: #10b981;
  color: #065f46;
}

.toast.hidden {
  display: none;
}

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

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.login-screen {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 30px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 3px solid #e9d5ff;
  text-align: center;
}

.couple-avatars {
  font-size: 2.6rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.heart-pulse {
  animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.login-header h1 {
  font-family: 'Fredoka', cursive;
  font-size: 1.8rem;
  color: var(--photo-purple);
  margin-bottom: 4px;
}

.login-header .subtitle {
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.demo-quick-login {
  background: #faf5ff;
  border: 2px dashed #d8b4fe;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.quick-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--photo-purple);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-demo {
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-demo small {
  opacity: 0.8;
  font-size: 0.76rem;
}

.btn-raj {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.btn-raj:hover {
  background: #bae6fd;
  transform: translateY(-2px);
}

.btn-sherin {
  background: #fce7f3;
  color: #be185d;
  border: 1px solid #fbcfe8;
}
.btn-sherin:hover {
  background: #fbcfe8;
  transform: translateY(-2px);
}

.divider {
  display: flex;
  align-items: center;
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 16px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider span {
  padding: 0 10px;
}

.form-group {
  text-align: left;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Quicksand', sans-serif;
  outline: none;
}

.form-group input:focus {
  border-color: var(--photo-purple);
  box-shadow: 0 0 0 3px rgba(157, 113, 245, 0.25);
}

.password-wrap {
  position: relative;
}

.toggle-pwd-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
}

/* Strong Password Requirements Live Indicator */
.password-rules-box {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  font-size: 0.74rem;
  text-align: left;
}

.pwd-rule {
  color: #94a3b8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwd-rule.valid {
  color: #16a34a;
  font-weight: 700;
  transform: scale(1.02);
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff;
  padding: 12px;
  font-family: 'Fredoka', cursive;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.btn-block {
  width: 100%;
}

.login-footer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   APP HEADER & CONTROLS ON TEAL CARPET
   ========================================================================== */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hidden {
  display: none !important;
}

.couples-top-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.app-logo {
  font-size: 0.95rem;
  color: #3b0764;
}

.planner-partner-switch {
  display: flex;
  background: #f1f5f9;
  border-radius: 30px;
  padding: 3px;
  gap: 4px;
}

.partner-switch-tab {
  background: none;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Fredoka', cursive;
  font-size: 0.95rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.partner-switch-tab.active#tabRajkumar {
  background: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.partner-switch-tab.active#tabSherin {
  background: #ec4899;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.partner-switch-tab .badge {
  font-size: 0.75rem;
}

.bar-right {
  display: flex;
  gap: 6px;
}

.btn-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.status-quote-ribbon {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.status-pill, .quote-pill {
  flex: 1;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.status-pill {
  color: #581c87;
  font-weight: 700;
}

.quote-pill {
  color: #431407;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
}

.mode-notice {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  color: #4c1d95;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-notice.readonly {
  background: #fef3c7;
  color: #92400e;
}

/* ==========================================================================
   CALENDAR DRAWER
   ========================================================================== */
.calendar-drawer {
  margin-bottom: 14px;
  display: none;
}

.calendar-drawer.open {
  display: block;
}

.calendar-inner-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cal-nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-nav-controls h3 {
  font-family: 'Fredoka', cursive;
  font-size: 1.2rem;
  color: var(--photo-purple);
  min-width: 170px;
  text-align: center;
}

.btn-cal-nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
}

.cal-actions {
  display: flex;
  gap: 8px;
}

.btn-today {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.date-quick-picker {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.82rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #64748b;
  padding-bottom: 6px;
}

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

.calendar-day-cell {
  min-height: 46px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.calendar-day-cell:hover {
  background: #f1f5f9;
}

.calendar-day-cell.selected {
  border-color: var(--photo-purple);
  background: #faf5ff;
  box-shadow: 0 0 0 2px var(--photo-purple);
}

.calendar-day-cell.today .day-number {
  background: var(--photo-purple);
  color: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.day-number {
  font-weight: 700;
  font-size: 0.8rem;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   THE PHYSICAL SPIRAL NOTEBOOK (100% FAITHFUL TO REFERENCE IMAGE)
   ========================================================================= */
.notebook-outer-canvas {
  position: relative;
  margin: 0 auto;
}

/* Spiral Wire Rings along the top */
.spiral-binding-bar {
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 10;
  margin-bottom: -18px;
}

.wire-loop {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16px;
}

/* Punch Hole on the paper */
.punch-hole {
  width: 10px;
  height: 14px;
  background: #111116;
  border-radius: 2px;
  margin-top: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

/* 3D Double Metal Wire Ring */
.coil {
  position: absolute;
  top: 0;
  width: 14px;
  height: 32px;
  background: linear-gradient(90deg, #18181b 0%, #3f3f46 25%, #71717a 50%, #27272a 75%, #09090b 100%);
  border-radius: 7px 7px 0 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.coil::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 2px;
  width: 10px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* Pure White Notebook Sheet */
.notebook-sheet {
  background: #ffffff;
  border-radius: 6px 6px 16px 16px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 30px 32px 32px;
  position: relative;
  border: 1px solid #d4d4d8;
}

/* Day Header in Bubble Letters (Matching Photo: "FRIDAY") */
.page-top-header {
  text-align: center;
  padding-bottom: 4px;
}

.bubble-day-title {
  font-family: 'Fredoka', cursive;
  font-size: 4rem;
  font-weight: 700;
  color: var(--photo-purple-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  /* Thick black outline matching photo */
  -webkit-text-stroke: 2.8px var(--line-black);
  paint-order: stroke fill;
  line-height: 1;
  margin: 0;
}

/* Date and Weather Row */
.date-weather-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.date-line-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
}

.date-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--line-black);
  letter-spacing: 1px;
}

.date-dots-value {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.45rem;
  color: #111;
  border-bottom: 2px dotted #000;
  flex: 1;
  padding-left: 6px;
  max-width: 320px;
}

/* 6 Weather Circles */
.weather-circles-row {
  display: flex;
  gap: 6px;
}

.weather-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line-black);
  background: #ffffff;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.weather-svg {
  width: 24px;
  height: 24px;
}

.weather-circle-btn:hover {
  transform: scale(1.15);
  background: #faf5ff;
}

.weather-circle-btn.active {
  background: #fef08a;
  box-shadow: 0 0 0 2px var(--photo-purple);
  transform: scale(1.18);
}

/* Two Column Layout */
.sheet-two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 16px;
}

.sheet-left-column, .sheet-right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sheet-full-width-section {
  grid-column: 1 / -1;
}

/* Purple Solid Banners (TO DO LIST, SCHEDULE, MEAL DIARY) */
.purple-banner-title {
  background: var(--photo-purple);
  color: #ffffff;
  font-family: 'Fredoka', cursive;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 8px;
}

/* ================= LEFT COLUMN CONTENT ================= */

/* TO DO LIST */
.todo-rows-wrapper {
  display: flex;
  flex-direction: column;
}

.todo-single-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.8px solid var(--line-black);
  padding: 3px 0;
  min-height: 28px;
}

.purple-bullet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--photo-purple);
  flex-shrink: 0;
}

.todo-hidden-check {
  cursor: pointer;
  width: 14px;
  height: 14px;
  accent-color: var(--photo-purple);
}

.ruled-line-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: #0f172a;
}

.todo-single-row.done .ruled-line-input {
  text-decoration: line-through;
  opacity: 0.55;
}

/* MEAL DIARY */
.meal-rows-wrapper {
  display: flex;
  flex-direction: column;
}

.meal-single-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1.8px solid var(--line-black);
  padding: 3px 0;
  min-height: 28px;
}

.meal-tag {
  font-family: 'Fredoka', cursive;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--line-black);
  min-width: 82px;
}

/* PURPLE OUTLINE CARDS (Water Intake, Mood, Review) */
.purple-outline-card {
  border: 2.5px solid var(--photo-purple);
  border-radius: 8px;
  position: relative;
  padding: 12px 10px 8px;
  background: #ffffff;
}

.card-outline-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 10px;
  font-family: 'Fredoka', cursive;
  font-size: 1rem;
  font-weight: 700;
  color: var(--line-black);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* WATER INTAKE: 8 Tapered Glasses */
.glasses-row-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
}

.tapered-glass-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.15s ease;
}

.tapered-glass-btn:hover {
  transform: scale(1.22);
}

.glass-taper-svg {
  width: 26px;
  height: 38px;
}

.glass-water-path {
  fill: transparent;
  transition: fill 0.25s ease;
}

.tapered-glass-btn.filled .glass-water-path {
  fill: var(--water-blue);
}

/* TODAY'S MOOD: 6 Emoji Face Buttons */
.mood-faces-row-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px;
}

.mood-face-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.mood-face-btn:hover {
  transform: scale(1.2);
}

.mood-face-svg {
  width: 34px;
  height: 34px;
}

.mood-face-btn.active {
  background: #fef08a;
  box-shadow: 0 0 0 2.5px var(--photo-purple);
  transform: scale(1.22);
}

/* NOTES: Solid Purple Box */
.solid-purple-notes-box {
  background: var(--photo-purple-light);
  border-radius: 6px;
  position: relative;
  padding: 18px 12px 10px;
  min-height: 120px;
}

.notes-white-pill {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 14px;
  padding: 2px 16px;
  font-family: 'Fredoka', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--line-black);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.notes-ruled-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.25rem;
  color: var(--photo-purple-dark);
  line-height: 1.4;
  resize: vertical;
}

/* ================= RIGHT COLUMN CONTENT ================= */

/* SCHEDULE TABLE (5 am to 12 am) */
.schedule-table-grid {
  display: flex;
  flex-direction: column;
}

.schedule-hour-row {
  display: flex;
  align-items: center;
  border-bottom: 1.8px solid var(--line-black);
  min-height: 25px;
}

.hour-label-cell {
  width: 60px;
  font-family: 'Fredoka', cursive;
  font-size: 1rem;
  font-weight: 700;
  color: var(--line-black);
  border-right: 1.8px solid var(--line-black);
  padding: 1px 4px 1px 0;
}

.hour-event-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: #0f172a;
  padding-left: 6px;
}

/* TODAY'S REVIEW (5 Stars) */
.stars-row-container {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 4px 0;
}

.star-rating-item {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.star-rating-item:hover {
  transform: scale(1.25);
}

.star-svg {
  width: 36px;
  height: 36px;
}

.star-rating-item.active polygon {
  fill: var(--star-gold);
  stroke: var(--line-black);
}

/* BRAND SIGNATURE */
.rk-brand-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-right: 6px;
}

.rk-brand-text {
  font-family: 'Fredoka', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  color: #7928ca;
  letter-spacing: 0.5px;
}

/* ================= COUPLES BONUS STICKY ================= */
.couples-special-sticky {
  background: #fdf4ff;
  border: 2px dashed var(--photo-purple);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

.sticky-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.05rem;
  color: #6b21a8;
  font-weight: 700;
  margin-bottom: 10px;
}

.sticky-prompts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sticky-item label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3b0764;
  margin-bottom: 3px;
}

.sticky-line-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #d8b4fe;
  background: transparent;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: #1e1b4b;
  outline: none;
}

.sticky-line-input:focus {
  border-bottom-color: var(--photo-purple);
}

/* Save Actions Bar */
.save-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 2px solid #f3e8ff;
  margin-top: 6px;
}

.btn-notebook-save {
  background: linear-gradient(135deg, var(--photo-purple) 0%, #7e22ce 100%);
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-family: 'Fredoka', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(126, 34, 206, 0.35);
  transition: all 0.2s ease;
}

.btn-notebook-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 34, 206, 0.45);
}

.btn-notebook-save:disabled {
  background: #f1f5f9;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.save-status-text {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   MODAL WINDOW
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-family: 'Fredoka', cursive;
  color: var(--photo-purple);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================================
   AUTH TOGGLE TABS (Sign In / Register)
   ========================================================================== */
.auth-toggle-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin: 12px 0 18px;
  gap: 4px;
}

.auth-toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Fredoka', cursive;
  font-size: 0.95rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-toggle-btn.active {
  background: #ffffff;
  color: var(--photo-purple);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* SHARE ID BADGE IN TOP BAR */
.share-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3e8ff;
  border: 1px dashed #c084fc;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #581c87;
  margin-left: 8px;
}

.share-label {
  font-weight: 600;
  opacity: 0.8;
}

.share-code {
  font-family: monospace;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

.btn-copy-mini {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 2px;
  transition: transform 0.15s ease;
}
.btn-copy-mini:hover {
  transform: scale(1.2);
}

/* PARTNER STATUS BUTTON & BADGES */
.btn-partner-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pending-badge {
  background: #ec4899;
  color: #ffffff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.count-badge {
  background: #ec4899;
  color: #ffffff;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
}

/* PAIRING MODAL */
.pairing-modal-card {
  max-width: 480px;
}

.pairing-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.pairing-box.my-id-box {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.pairing-box.partner-active-box {
  background: #fdf2f8;
  border-color: #fbcfe8;
}

.pairing-box-title {
  font-family: 'Fredoka', cursive;
  font-size: 1rem;
  color: #334155;
  font-weight: 600;
  margin-bottom: 6px;
}

.pairing-box-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 10px;
}

.share-id-copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px dashed #c084fc;
}

.share-id-display {
  font-family: monospace;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: #6b21a8;
}

.partner-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.partner-avatar {
  font-size: 1.8rem;
}

.partner-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.partner-details strong {
  font-size: 0.95rem;
  color: #1e1b4b;
}

.partner-details small {
  color: #64748b;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid #f43f5e;
  color: #e11d48;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-danger-outline:hover {
  background: #ffe4e6;
}

.btn-danger {
  background: #e11d48;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-danger:hover {
  background: #be123c;
}

.pairing-input-row {
  display: flex;
  gap: 8px;
}

.input-share-id {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.95rem;
  text-transform: uppercase;
  outline: none;
}
.input-share-id:focus {
  border-color: var(--photo-purple);
}

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.req-sender-info strong {
  display: block;
  font-size: 0.9rem;
  color: #1e1b4b;
}

.req-sender-info small {
  color: #64748b;
  font-family: monospace;
}

.req-actions {
  display: flex;
  gap: 6px;
}

.btn-accept-req {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-decline-req {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}

.empty-requests-msg {
  font-size: 0.82rem;
  color: #94a3b8;
  font-style: italic;
  padding: 4px 0;
}

.alert-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ==========================================================================
   DEVELOPER CREDIT LINKS
   ========================================================================== */
.rk-credit-link {
  color: #7c3aed;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.rk-credit-link:hover {
  color: #4f46e5;
  text-decoration: underline;
  transform: scale(1.02);
}

.rk-login-credit {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   EMOJI REACTIONS SECTION
   ========================================================================== */
.reactions-container {
  margin-top: 14px;
}

.reactions-box {
  background: #fdf4ff;
  border: 2px dashed #e879f9;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 4px 12px rgba(232, 121, 249, 0.12);
  transition: all 0.25s ease;
}

.reactions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.reactions-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #86198f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reactions-summary {
  font-size: 0.85rem;
  color: #a21caf;
  font-weight: 600;
  font-style: italic;
}

.reaction-buttons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 2px solid #f0abfc;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #701a75;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.reaction-btn:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: #d946ef;
  box-shadow: 0 4px 10px rgba(217, 70, 239, 0.25);
}

.reaction-btn:active {
  transform: scale(0.95);
}

.reaction-btn.user-reacted {
  background: #fae8ff;
  border-color: #c026d3;
  color: #701a75;
  box-shadow: 0 2px 8px rgba(192, 38, 211, 0.3);
}

.reaction-btn.user-reacted .reaction-emoji {
  transform: scale(1.2);
}

.reaction-emoji {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.reaction-count {
  font-size: 0.88rem;
  min-width: 14px;
  text-align: center;
}

.reaction-btn:not(.has-count) .reaction-count {
  opacity: 0.55;
}

.reaction-btn.has-count {
  font-weight: 800;
  border-color: #e879f9;
}

.reactions-detail-list {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #701a75;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reaction-badge-chip {
  background: #ffffff;
  border-radius: 12px;
  padding: 3px 8px;
  border: 1px solid #f5d0fe;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   PLATFORM PURPOSE & HOW TO USE GUIDES (ENGLISH & TAMIL)
   ========================================================================== */

/* Login Screen Guide Box */
.auth-guide-card {
  margin-top: 18px;
  background: #f8fafc;
  border: 1.5px dashed #c084fc;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.auth-guide-toggle-btn {
  width: 100%;
  padding: 10px 14px;
  background: #faf5ff;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #7e22ce;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.auth-guide-toggle-btn:hover {
  background: #f3e8ff;
}

.guide-toggle-arrow {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.guide-toggle-arrow.open {
  transform: rotate(180deg);
}

.auth-guide-body {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* Language Selector Tabs */
.lang-selector-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}

.lang-tab-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-tab-btn:hover {
  border-color: #c084fc;
  color: #7e22ce;
}

.lang-tab-btn.active {
  background: #7e22ce;
  border-color: #7e22ce;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(126, 34, 206, 0.25);
}

.purpose-quote-badge {
  background: #fdf4ff;
  border-left: 4px solid #d946ef;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #701a75;
  margin-bottom: 12px;
  text-align: left;
}

.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.mini-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #334155;
}

.mini-step-item code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: bold;
  color: #0d838d;
}

.step-badge {
  background: #9d71f5;
  color: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Guide Modal in App */
.guide-modal-card {
  max-width: 620px;
  width: 92%;
}

.guide-card-purpose {
  background: #fdf4ff;
  border: 1.5px solid #f0abfc;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: left;
}

.guide-card-purpose h4 {
  font-family: 'Fredoka', cursive;
  color: #86198f;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.guide-card-purpose p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #4a044e;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: left;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-step-item:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-num-badge {
  background: linear-gradient(135deg, #9d71f5 0%, #7e22ce 100%);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(157, 113, 245, 0.35);
}

.step-desc strong {
  display: block;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 3px;
}

.step-desc p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}

.step-desc code {
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
@media (max-width: 768px) {
  .sheet-two-column-layout {
    grid-template-columns: 1fr;
  }

  .bubble-day-title {
    font-size: 2.8rem;
  }

  .date-weather-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .weather-circles-row {
    width: 100%;
    justify-content: space-between;
  }

  .notebook-sheet {
    padding: 20px 16px 24px;
  }

  .sticky-prompts-grid {
    grid-template-columns: 1fr;
  }

  .couples-top-control-bar {
    border-radius: 20px;
  }
}
