/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Base UI helpers */
:root {
  /* SaaS palette (site-wide) */
  --brand: #24A094;
  --brand-hover: #1F8C82;
  --accent: #2FBF9B;

  --site-bg: #FFFFFF;
  --section-bg: #EAF5F2;

  --text: #1F1B1F;
  --secondary: #6B7280;

  --btn-bg: var(--brand);
  --btn-bg-hover: var(--brand-hover);
  --btn-text: #ffffff;

  --card: #ffffff;
  --border: #E5E7EB;
  --hover: rgba(36, 160, 148, 0.08);

  --brand-gradient: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);

  --header-bg: rgba(255, 255, 255, 0.86);
  --header-fg: var(--text);
  --header-border: var(--border);
}

/* Global Hover Movement Neutralizer (Tailwind & Manual Override) */
[class*="hover:scale-"]:hover,
[class*="hover:translate-"]:hover,
[class*="hover:-translate-"]:hover {
  transform: none !important;
}

/* Custom Scrollbar for Chat */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Chat Animations */
@keyframes slide-in-bottom {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: slide-in-bottom 0.4s ease-out forwards;
}

/* Mantul Pro Border for PlannIt name (to be used in HTML) */
@font-face {
  font-family: 'Mantul Pro Border';
  src: url('https://fonts.cdnfonts.com/s/123456/MantulProBorder.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}


/* Site background */
body {
  background: var(--site-bg) !important;
  color: var(--text) !important;
  font-family: 'Gilroy', 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.tab-btn,
.input,
.label,
.card,
.card-lg,
.raise,
.brand-badge,
.avatar,
.todo-title,
.todo-badge,
.rem-item,
.goal-item,
.legend,
.matrix,
.matrix-col,
.matrix-header,
.matrix-item,
.cal-cell,
.cal-dot,
.cal-badge,
.tab-panel,
.text-center,
.font-bold,
.font-semibold,
.font-medium,
.text-lg,
.text-xl,
.text-2xl,
.text-3xl,
.text-4xl,
.text-5xl,
.text-sm,
.text-xs,
.text-slate-600,
.text-slate-700,
.text-slate-800,
.text-slate-900,
.text-green-500,
.text-yellow-500,
.text-blue-500,
.text-indigo-500,
.text-purple-500,
.text-pink-500,
.text-pink-700,
.text-indigo-700,
.text-indigo-800,
.text-green-700,
.text-green-800,
.text-yellow-700,
.text-yellow-800,
.text-purple-700,
.text-purple-800,
.text-pink-800,
.text-pink-900,
.text-indigo-900,
.text-green-900,
.text-yellow-900,
.text-purple-900,
.text-blue-600,
.text-indigo-600,
.text-indigo-100,
.text-green-100,
.text-purple-100,
.text-yellow-100,
.text-pink-100,
.text-pink-200,
.text-indigo-200,
.text-green-200,
.text-yellow-200,
.text-purple-200,
.text-pink-200,
.text-indigo-200,
.text-green-200,
.text-yellow-200,
.text-purple-200,
.text-pink-200,
.text-indigo-200,
.text-green-200,
.text-yellow-200,
.text-purple-200,
.text-pink-200,
.text-indigo-200,
.text-green-200,
.text-yellow-200,
.text-purple-200,
.text-pink-200,
.text-indigo-200,
.text-green-200,
.text-yellow-200,
.text-purple-200,
.text-pink-200,
.text-indigo-200,
.text-green-200,
.text-yellow-200,
.text-purple-200,
.text-pink-200,
.text-indigo-200,
.text-green-200,
.text-yellow-200,
.text-purple-200,
.text-pink-200 {
  font-family: 'Gilroy', 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;
}

.logo-name {
  font-family: 'Mantul Pro Border', Inter, sans-serif !important;
}

.brand-link-purple {
  transition: all 0.3s ease !important;
}

.brand-link-purple:hover {
  color: #907AD6 !important;
}

html {
  scroll-behavior: smooth;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Removed animation from body to prevent issues with fixed positioning */
body {
  /* animation removed */
}

.tab-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
}

.tab-btn:hover {
  color: var(--text);
  background: var(--hover);
}

.tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 160, 148, 0.25);
}

.tab-btn.active {
  background: var(--brand);
  color: #ffffff;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-color: rgba(36, 160, 148, 0.38);
}

.card-lg {
  padding: 2.5rem;
  border-radius: 2rem;
}

.raise {
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}

.raise:hover,
.raise:focus-within {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  outline: none;
}

.input:focus {
  box-shadow: 0 0 0 2px rgba(36, 160, 148, 0.30);
  border-color: var(--brand);
}

/* Interactive elements with pointer cursor */
.logo-container,
.review-card,
.card,
.btn,
.tab-btn,
[data-lucide] {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover,
.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Logo container without hover movement */
.logo-container {
  transition: none;
}

.logo-container:hover {
  transform: none;
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 1rem;
  transition: background-color .2s ease, color .2s ease, filter .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  filter: none;
}

.btn:active {
  filter: brightness(0.98);
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 160, 148, 0.25);
  outline: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--btn-text);
  border: 1px solid rgba(36, 160, 148, 0.22);
  box-shadow: 0 10px 22px rgba(36, 160, 148, 0.18);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: rgba(31, 140, 130, 0.28);
  box-shadow: 0 14px 28px rgba(31, 140, 130, 0.18);
  filter: none;
}

