/* Todo-it Custom Styles - BEM Methodology */
/* Replacing Tailwind CSS with custom BEM classes */

/* Import the handwritten font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap');

/* =================================
   RESET AND BASE STYLES
   ================================= */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Gloria Hallelujah', 'Comic Sans MS', 'Marker Felt', 'Trebuchet MS', cursive, sans-serif;
  font-size: 1.1rem; /* 10% bigger base font size */
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100vh;
}
/* =================================
   LAYOUT COMPONENTS (BEM)
   ================================= */

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container--wide {
  max-width: 1400px;
}

.container--narrow {
  max-width: 800px;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex--column {
  flex-direction: column;
}

.flex--justify-between {
  justify-content: space-between;
}

.flex--justify-center {
  justify-content: center;
}

.flex--align-center {
  align-items: center;
}

.flex--align-start {
  align-items: flex-start;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--grow {
  flex: 1;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid--cols-1 {
  grid-template-columns: 1fr;
}

.grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--gap-4 {
  gap: 1rem;
}

.grid--gap-8 {
  gap: 2rem;
}

.grid--gap-12 {
  gap: 3rem;
}

/* =================================
   SPACING UTILITIES (BEM)
   ================================= */

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Margins */
.m-0 { margin: 0; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }

/* Spacing between elements */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2.5rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 1.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* =================================
   TYPOGRAPHY (BEM)
   ================================= */

/* Text sizes - 10% bigger */
.text-xs { font-size: 0.825rem; }
.text-sm { font-size: 0.9625rem; }
.text-base { font-size: 1.1rem; }
.text-lg { font-size: 1.2375rem; }
.text-xl { font-size: 1.375rem; }
.text-2xl { font-size: 1.65rem; }
.text-3xl { font-size: 2.0625rem; }
.text-4xl { font-size: 2.475rem; }
.text-5xl { font-size: 3.3rem; }
.text-6xl { font-size: 4.125rem; }

/* Font weights */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Line height */
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* =================================
   COLORS (BEM)
   ================================= */

/* Text colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }

.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }

.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }

.text-orange-600 { color: #ea580c; }

/* Background colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-900 { background-color: #111827; }

.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }

.bg-green-100 { background-color: #dcfce7; }
.bg-green-200 { background-color: #bbf7d0; }
.bg-green-500 { background-color: #22c55e; }

.bg-yellow-200 { background-color: #fef08a; }

.bg-purple-100 { background-color: #f3e8ff; }

.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-500 { background-color: #f97316; }

.bg-indigo-100 { background-color: #e0e7ff; }

/* Gradients */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-blue-50 { --tw-gradient-from: #eff6ff; }
.to-indigo-100 { --tw-gradient-to: #e0e7ff; }

.from-blue-50.to-cyan-100 { 
  background-image: linear-gradient(to bottom right, #eff6ff, #cffafe);
}

.from-amber-50.to-orange-100 { 
  background-image: linear-gradient(to bottom right, #fffbeb, #fed7aa);
}

.from-slate-800.to-slate-900 { 
  background-image: linear-gradient(to bottom right, #1e293b, #0f172a);
}

/* =================================
   BORDERS AND SHADOWS
   ================================= */

.border { border: 1px solid #e5e7eb; }
.border-2 { border: 2px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-orange-300 { border-color: #fdba74; }

.border-dashed { border-style: dashed; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

/* =================================
   SIZING
   ================================= */

.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }

.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-full { height: 100%; }

.min-h-screen { min-height: 100vh; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* =================================
   POSITIONING AND DISPLAY
   ================================= */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-1 { top: 0.25rem; }
.right-1 { right: 0.25rem; }
.bottom-20 { bottom: 5rem; }
.right-20 { right: 5rem; }

.z-50 { z-index: 50; }
.z-1000 { z-index: 1000; }

.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* =================================
   INTERACTIVE STATES
   ================================= */

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Hover states */
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:text-gray-800:hover { color: #1f2937; }
.hover\:text-green-800:hover { color: #166534; }
.hover\:text-red-800:hover { color: #991b1b; }

.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-white:hover { background-color: #ffffff; }

/* Focus states */
.focus\:outline-none:focus { outline: none; }
.focus\:text-gray-800:focus { color: #1f2937; }

/* Opacity */
.opacity-50 { opacity: 0.5; }

/* Transitions */
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out; }
.transition-opacity { transition: opacity 0.5s ease-in-out; }
.transition-all { transition: all 0.2s ease-in-out; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }

/* Transform */
.transform { transform: translateZ(0); }
.rotate-12 { transform: rotate(12deg); }
.-rotate-6 { transform: rotate(-6deg); }
.scale-75 { transform: scale(0.75); }

/* =================================
   RESPONSIVE UTILITIES
   ================================= */

/* Mobile first approach - sm: 640px and up */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
}

/* md: 768px and up */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:hidden { display: none; }
  .md\:inline { display: inline; }
  .md\:block { display: block; }
}

/* lg: 1024px and up */
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:text-6xl { font-size: 3.75rem; }
}

/* xl: 1280px and up */
@media (min-width: 1280px) {
  .xl\:text-gray-700 { color: #374151; }
}

/* 2xl: 1536px and up */
@media (min-width: 1536px) {
  .\32xl\:text-gray-900 { color: #111827; }
}

/* =================================
   NOTEBOOK THEME COMPONENTS (BEM)
   ================================= */

/* Notebook background patterns */
.notebook-background {
  background-color: #fefefe;
  background-image: radial-gradient(circle, #ddd 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Notebook card component */
.notebook-card {
  background-color: transparent;
  border: none;
  position: relative;
  padding: 32px 24px;
}

/* Hand-drawn margin line */
.notebook-card::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: url("data:image/svg+xml,%3csvg width='2' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1,0 Q1.5,10 1,20 T1,40 T1,60 T1,80 T1,100' stroke='%23ef4444' stroke-width='1.5' fill='none'/%3e%3c/svg%3e") repeat-y;
}

/* Hand-drawn checkbox styles */
.hand-checkbox {
  width: 26px;
  height: 26px;
  cursor: pointer;
  margin-right: 8px;
  margin-top: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
  display: inline-block;
}

.hand-checkbox:hover {
  transform: scale(1.05);
}

.hand-checkbox:active {
  transform: scale(0.95);
}

.hand-checkbox--unchecked {
  background: url("data:image/svg+xml,%3csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3,2.5 Q3.2,2.2 4.5,2.8 L19.2,3.1 Q21,2.9 21.5,4.8 L21.8,18.5 Q21.3,20.2 19.1,20.5 L4.8,20.2 Q2.9,20.8 2.5,18.8 L2.2,4.5 Q2.8,2.8 3,2.5 Z' stroke='%23111111' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") no-repeat center;
}

.hand-checkbox--checked {
  background: url("data:image/svg+xml,%3csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3,2.5 Q3.2,2.2 4.5,2.8 L19.2,3.1 Q21,2.9 21.5,4.8 L21.8,18.5 Q21.3,20.2 19.1,20.5 L4.8,20.2 Q2.9,20.8 2.5,18.8 L2.2,4.5 Q2.8,2.8 3,2.5 Z' stroke='%23111111' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3cpath d='M5.5,11.8 Q7.2,13.5 8.5,15.2 Q13.8,9.5 18.2,6.8' stroke='%2316a34a' stroke-width='2.2' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") no-repeat center;
  animation: checkboxComplete 0.6s ease-out;
}

@keyframes checkboxComplete {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Logo checkbox */
.logo-checkbox {
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3,2.5 Q3.2,2.2 4.5,2.8 L19.2,3.1 Q21,2.9 21.5,4.8 L21.8,18.5 Q21.3,20.2 19.1,20.5 L4.8,20.2 Q2.9,20.8 2.5,18.8 L2.2,4.5 Q2.8,2.8 3,2.5 Z' stroke='%23374151' stroke-width='1.8' fill='none' stroke-linecap='round'/%3e%3cpath d='M5.5,11.8 Q7.2,13.5 8.5,15.2 Q13.8,9.5 18.2,6.8' stroke='%2316a34a' stroke-width='2.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") no-repeat center;
  background-size: contain;
  display: inline-block;
  margin-right: 8px;
}

/* Hand-drawn strike-through for completed todos - SVG version that wraps with text */
.hand-strike-through {
  text-decoration: none !important;
  display: inline !important;
  position: relative !important;
  padding: 0 2px !important;
}

/* Handwritten SVG strikethrough that wraps with text */
.hand-strike-through::after {
  content: '';
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 100% !important;
  height: 3px !important;
  background: url("data:image/svg+xml,%3csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1.5 Q15,0.8 30,1.8 T60,1.2 T90,1.6 T100,1.3' stroke='%236b7280' stroke-width='1.8' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") repeat-x !important;
  background-size: 100px 3px !important;
  transform: translateY(-50%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Mobile fallback - use wavy text-decoration on very small screens */
@media (max-width: 480px) {
  .hand-strike-through {
    text-decoration: line-through !important;
    text-decoration-color: #6b7280 !important;
    text-decoration-thickness: 1.5px !important;
    text-decoration-style: wavy !important;
  }
  
  .hand-strike-through::after {
    display: none !important;
  }
}

/* Fix h4 margin in todo items */
.todo-item h4 {
  margin-top: 0;
  margin-bottom: 0;
  display: inline;
}

/* Hand-drawn underlines for links */
.hand-underline {
  position: relative;
  text-decoration: none;
  border: none !important;
  padding-bottom: 4px;
}

.hand-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: url("data:image/svg+xml,%3csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1.5 Q10,0.8 20,1.2 T40,1.8 T60,1.1 T80,1.6 T100,1.3' stroke='%23374151' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") repeat-x;
  background-size: 100px 3px;
}

.hand-underline--blue::after {
  background: url("data:image/svg+xml,%3csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1.5 Q10,0.8 20,1.2 T40,1.8 T60,1.1 T80,1.6 T100,1.3' stroke='%232563eb' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") repeat-x;
}

.hand-underline--green::after {
  background: url("data:image/svg+xml,%3csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1.5 Q10,0.8 20,1.2 T40,1.8 T60,1.1 T80,1.6 T100,1.3' stroke='%2316a34a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") repeat-x;
}

.hand-underline--red::after {
  background: url("data:image/svg+xml,%3csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1.5 Q10,0.8 20,1.2 T40,1.8 T60,1.1 T80,1.6 T100,1.3' stroke='%23dc2626' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") repeat-x;
}

.hand-underline--gray::after {
  background: url("data:image/svg+xml,%3csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1.5 Q10,0.8 20,1.2 T40,1.8 T60,1.1 T80,1.6 T100,1.3' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") repeat-x;
}

.hand-underline:hover::after {
  height: 4px;
  bottom: -1px;
}

/* Todo item component */
.todo-item {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 16px 8px;
  transition: all 0.2s ease;
}

.todo-item:hover {
  background-color: rgba(59, 130, 246, 0.03);
  border-radius: 4px;
  padding-left: 16px;
  padding-right: 16px;
}

.todo-item--new {
  opacity: 0;
  animation: fadeInSlide 0.5s ease-out forwards;
}

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

/* Add todo form components */
.add-todo--collapsed {
  background-color: transparent;
  font-family: 'Gloria Hallelujah', 'Comic Sans MS', 'Marker Felt', 'Trebuchet MS', cursive, sans-serif;
  border: none;
  padding: 16px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-todo--collapsed:hover {
  background-color: rgba(59, 130, 246, 0.02);
  border-radius: 4px;
}

.add-todo--expanded {
  background-color: transparent;
  border: none;
  padding: 20px 0;
  animation: expandForm 0.3s ease-out;
}

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

/* Form input styles - transparent with hand-drawn underlines */
.form-input,
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="date"],
textarea {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 8px 0 4px 0 !important;
  position: relative;
  background-image: url("data:image/svg+xml,%3csvg width='100' height='2' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1 Q10,0.5 20,1.2 T40,0.8 T60,1.3 T80,0.9 T100,1.1' stroke='%23d1d5db' stroke-width='1.2' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") !important;
  background-repeat: repeat-x !important;
  background-position: bottom !important;
  background-size: 100px 2px !important;
}

.form-input:focus,
input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="date"]:focus,
textarea:focus {
  background-color: transparent !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1.5 Q10,0.8 20,1.8 T40,1.2 T60,1.9 T80,1.3 T100,1.6' stroke='%232563eb' stroke-width='1.8' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") !important;
  background-repeat: repeat-x !important;
  background-position: bottom !important;
  background-size: 100px 3px !important;
}

/* Pulse focus effect */
.pulse-focus:focus {
  animation: pulse-focus 0.3s ease-out;
}

@keyframes pulse-focus {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Hide browser autocomplete styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: inherit !important;
  background-color: transparent !important;
}

/* =================================
   THEME SYSTEM (BEM)
   ================================= */

/* Theme 2: Lined Paper */
.theme-lined {
  background-color: #fefefe;
  background-image: 
    linear-gradient(to bottom, transparent 24px, #e5e7eb 24px, #e5e7eb 26px, transparent 26px);
  background-size: 100% 26px;
}

.theme-lined .notebook-card::before {
  background: url("data:image/svg+xml,%3csvg width='2' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1,0 Q1.5,10 1,20 T1,40 T1,60 T1,80 T1,100' stroke='%23ef4444' stroke-width='1.5' fill='none'/%3e%3c/svg%3e") repeat-y;
}

/* Theme 3: Graph Paper */
.theme-graph {
  background-color: #fefefe;
  background-image: 
    linear-gradient(#e5e7eb 1px, transparent 1px),
    linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size: 20px 20px;
}

.theme-graph .notebook-card::before {
  background: url("data:image/svg+xml,%3csvg width='2' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1,0 Q1.5,10 1,20 T1,40 T1,60 T1,80 T1,100' stroke='%2316a34a' stroke-width='1.5' fill='none'/%3e%3c/svg%3e") repeat-y;
}

/* Theme 4: Vintage Paper */
.theme-vintage {
  background-color: #f9f7f4;
  background-image: 
    radial-gradient(circle, #d4af87 1px, transparent 1px);
  background-size: 25px 25px;
  background-position: 0 0, 12px 12px;
}

.theme-vintage .notebook-card::before {
  background: url("data:image/svg+xml,%3csvg width='2' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1,0 Q1.5,10 1,20 T1,40 T1,60 T1,80 T1,100' stroke='%23b8860b' stroke-width='1.8' fill='none'/%3e%3c/svg%3e") repeat-y;
}

.theme-vintage body {
  color: #3e2723;
}

.theme-vintage .text-gray-600 {
  color: #5d4e37 !important;
}

.theme-vintage .text-gray-700 {
  color: #4a3728 !important;
}

/* Theme 5: Dark Mode */
.theme-dark {
  background-color: #1a1a1a;
  background-image: 
    radial-gradient(circle, #404040 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.theme-dark body {
  background-color: #1a1a1a;
  color: #f5f5f5;
}

.theme-dark .notebook-card::before {
  background: url("data:image/svg+xml,%3csvg width='2' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1,0 Q1.5,10 1,20 T1,40 T1,60 T1,80 T1,100' stroke='%23ef4444' stroke-width='1.5' fill='none'/%3e%3c/svg%3e") repeat-y;
}

.theme-dark .text-gray-600 {
  color: #9ca3af !important;
}

.theme-dark .text-gray-700 {
  color: #d1d5db !important;
}

.theme-dark .text-gray-800 {
  color: #f5f5f5 !important;
}

.theme-dark .text-gray-900 {
  color: #f5f5f5 !important;
}

.theme-dark .text-black {
  color: #f5f5f5 !important;
}

/* Fix headings and bold text in dark mode */
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6,
.theme-dark .font-bold,
.theme-dark .font-semibold {
  color: #f5f5f5 !important;
}

/* Fix all form elements in dark mode */
.theme-dark input,
.theme-dark textarea,
.theme-dark label,
.theme-dark .form-label,
.theme-dark .block,
.theme-dark .text-sm,
.theme-dark .font-medium,
.theme-dark .placeholder-gray-500,
.theme-dark ::placeholder {
  color: #f5f5f5 !important;
  font-family: 'Gloria Hallelujah', 'Comic Sans MS', 'Marker Felt', 'Trebuchet MS', cursive, sans-serif !important;
}

.theme-dark input::placeholder,
.theme-dark textarea::placeholder {
  color: #9ca3af !important;
  font-family: 'Gloria Hallelujah', 'Comic Sans MS', 'Marker Felt', 'Trebuchet MS', cursive, sans-serif !important;
}

/* Fix form input backgrounds in dark mode */
.theme-dark input[type="text"],
.theme-dark input[type="email"], 
.theme-dark input[type="password"],
.theme-dark input[type="date"],
.theme-dark textarea {
  background-color: transparent !important;
  color: #f5f5f5 !important;
  background-image: url("data:image/svg+xml,%3csvg width='100' height='2' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1 Q10,0.5 20,1.2 T40,0.8 T60,1.3 T80,0.9 T100,1.1' stroke='%23374151' stroke-width='1.2' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") !important;
}

.theme-dark input[type="text"]:focus,
.theme-dark input[type="email"]:focus,
.theme-dark input[type="password"]:focus,
.theme-dark input[type="date"]:focus,
.theme-dark textarea:focus {
  background-image: url("data:image/svg+xml,%3csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3e%3cpath d='M0,1.5 Q10,0.8 20,1.8 T40,1.2 T60,1.9 T80,1.3 T100,1.6' stroke='%237dd3fc' stroke-width='1.8' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") !important;
}

.theme-dark .bg-gray-100 {
  background-color: #374151 !important;
  color: #f3f4f6 !important;
}

.theme-dark .bg-gray-200 {
  background-color: #4b5563 !important;
}

.theme-dark .text-blue-600 {
  color: #7dd3fc !important;
}

.theme-dark .text-blue-800 {
  color: #a5f3fc !important;
}

.theme-dark .text-green-600 {
  color: #34d399 !important;
}

.theme-dark .text-green-700 {
  color: #34d399 !important;
}

.theme-dark .text-green-800 {
  color: #6ee7b7 !important;
}

.theme-dark .text-red-600 {
  color: #f87171 !important;
}

.theme-dark .text-red-700 {
  color: #f87171 !important;
}

.theme-dark .text-red-800 {
  color: #fca5a5 !important;
}

/* Theme selector components */
.theme-selector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle--mobile {
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-toggle__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(59, 130, 246, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle__btn:hover {
  transform: scale(1.1);
  border-color: #3b82f6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.theme-toggle__btn:active {
  transform: scale(0.95);
}

.theme-selector--mobile {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 200px;
  max-width: 250px;
}

.theme-dark .theme-selector--mobile {
  background: rgba(31, 41, 55, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-dark .theme-selector {
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-selector button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  margin: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-selector button:hover {
  transform: scale(1.1);
  border-color: #3b82f6;
}

.theme-selector button.active {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.theme-btn--classic { 
  background: radial-gradient(circle, #ddd 30%, transparent 30%), #fefefe; 
}

.theme-btn--lined { 
  background: linear-gradient(to bottom, transparent 40%, #e5e7eb 40%, #e5e7eb 60%, transparent 60%), #fefefe; 
}

.theme-btn--graph { 
  background: linear-gradient(#e5e7eb 1px, transparent 1px), linear-gradient(90deg, #e5e7eb 1px, transparent 1px), #fefefe; 
  background-size: 8px 8px; 
}

.theme-btn--vintage { 
  background: radial-gradient(circle, #d4af87 30%, transparent 30%), #f9f7f4; 
}

.theme-btn--dark { 
  background: radial-gradient(circle, #404040 30%, transparent 30%), #1a1a1a; 
}

/* =================================
   NAVIGATION COMPONENTS (BEM)
   ================================= */

.navbar {
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.navbar__container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .navbar__container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar__container {
    padding: 0 2rem;
  }
}

.navbar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.navbar__nav--desktop {
  display: none;
  align-items: center;
}

@media (min-width: 640px) {
  .navbar__nav--desktop {
    display: flex;
  }
}

.navbar__nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* More space between nav items */
}

.navbar__nav-item {
  margin-left: 3rem;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* More space between action items */
}

.navbar__nav-link {
  color: #4b5563;
  font-weight: 500;
  transition: color 0.15s ease-in-out;
}

.navbar__nav-link:hover {
  color: #2563eb;
}

.navbar__nav-link--active {
  color: #2563eb;
}

.navbar__actions {
  display: flex;
  align-items: center;
}

.navbar__user-greeting {
  color: #374151;
  margin-right: 1rem;
}

.navbar__menu-btn {
  display: block;
  color: #4b5563;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.15s ease-in-out;
}

.navbar__menu-btn:hover,
.navbar__menu-btn:focus {
  color: #1f2937;
  outline: none;
}

@media (min-width: 640px) {
  .navbar__menu-btn {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background-color: #ffffff;
}

@media (max-width: 639px) {
  .mobile-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .mobile-menu.hidden {
    display: none;
  }
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu__close-btn {
  color: #4b5563;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.15s ease-in-out;
}

.mobile-menu__close-btn:hover,
.mobile-menu__close-btn:focus {
  color: #1f2937;
  outline: none;
}

.mobile-menu__content {
  flex: 1;
  padding: 1.5rem 1rem;
}

.mobile-menu__nav-list {
  margin-bottom: 2rem;
}

.mobile-menu__nav-item {
  margin-bottom: 2rem;
}

.mobile-menu__nav-link {
  display: block;
  font-size: 1.875rem;
  font-weight: 500;
  color: #111827;
  transition: color 0.15s ease-in-out;
}

.mobile-menu__nav-link:hover {
  color: #2563eb;
}

.mobile-menu__nav-link--active {
  color: #2563eb;
}

.mobile-menu__user-greeting {
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 2rem;
}

.mobile-menu__actions {
  padding-top: 2rem;
}

.mobile-menu__action-item {
  margin-bottom: 1.5rem;
}

.mobile-menu__action-link {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.15s ease-in-out;
}

.mobile-menu__action-link:hover {
  color: #2563eb;
}

.mobile-menu__action-btn {
  display: block;
  background-color: #2563eb;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.15s ease-in-out;
  border: none;
  cursor: pointer;
  width: 100%;
}

.mobile-menu__action-btn:hover {
  background-color: #1d4ed8;
}

/* =================================
   FLASH MESSAGES (BEM)
   ================================= */

.flash-message {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  padding: 1rem;
  margin: 1rem;
  text-align: center;
  font-weight: 500;
  transition: opacity 0.5s ease-in-out;
}

.flash-message::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  opacity: 0.6;
}

.flash-message--success {
  color: #15803d;
}

.flash-message--error {
  color: #b91c1c;
}

/* Dark mode flash messages */
.theme-dark .flash-message {
  background: rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =================================
   DRAG AND DROP STYLES (BEM)
   ================================= */

.todo-item--dragging {
  transform: rotate(2deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  cursor: grabbing !important;
}

.todo-item--drag-over {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border-color: #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.05);
}

.todo-placeholder {
  margin: 8px 0;
  transition: all 0.2s ease;
}

[data-sortable-target="item"] {
  cursor: grab;
  transition: all 0.2s ease;
}

[data-sortable-target="item"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drag-handle {
  opacity: 0.4;
  transition: opacity 0.2s ease;
  cursor: grab;
}

[data-sortable-target="item"]:hover .drag-handle {
  opacity: 0.8;
}

/* Dark mode drag styles */
.theme-dark .todo-item--drag-over {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: #60a5fa !important;
}

.theme-dark .todo-placeholder {
  color: #60a5fa;
}

/* =================================
   BUTTON COMPONENTS (BEM)
   ================================= */

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #1d4ed8;
}

.btn--secondary {
  background-color: transparent;
  color: #4b5563;
  border: 2px solid #d1d5db;
}

.btn--secondary:hover {
  background-color: #f3f4f6;
  border-color: #2563eb;
  color: #2563eb;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* =================================
   FORM COMPONENTS (BEM)
   ================================= */

/* Submit buttons with hand-underline */
input[type="submit"].hand-underline,
button.hand-underline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline;
}

input[type="submit"].hand-underline:hover,
button.hand-underline:hover {
  background: none;
  border: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2,1.5 Q2.1,1.1 3.2,1.7 L14.4,2.3 Q16,2.1 16.2,3.6 L16.4,13.8 Q16,15.1 14.3,15.3 L3.6,15.1 Q2.1,15.4 1.8,14.1 L1.6,3.2 Q2.1,1.8 2,1.5 Z' stroke='%236b7280' stroke-width='1.2' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") no-repeat center;
  background-size: contain;
  appearance: none;
  -webkit-appearance: none;
  border: none;
}

.form-checkbox:checked {
  background: url("data:image/svg+xml,%3csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2,1.5 Q2.1,1.1 3.2,1.7 L14.4,2.3 Q16,2.1 16.2,3.6 L16.4,13.8 Q16,15.1 14.3,15.3 L3.6,15.1 Q2.1,15.4 1.8,14.1 L1.6,3.2 Q2.1,1.8 2,1.5 Z' stroke='%236b7280' stroke-width='1.2' fill='none' stroke-linecap='round'/%3e%3cpath d='M4.2,9.1 Q5.4,10.3 6.5,11.4 Q10.2,7.7 13.7,5.1' stroke='%2316a34a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") no-repeat center;
  background-size: contain;
}

/* Dark theme checkbox */
.theme-dark .form-checkbox {
  background: url("data:image/svg+xml,%3csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2,1.5 Q2.1,1.1 3.2,1.7 L14.4,2.3 Q16,2.1 16.2,3.6 L16.4,13.8 Q16,15.1 14.3,15.3 L3.6,15.1 Q2.1,15.4 1.8,14.1 L1.6,3.2 Q2.1,1.8 2,1.5 Z' stroke='%23d1d5db' stroke-width='1.2' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") no-repeat center;
}

.theme-dark .form-checkbox:checked {
  background: url("data:image/svg+xml,%3csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2,1.5 Q2.1,1.1 3.2,1.7 L14.4,2.3 Q16,2.1 16.2,3.6 L16.4,13.8 Q16,15.1 14.3,15.3 L3.6,15.1 Q2.1,15.4 1.8,14.1 L1.6,3.2 Q2.1,1.8 2,1.5 Z' stroke='%23d1d5db' stroke-width='1.2' fill='none' stroke-linecap='round'/%3e%3cpath d='M4.2,9.1 Q5.4,10.3 6.5,11.4 Q10.2,7.7 13.7,5.1' stroke='%2334d399' stroke-width='1.8' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") no-repeat center;
}

/* =================================
   MODAL COMPONENTS (BEM)
   ================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.modal-container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Dark theme modal */
.theme-dark .modal-container {
  background: rgba(31, 41, 55, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.3);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(75, 85, 99, 0.2);
}

/* Lined paper theme */
.theme-lined .modal-container {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(229, 231, 235, 0.3);
}

/* Graph paper theme */
.theme-graph .modal-container {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(229, 231, 235, 0.3);
}

/* Vintage theme */
.theme-vintage .modal-container {
  background: rgba(254, 249, 231, 0.98);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

/* Mobile responsive - full screen on mobile */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
  }

  .modal-container {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    padding: 1.5rem;
    max-width: none;
  }
}

/* =================================
   MARKETING PAGE STYLES
   ================================= */

/* Hero section */
.min-h-screen {
  min-height: 100vh;
}

.bg-gradient-to-br {
  background: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-blue-50 {
  --tw-gradient-from: #eff6ff;
}

.to-indigo-100 {
  --tw-gradient-to: #e0e7ff;
}

.from-blue-50.to-indigo-100 {
  background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
}

/* Grid layouts */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-12 {
  gap: 3rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-2 {
  gap: 0.5rem;
}

/* Text sizes for marketing */
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* Spacing */
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-2 {
  padding: 0.5rem;
}

/* Margins */
.mb-16 {
  margin-bottom: 4rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

/* Background colors */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.bg-gray-900 {
  background-color: #111827;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-blue-700 {
  background-color: #1d4ed8;
}

.bg-green-100 {
  background-color: #dcfce7;
}

.bg-green-200 {
  background-color: #bbf7d0;
}

.bg-green-500 {
  background-color: #22c55e;
}

.bg-yellow-200 {
  background-color: #fef08a;
}

.bg-purple-100 {
  background-color: #f3e8ff;
}

.bg-orange-50 {
  background-color: #fff7ed;
}

.bg-orange-100 {
  background-color: #fed7aa;
}

.bg-slate-800 {
  background-color: #1e293b;
}

.bg-slate-900 {
  background-color: #0f172a;
}

/* Text colors */
.text-gray-900 {
  color: #111827;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-100 {
  color: #dbeafe;
}

.text-white {
  color: #ffffff;
}

.text-slate-100 {
  color: #f1f5f9;
}

.text-slate-200 {
  color: #e2e8f0;
}

.text-orange-700 {
  color: #c2410c;
}

/* Borders */
.border-2 {
  border-width: 2px;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-orange-300 {
  border-color: #fdba74;
}

.border-white {
  border-color: #ffffff;
}

/* Border radius */
.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.-top-4 {
  top: -1rem;
}

.-right-4 {
  right: -1rem;
}

.-bottom-4 {
  bottom: -1rem;
}

.-left-4 {
  left: -1rem;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Transforms */
.rotate-12 {
  transform: rotate(12deg);
}

.-rotate-6 {
  transform: rotate(-6deg);
}

.scale-75 {
  transform: scale(0.75);
}

/* Z-index */
.z-50 {
  z-index: 50;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Additional utility classes */
.max-w-7xl {
  max-width: 80rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-sm {
  max-width: 24rem;
}

.w-full {
  width: 100%;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

/* Font sizes - 10% bigger */
.text-3xl {
  font-size: 2.2rem;
  line-height: 2.5rem;
}

.text-2xl {
  font-size: 1.65rem;
  line-height: 2.2rem;
}

.text-xl {
  font-size: 1.375rem;
  line-height: 1.925rem;
}

.text-lg {
  font-size: 1.2375rem;
  line-height: 1.925rem;
}

.text-base {
  font-size: 1.1rem;
  line-height: 1.76rem;
}

.text-sm {
  font-size: 0.9625rem;
  line-height: 1.43rem;
}

.text-xs {
  font-size: 0.825rem;
  line-height: 1.1rem;
}

/* Font weights */
.font-extrabold {
  font-weight: 800;
}

.font-medium {
  font-weight: 500;
}

/* Spacing adjustments */
.space-y-8 > * + * {
  margin-top: 2.2rem;
}

.space-y-6 > * + * {
  margin-top: 1.65rem;
}

.space-y-1 > * + * {
  margin-top: 0.275rem;
}

.-space-y-px > * + * {
  margin-top: -1px;
}

.mt-8 {
  margin-top: 2.2rem;
}

.mt-6 {
  margin-top: 1.65rem;
}

.py-12 {
  padding-top: 3.3rem;
  padding-bottom: 3.3rem;
}

.px-4 {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.px-6 {
  padding-left: 1.65rem;
  padding-right: 1.65rem;
}

.px-8 {
  padding-left: 2.2rem;
  padding-right: 2.2rem;
}

/* List styles */
.list-disc {
  list-style-type: disc;
}

.pl-5 {
  padding-left: 1.375rem;
}

/* Text colors */
.text-indigo-600 {
  color: #4f46e5;
}

.text-indigo-500 {
  color: #6366f1;
}

/* Hover states */
.hover\:text-indigo-500:hover {
  color: #6366f1;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.transition-colors {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:border-blue-600:hover {
  border-color: #2563eb;
}

.hover\:text-blue-600:hover {
  color: #2563eb;
}

.hover\:text-white:hover {
  color: #ffffff;
}

.hover\:bg-white:hover {
  background-color: #ffffff;
}

.hover\:text-blue-600:hover {
  color: #2563eb;
}

/* Space utilities */
.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

/* Flex utilities */
.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.p-1 {
  padding: 0.25rem;
}

/* Grid utilities */
.grid {
  display: grid;
}

/* Width utilities */
.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-1\.5 {
  height: 0.375rem;
}

.h-48 {
  height: 12rem;
}

/* Opacity */
.opacity-20 {
  opacity: 0.2;
}

.opacity-30 {
  opacity: 0.3;
}

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:text-6xl {
    font-size: 3.75rem;
  }
}

/* =================================
   FOOTER STYLES
   ================================= */

/* Footer links - white at rest, slightly darker on hover */
footer a {
  color: #ffffff;
  transition: color 0.15s ease-in-out;
}

footer a:hover {
  color: #e5e7eb; /* Slightly darker white on hover */
}

/* =================================
   UTILITY CLASSES
   ================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.line-through {
  text-decoration: line-through;
}

.italic {
  font-style: italic;
}

.resize-none {
  resize: none;
}

/* =================================
   ANIMATIONS
   ================================= */

.form-slide-in {
  animation: slideIn 0.4s ease-out;
}

.form-slide-out {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
}

/* Pulse animation for focus states */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Dark mode animation adjustments */
.theme-dark .pulse-focus:focus {
  animation: pulseDark 2s infinite;
}

/* =================================
   LOGOUT MODAL STYLES
   ================================= */

.logout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logout-modal.show {
  display: flex;
  opacity: 1;
}

.logout-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logout-modal__dialog {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.logout-modal.show .logout-modal__dialog {
  transform: scale(1);
}

.logout-modal__content {
  display: flex;
  flex-direction: column;
}

.logout-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.logout-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  font-family: 'Gloria Hallelujah', 'Comic Sans MS', 'Marker Felt', 'Trebuchet MS', cursive;
}

.logout-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.logout-modal__close:hover {
  background: #f3f4f6;
  color: #374151;
}

.logout-modal__body {
  padding: 16px 24px;
}

.logout-modal__body p {
  margin: 0 0 8px 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.5;
}

.logout-modal__subtext {
  color: #6b7280;
  font-size: 14px;
  font-style: italic;
}

.logout-modal__footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  justify-content: flex-end;
}

.logout-modal__btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: 'Gloria Hallelujah', 'Comic Sans MS', 'Marker Felt', 'Trebuchet MS', cursive;
}

.logout-modal__btn--secondary {
  background: #f9fafb;
  color: #374151;
  border-color: #d1d5db;
}

.logout-modal__btn--secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.logout-modal__btn--primary {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.logout-modal__btn--primary:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Dark mode styles for logout modal */
.theme-dark .logout-modal__dialog {
  background: #1f2937;
  border: 1px solid #374151;
}

.theme-dark .logout-modal__title {
  color: #f9fafb;
}

.theme-dark .logout-modal__body p {
  color: #d1d5db;
}

.theme-dark .logout-modal__subtext {
  color: #9ca3af;
}

.theme-dark .logout-modal__close {
  color: #9ca3af;
}

.theme-dark .logout-modal__close:hover {
  background: #374151;
  color: #d1d5db;
}

.theme-dark .logout-modal__btn--secondary {
  background: #374151;
  color: #d1d5db;
  border-color: #4b5563;
}

.theme-dark .logout-modal__btn--secondary:hover {
  background: #4b5563;
  border-color: #6b7280;
}

@keyframes pulseDark {
  0% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(96, 165, 250, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  }
}

