/* Custom aesthetic adjustments for cozy girl planner */

:root {
  --theme-primary: #8C3A50;
  --theme-primary-hover: #722A3E;
  --theme-primary-light: #FFD1DC;
  --theme-primary-bg: #FFF0F5;
  --theme-ring: rgba(140, 58, 80, 0.25);
  --theme-gradient-start: #FFB7C5;
  --theme-gradient-end: #FFD1DC;
  --theme-glow: #FFE5EC;
}

/* Theme Variations */
body.theme-rose {
  --theme-primary: #8C3A50;
  --theme-primary-hover: #722A3E;
  --theme-primary-light: #FFD1DC;
  --theme-primary-bg: #FFF0F5;
  --theme-ring: rgba(140, 58, 80, 0.25);
  --theme-gradient-start: #FFB7C5;
  --theme-gradient-end: #FFD1DC;
  --theme-glow: #FFE5EC;
}

body.theme-lavender {
  --theme-primary: #6B4E8C;
  --theme-primary-hover: #543A70;
  --theme-primary-light: #E2D4F0;
  --theme-primary-bg: #F6F0FA;
  --theme-ring: rgba(107, 78, 140, 0.25);
  --theme-gradient-start: #D1B8E8;
  --theme-gradient-end: #EADBFA;
  --theme-glow: #EFE4FC;
}

body.theme-matcha {
  --theme-primary: #2D6A4F;
  --theme-primary-hover: #1E4E39;
  --theme-primary-light: #C7E8D3;
  --theme-primary-bg: #F0F9F4;
  --theme-ring: rgba(45, 106, 79, 0.25);
  --theme-gradient-start: #95D5B2;
  --theme-gradient-end: #B7E4C7;
  --theme-glow: #D8F3DC;
}

body.theme-blue {
  --theme-primary: #2B598C;
  --theme-primary-hover: #1D3E64;
  --theme-primary-light: #CBE3F8;
  --theme-primary-bg: #F0F6FC;
  --theme-ring: rgba(43, 89, 140, 0.25);
  --theme-gradient-start: #99C5E8;
  --theme-gradient-end: #BDDBF5;
  --theme-glow: #DCEEFD;
}

body.theme-peach {
  --theme-primary: #9C5135;
  --theme-primary-hover: #803D25;
  --theme-primary-light: #FCD5C5;
  --theme-primary-bg: #FFF4EF;
  --theme-ring: rgba(156, 81, 53, 0.25);
  --theme-gradient-start: #F8B49B;
  --theme-gradient-end: #FCD5C5;
  --theme-glow: #FFEBE3;
}

body {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background-color 0.3s ease;
}

input, textarea {
  user-select: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
  background: #E6D8CC;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D8C4B4;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Dynamic Theme Utility Classes */
.bg-theme-primary {
  background-color: var(--theme-primary);
}
.bg-theme-primary:hover {
  background-color: var(--theme-primary-hover);
}
.text-theme-primary {
  color: var(--theme-primary);
}
.bg-theme-light {
  background-color: var(--theme-primary-bg);
}
.border-theme-light {
  border-color: var(--theme-primary-light);
}

/* Active and Inactive Tab Styles */
.active-tab {
  background-color: var(--theme-primary);
  color: #FFFFFF;
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px var(--theme-ring);
}

.inactive-tab {
  background-color: #FFFFFF;
  color: #7A695B;
  border-color: #EADCCF;
}
.inactive-tab:hover {
  background-color: var(--theme-primary-bg);
  color: var(--theme-primary);
}

/* Bottom Nav States */
.active-nav {
  color: var(--theme-primary);
  background-color: var(--theme-primary-bg);
}
.inactive-nav {
  color: #9C897B;
}
.inactive-nav:hover {
  color: var(--theme-primary);
}

/* Checkbox strike-through animation */
.task-item {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, opacity 0.2s ease;
}
.task-item:active {
  transform: scale(0.98);
}

.custom-checkbox {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #D6C2B4;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-color: #FFFFFF;
}
.custom-checkbox:checked {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  transform: scale(1.05);
}
.custom-checkbox:checked::before {
  content: "✓";
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
}

/* Breathing animation cycle */
@keyframes breathingExpand {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(152, 216, 190, 0.3);
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 45px rgba(152, 216, 190, 0.7);
  }
}

.breathing-active {
  animation: breathingExpand 8s ease-in-out infinite;
}

/* Smooth glass effect */
.glass-panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Persona & Color Option Cards */
.selection-card {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.selection-card:hover {
  transform: translateY(-2px);
}
.selection-card.selected {
  border-color: var(--theme-primary);
  background-color: var(--theme-primary-bg);
  box-shadow: 0 0 0 2px var(--theme-primary);
  transform: scale(1.02);
}

/* Step transitions */
.wizard-step {
  animation: fadeInStep 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}