.icon-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #ffffff;
}

.icon-btn:hover {
  background: rgba(36, 160, 148, 0.06);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.icon-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 160, 148, 0.20);
  outline: none;
}

.btn-lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* Brand helpers */
.brand-badge {
  background: var(--brand) !important;
  color: #fff !important;
}

/* Header banner (white like screenshot) */
.header-dark {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--header-fg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header-dark a,
.header-dark h1 {
  color: var(--header-fg);
}

.header-dark .tab-btn {
  color: var(--header-fg);
}

.header-dark .tab-btn:hover {
  color: var(--text);
  background: rgba(36, 160, 148, 0.10);
}

.header-dark .tab-btn.active {
  background: rgba(36, 160, 148, 0.12);
  color: var(--text);
  border: 1px solid rgba(36, 160, 148, 0.22);
  box-shadow: 0 8px 18px rgba(36, 160, 148, 0.14);
}

.header-dark .icon-btn,
.header-dark .btn {
  background: transparent;
  border-color: rgba(229, 231, 235, 1);
  color: var(--header-fg);
}

.header-dark .icon-btn:hover,
.header-dark .btn:hover {
  background: rgba(36, 160, 148, 0.08);
}

/* Reviews Section */
#reviews-scroll {
  position: relative;
  width: 100%;
  padding: 30px 0 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#reviews-scroll::-webkit-scrollbar {
  display: none;
}

.review-container {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}

.review-item {
  flex: 0 0 calc(100% - 40px);
  min-width: 300px;
  scroll-snap-align: center;
  transition: all 0.4s ease;
  opacity: 0.6;
  transform: scale(0.95);
}

.review-item.active {
  opacity: 1;
  transform: scale(1);
}

.review-item blockquote {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  height: 100%;
  margin: 0 auto;
  max-width: 800px;
  border-left: 4px solid var(--brand);
}

.review-item.active blockquote {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation buttons */
#scroll-reviews-left,
#scroll-reviews-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 5;
  color: var(--brand);
}

#scroll-reviews-left {
  left: 10px;
}

#scroll-reviews-right {
  right: 10px;
}

#scroll-reviews-left:hover,
#scroll-reviews-right:hover {
  background: var(--brand);
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#scroll-reviews-left:disabled,
#scroll-reviews-right:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
  box-shadow: none;
  background: rgba(229, 231, 235, 0.55);
  color: #9CA3AF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .review-item {
    padding: 0 30px;
  }

  #scroll-reviews-left,
  #scroll-reviews-right {
    width: 36px;
    height: 36px;
  }

  .review-item blockquote {
    padding: 24px;
  }
}

/* Avatar badge */
.avatar {
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--brand);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.avatar {
  transition: transform .15s ease, box-shadow .2s ease;
}

.avatar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-dark .avatar {
  background: #374151;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.avatar-left {
  margin-left: -16px;
}

/* Tab Panel Styles */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Notepad Aesthetic for Shopping List */
.notepad-container {
  perspective: 1000px;
  width: 100%;
  margin: 2rem 0;
}

.notepad-paper {
  background: #fffdf0;
  /* Classic yellowish paper color */
  background-image: repeating-linear-gradient(transparent,
      transparent 31px,
      #e5e7eb 31px,
      #e5e7eb 32px);
  padding: 40px 20px 40px 60px;
  /* More padding on left for margin line */
  min-height: 600px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-radius: 4px;
  transform: rotateZ(-0.5deg);
  /* Subtle tilt */
  line-height: 32px;
}

.notepad-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 45px;
  height: 100%;
  width: 2px;
  background: #fecaca;
  /* Light red margin line */
}

/* Rings for the notepad */
.notepad-paper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 5px;
  height: 100%;
  width: 30px;
  background-image: radial-gradient(circle, #d1d5db 40%, transparent 45%);
  background-size: 30px 40px;
  background-position: 0 10px;
}

.notepad-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #374151;
  border-bottom: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.notepad-item input[type="checkbox"] {
  accent-color: var(--brand);
}

/* Calendar Container */
.calendar-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  overflow: hidden;
  max-width: 100%;
  padding: 0;
  position: relative;
}

.calendar-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

/* Header */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  z-index: 1;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calendar-nav button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.calendar-nav button:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.calendar-title {
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 1rem;
  min-width: 200px;
  text-align: center;
  font-size: 1.25rem;
}

.calendar-actions {
  display: flex;
  gap: 0.75rem;
}

.calendar-actions button {
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.625rem 1.25rem;
}

.btn-today {
  background: white;
  border: 2px solid #667eea;
  color: #667eea;
  font-weight: 600;
}

.btn-today:hover {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-add {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-add:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Grid Layout */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Weekday Header */
.weekday {
  padding: 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Day Cells */
.day {
  background: white;
  border-radius: 1rem;
  min-height: 7rem;
  padding: 0.875rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  font-size: 0.875rem;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
}

.day:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
  z-index: 10;
}

/* Day Number */
.day-number {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  color: #4b5563;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.day.today {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid #667eea;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.day.today.bg-emerald-50 {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.day.today.bg-amber-50 {
  background: #fffbeb;
  border-color: #fde68a;
}

.day.today.bg-rose-50 {
  background: #fff1f2;
  border-color: #fecdd3;
}

.day.today.bg-blue-50 {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.day.today .day-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: scale(1.1);
}

/* Muted for other months */
.day.other-month {
  background: #f9fafb;
  color: #9ca3af;
  opacity: 0.6;
}

.day.other-month:hover {
  opacity: 0.8;
}

/* Events */
.event {
  font-size: 0.7rem;
  padding: 0.375rem 0.5rem;
  margin: 0.25rem 0;
  border-radius: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.event:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event.work {
  background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-left-color: #3b82f6;
}

.event.personal {
  background: linear-gradient(90deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left-color: #10b981;
}

.event.meeting {
  background: linear-gradient(90deg, #fecaca 0%, #fca5a5 100%);
  color: #991b1b;
  border-left-color: #ef4444;
}

/* Events List Container */
.events-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 4rem;
  overflow-y: auto;
}

/* More indicator */
.events-more {
  font-size: 0.65rem;
  color: #667eea;
  text-align: center;
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Floating chat button */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #845ec2;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
  z-index: 1001;
}

.chat-button:hover {
  background-color: #6b4da8;
}

/* Chat box */
.chat-container {
  position: fixed;
  right: 20px;
  bottom: 170px;
  width: 600px;
  height: 750px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(110%);
  /* slide in from left */
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 50;
}

.chat-container.show {
  transform: translateX(0);
  opacity: 1;
}

/* Header */
.chat-header {
  background-color: #845ec2;
  color: white;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Body split into sidebar + main */
.chat-body {
  display: flex;
  flex: 1;
}

/* Sidebar */
.chat-sidebar {
  width: 180px;
  background-color: #f3f1f9;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.coach {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background 0.3s;
}

.coach:hover {
  background-color: #eae3f8;
}

.coach.active {
  background-color: #d3c0f5;
  font-weight: bold;
}

/* Chat main area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#tab-profile {
  width: 100%;
  padding: 0;
}

.settings-container {
  max-width: 900px;
  /* or full width if you want: width: 100%; */
  margin: 20px auto;
  /* center horizontally */
  background: transparent;
  padding: 0;
}

.settings-container .card {
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Messages */
.chat-messages {
  flex: 1;
  padding: 12px;
  background-color: #f9f9f9;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 14px;
}

.message.bot {
  background-color: #e0e0e0;
  align-self: flex-start;
}

.message.user {
  background-color: #845ec2;
  color: white;
  align-self: flex-end;
}

/* Input */
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

.chat-input button {
  background-color: #845ec2;
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #6b4da8;
}

/* Hidden */
.hidden {
  display: none;
}

/* Components */
.todo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.todo-title {
  flex: 1;
}

.todo-badge {
  font-size: 0.75rem;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  border: 1px solid;
}

.badge-high {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fef2f2;
}

.badge-medium {
  border-color: #fcd34d;
  color: #b45309;
  background: #fffbeb;
}

.badge-low {
  border-color: #86efac;
  color: #047857;
  background: #ecfdf5;
}

.rem-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.goal-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.goal#user-chat-sidebar {
  max-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cat-Academic {
  background: #3A66B7;
  color: #ffffff;
  border-color: #3A66B7;
}

.cat-Financial {
  background: #2E8B57;
  color: #ffffff;
  border-color: #2E8B57;
}

.cat-Health {
  background: #81C784;
  color: #0f172a;
  border-color: #81C784;
}

.cat-Mental-Health {
  background: #4FB6A3;
  color: #0f172a;
  border-color: #4FB6A3;
}

.cat-Work {
  background: #5A5A5A;
  color: #ffffff;
  border-color: #5A5A5A;
}

.cat-Career {
  background: #7A5DC7;
  color: #ffffff;
  border-color: #7A5DC7;
}

.cat-Relationship {
  background: #E56B6F;
  color: #ffffff;
  border-color: #E56B6F;
}

.cat-Personal {
  background: #F7A072;
  color: #1f2937;
  border-color: #F7A072;
}

.cat-Other {
  background: #6C7AE0;
  color: #ffffff;
  border-color: #6C7AE0;
}

.goal-item.cat-Academic {
  border-left: 4px solid #3A66B7;
}

.goal-item.cat-Financial {
  border-left: 4px solid #2E8B57;
}

.goal-item.cat-Health {
  border-left: 4px solid #81C784;
}

.goal-item.cat-Mental-Health {
  border-left: 4px solid #4FB6A3;
}

.goal-item.cat-Work {
  border-left: 4px solid #5A5A5A;
}

.goal-item.cat-Career {
  border-left: 4px solid #7A5DC7;
}

.goal-item.cat-Relationship {
  border-left: 4px solid #E56B6F;
}

.goal-item.cat-Personal {
  border-left: 4px solid #F7A072;
}

.goal-item.cat-Other {
  border-left: 4px solid #6C7AE0;
}

.cal-cell {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.cal-cell:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cal-cell-header {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-cell-title {
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: var(--accent);
}

/* Today's date - black border */
.cal-today {
  border: 2px solid #000000 !important;
  box-shadow: 0 0 0 1px #000000;
}

.cal-today .cal-day {
  color: #000000;
  font-weight: 700;
}

/* Calendar weekday and date styling */
.cal-week {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-day {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 2px;
}

/* Heat levels by number of tasks */
.cal-level-0 {
  background: #ffffff;
}

.cal-level-1 {
  background: #bbf7d0;
  border-color: #86efac;
}

.cal-level-2 {
  background: #fde68a;
  border-color: #fcd34d;
}

.cal-level-3 {
  background: #fdba74;
  border-color: #fb923c;
}

.cal-level-4 {
  background: #fca5a5;
  border-color: #f87171;
}

.cal-level-5 {
  background: #fb7185;
  border-color: #f43f5e;
}

/* Selected ring (optional if needed later) */
.cal-selected {
  box-shadow: 0 0 0 2px #0f172a inset, 0 0 0 4px #ffffff inset;
}

/* Count badge */
.cal-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--text);
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #64748b;
  font-size: 0.875rem;
}

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

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 0.375rem;
  border: 1px solid #cbd5e1;
}

/* Hidden helper */
.hidden {
  display: none;
}

/* Eisenhower Matrix */
/* Eisenhower Matrix */
.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.matrix-col {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 12px;
  background: #ffffff;
}

.matrix-col .matrix-header {
  font-weight: 700;
  margin-bottom: 8px;
}

.matrix-col .muted {
  font-weight: 500;
  font-size: 12px;
  color: #64748b;
}

/* Quadrant color tints */
.matrix-col.do {
  background: #e8f8ec;
  border-color: #86efac;
}

.matrix-col.schedule {
  background: #e7f0fe;
  border-color: #93c5fd;
}

.matrix-col.delegate {
  background: #fdecec;
  border-color: #fca5a5;
}

.matrix-col.delete {
  background: #fff4e5;
  border-color: #fdba74;
}

.matrix-item.matrix-do {
  border-left: 4px solid #16a34a;
}

.matrix-item.matrix-schedule {
  border-left: 4px solid #2563eb;
}

.matrix-item.matrix-delegate {
  border-left: 4px solid #ef4444;
}

.matrix-item.matrix-delete {
  border-left: 4px solid #f59e0b;
}

/* --- SaaS theme helpers (Tailwind pages) --- */
.saas-theme {
  background: var(--site-bg) !important;
  color: var(--secondary);
}

.saas-theme h1,
.saas-theme h2,
.saas-theme h3,
.saas-theme h4,
.saas-theme h5,
.saas-theme h6 {
  color: var(--text);
}

.saas-theme a {
  color: var(--brand);
}

.saas-theme a:hover {
  color: var(--brand-hover);
}

.saas-theme.bg-slate-950,
.saas-theme.bg-slate-900,
.saas-theme .bg-slate-950,
.saas-theme .bg-slate-900,
.saas-theme.bg-gray-950,
.saas-theme.bg-gray-900,
.saas-theme .bg-gray-950,
.saas-theme .bg-gray-900 {
  background-color: var(--site-bg) !important;
}

.saas-theme.bg-slate-800,
.saas-theme .bg-slate-800,
.saas-theme.bg-gray-800,
.saas-theme .bg-gray-800 {
  background-color: var(--section-bg) !important;
}

.saas-theme.bg-slate-900 .text-white,
.saas-theme .bg-slate-900 .text-white,
.saas-theme.bg-slate-800 .text-white,
.saas-theme .bg-slate-800 .text-white,
.saas-theme.bg-slate-700 .text-white,
.saas-theme .bg-slate-700 .text-white {
  color: var(--text) !important;
}

.saas-theme.bg-slate-700,
.saas-theme .bg-slate-700,
.saas-theme.bg-gray-700,
.saas-theme .bg-gray-700 {
  background-color: rgba(234, 245, 242, 0.72) !important;
}

.saas-theme .border-slate-800,
.saas-theme .border-slate-700,
.saas-theme .border-slate-600,
.saas-theme .border-gray-800,
.saas-theme .border-gray-700,
.saas-theme .border-gray-600 {
  border-color: var(--border) !important;
}

.saas-theme.text-slate-50,
.saas-theme .text-slate-50,
.saas-theme.text-slate-100,
.saas-theme .text-slate-100,
.saas-theme.text-slate-200,
.saas-theme .text-slate-200 {
  color: var(--text) !important;
}

.saas-theme.text-slate-300,
.saas-theme .text-slate-300,
.saas-theme.text-slate-400,
.saas-theme .text-slate-400,
.saas-theme.text-slate-500,
.saas-theme .text-slate-500,
.saas-theme.text-slate-600,
.saas-theme .text-slate-600,
.saas-theme.text-gray-400,
.saas-theme .text-gray-400,
.saas-theme.text-gray-500,
.saas-theme .text-gray-500,
.saas-theme.text-gray-600,
.saas-theme .text-gray-600,
.saas-theme.text-gray-700,
.saas-theme .text-gray-700 {
  color: var(--secondary) !important;
}

.saas-theme .bg-indigo-600,
.saas-theme .bg-indigo-500,
.saas-theme .bg-teal-600,
.saas-theme .bg-emerald-600,
.saas-theme .bg-cyan-600 {
  background-color: var(--brand) !important;
}

.saas-theme .hover\:bg-indigo-700:hover,
.saas-theme .hover\:bg-teal-700:hover,
.saas-theme .hover\:bg-emerald-700:hover,
.saas-theme .hover\:bg-cyan-700:hover {
  background-color: var(--brand-hover) !important;
}

.saas-theme .text-indigo-300,
.saas-theme .text-indigo-400,
.saas-theme .text-indigo-500,
.saas-theme .text-indigo-600,
.saas-theme .text-teal-500,
.saas-theme .text-teal-600,
.saas-theme .text-emerald-500,
.saas-theme .text-emerald-600 {
  color: var(--brand) !important;
}

.saas-theme .glass-card {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08) !important;
}

.saas-theme .sidebar {
  background: var(--section-bg) !important;
  border-right-color: var(--border) !important;
}

.saas-theme .nav-link.active,
.saas-theme .active-nav {
  background: rgba(36, 160, 148, 0.12) !important;
  color: var(--text) !important;
  box-shadow: 0 10px 20px rgba(36, 160, 148, 0.10) !important;
}
