/* Tailwind CSS 3.3 + Custom Styles for Media Prompts Generator */
/* Theme: Indigo Glass & Modern UI */

/* Tailwind CSS Base Styles */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  /* Slate-50 */
  color: #0f172a;
  /* Slate-900 */
}

/* Color variables - Indigo/Violet Theme */
:root {
  /* Primary: Indigo */
  --color-primary-50: #eef2ff;
  --color-primary-100: #e0e7ff;
  --color-primary-200: #c7d2fe;
  --color-primary-300: #a5b4fc;
  --color-primary-400: #818cf8;
  --color-primary-500: #6366f1;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-primary-900: #312e81;

  /* Secondary/Accent: Violet */
  --color-accent-500: #8b5cf6;
  --color-accent-600: #7c3aed;
}

/* Utility Classes - Display */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.contents {
  display: contents;
}

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

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

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

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

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

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

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

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

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

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

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

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

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

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

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

.space-y-5>*+* {
  margin-top: 1.25rem;
}

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

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

.m-0 {
  margin: 0;
}

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

.my-auto {
  margin-top: auto;
  margin-bottom: auto;
}

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

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

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

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

.mt-1 {
  margin-top: 0.25rem;
}

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

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

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

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.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;
}

.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;
}

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

.pt-5 {
  padding-top: 1.25rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

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

.pl-2 {
  padding-left: 0.5rem;
}

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

/* Sizing */
.w-full {
  width: 100%;
}

.w-4 {
  width: 1rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.w-40 {
  width: 10rem;
}

.w-80 {
  width: 20rem;
}

.h-4 {
  height: 1rem;
}

.h-full {
  height: 100%;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-24 {
  height: 6rem;
}

.h-40 {
  height: 10rem;
}

.h-80 {
  height: 20rem;
}

.min-h-screen {
  min-height: 100vh;
}

.min-h-24 {
  min-height: 6rem;
}

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

.max-w-2xl {
  max-width: 42rem;
}

.max-w-7xl {
  max-width: 80rem;
}

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

.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

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

.top-0 {
  top: 0;
}

.top-2 {
  top: 0.5rem;
}

.top-4 {
  top: 1rem;
}

.bottom-4 {
  bottom: 1rem;
}

.bottom-full {
  bottom: 100%;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.right-2 {
  right: 0.5rem;
}

.right-4 {
  right: 1rem;
}

.z-10 {
  z-index: 10;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

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

/* Border */
.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l {
  border-left-width: 1px;
}

.border-r {
  border-right-width: 1px;
}

.border-gray-200 {
  border-color: #e2e8f0;
}

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

.border-primary-200 {
  border-color: var(--color-primary-200);
}

.border-primary-300 {
  border-color: var(--color-primary-300);
}

.border-primary-500 {
  border-color: var(--color-primary-500);
}

.border-red-200 {
  border-color: #fecaca;
}

.border-red-500 {
  border-color: #ef4444;
}

.border-blue-200 {
  border-color: #bfdbfe;
}

.border-amber-200 {
  border-color: #fde68a;
}

/* Border Radius - More rounded for modern look */
.rounded {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.75rem;
}

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

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

.rounded-t-xl {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

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

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

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

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

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

.bg-gray-300 {
  background-color: #cbd5e1;
}

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

.bg-primary-50 {
  background-color: var(--color-primary-50);
}

.bg-primary-100 {
  background-color: var(--color-primary-100);
}

.bg-primary-500 {
  background-color: var(--color-primary-500);
}

.bg-primary-600 {
  background-color: var(--color-primary-600);
}

.bg-red-50 {
  background-color: #fef2f2;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.bg-red-500 {
  background-color: #ef4444;
}

.bg-red-600 {
  background-color: #dc2626;
}

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

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

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

.bg-green-600 {
  background-color: #16a34a;
}

.bg-amber-50 {
  background-color: #fffbeb;
}

.bg-amber-100 {
  background-color: #fef3c7;
}

.bg-amber-500 {
  background-color: #f59e0b;
}

.bg-amber-600 {
  background-color: #d97706;
}

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

.bg-purple-500 {
  background-color: #a855f7;
}

/* Background Opacity */
.bg-opacity-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Text Color */
.text-white {
  color: white;
}

.text-gray-400 {
  color: #94a3b8;
}

.text-gray-500 {
  color: #64748b;
}

.text-gray-600 {
  color: #475569;
}

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

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

.text-gray-900 {
  color: #0f172a;
}

.text-primary-500 {
  color: var(--color-primary-500);
}

.text-primary-600 {
  color: var(--color-primary-600);
}

.text-primary-700 {
  color: var(--color-primary-700);
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.text-red-700 {
  color: #b91c1c;
}

.text-red-800 {
  color: #991b1b;
}

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

.text-green-600 {
  color: #16a34a;
}

.text-amber-400 {
  color: #fbbf24;
}

.text-amber-500 {
  color: #f59e0b;
}

.text-amber-600 {
  color: #d97706;
}

.text-purple-500 {
  color: #a855f7;
}

/* Font Weight */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

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

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

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

/* Font Size */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

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

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

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

.text-3xl {
  font-size: 1.875rem;
}

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

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

/* Shadow - Colored Shadows */
.shadow-soft {
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
}

.shadow-md-soft {
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

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

.overflow-auto {
  overflow: auto;
}

/* Opacity */
.opacity-0 {
  opacity: 0;
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-20 {
  opacity: 0.2;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* Hover States */
.hover\:bg-primary-50:hover {
  background-color: var(--color-primary-50);
}

.hover\:bg-primary-100:hover {
  background-color: var(--color-primary-100);
}

.hover\:bg-primary-200:hover {
  background-color: var(--color-primary-200);
}

.hover\:bg-primary-300:hover {
  background-color: var(--color-primary-300);
}

.hover\:bg-primary-600:hover {
  background-color: var(--color-primary-600);
}

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

.hover\:bg-gray-200:hover {
  background-color: #e2e8f0;
}

.hover\:bg-gray-300:hover {
  background-color: #cbd5e1;
}

.hover\:bg-gray-400:hover {
  background-color: #94a3b8;
}

.hover\:bg-red-100:hover {
  background-color: #fee2e2;
}

.hover\:bg-red-600:hover {
  background-color: #dc2626;
}

.hover\:bg-amber-400:hover {
  background-color: #fcd34d;
}

.hover\:bg-amber-600:hover {
  background-color: #d97706;
}

.hover\:border-primary-300:hover {
  border-color: var(--color-primary-300);
}

.hover\:border-primary-500:hover {
  border-color: var(--color-primary-500);
}

.hover\:text-gray-900:hover {
  color: #0f172a;
}

.hover\:shadow-md-soft:hover {
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.15), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Focus States */
.focus\:border-primary-500:focus {
  border-color: var(--color-primary-500);
}

.focus\:ring-2:focus {
  outline-width: 2px;
  outline-offset: 2px;
}

.focus\:ring-primary-100:focus {
  border-color: var(--color-primary-500);
}

.focus\:ring-red-100:focus {
  border-color: #ef4444;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Active States */
.active\:bg-primary-700:active {
  background-color: var(--color-primary-700);
}

.active\:bg-gray-400:active {
  background-color: #94a3b8;
}

/* Disabled States */
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

/* Group Hover */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

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

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:text-gray-900 {
  color: #0f172a;
}

/* Peer Checked */
.peer:checked~.peer-checked\:border-primary-500 {
  border-color: var(--color-primary-500);
}

.peer:checked~.peer-checked\:bg-primary-50 {
  background-color: var(--color-primary-50);
}

.peer:checked~.peer-checked\:shadow-md-soft {
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
}

.peer:checked+.peer-checked\:text-amber-400 {
  color: #fbbf24;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-in-out;
}

.animate-slideUp {
  animation: slideUp 0.4s ease-out;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

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

.from-dark-900 {
  --tw-gradient-stops: #0f172a, var(--tw-gradient-to, rgba(15, 23, 42, 0));
}

.from-dark-800 {
  --tw-gradient-stops: #1e293b, var(--tw-gradient-to, rgba(30, 41, 59, 0));
}

.from-primary-50 {
  --tw-gradient-stops: var(--color-primary-50), var(--tw-gradient-to, rgba(238, 242, 255, 0));
}

.from-primary-500 {
  --tw-gradient-stops: var(--color-primary-500), var(--tw-gradient-to, rgba(99, 102, 241, 0));
}

.from-primary-600 {
  --tw-gradient-stops: var(--color-primary-600), var(--tw-gradient-to, rgba(79, 70, 229, 0));
}

.from-amber-50 {
  --tw-gradient-stops: #fffbeb, var(--tw-gradient-to, rgba(255, 251, 235, 0));
}

.via-dark-800 {
  --tw-gradient-stops: #1e293b, var(--tw-gradient-to, rgba(30, 41, 59, 0));
}

.to-primary-600 {
  --tw-gradient-to: var(--color-primary-600);
}

.to-primary-700 {
  --tw-gradient-to: var(--color-primary-700);
}

.to-primary-900 {
  --tw-gradient-to: var(--color-primary-900);
}

.to-amber-100 {
  --tw-gradient-to: #fef3c7;
}

.to-accent-600 {
  --tw-gradient-to: var(--color-accent-600);
}

/* Responsive Grid */
@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\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:block {
    display: block;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

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

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

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

@media (max-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:hidden {
    display: none;
  }

  .sm\:block {
    display: block;
  }
}

/* Custom Components - Modernized */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-accent-600) 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3), 0 2px 4px -1px rgba(99, 102, 241, 0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4), 0 4px 6px -2px rgba(99, 102, 241, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: white;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

/* Forms */
.form-control,
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background-color: white;
  color: #0f172a;
  transition: all 200ms;
  font-size: 0.95rem;
}

.form-control::placeholder,
.form-input::placeholder {
  color: #94a3b8;
}

.form-control:focus,
.form-input:focus {
  border-color: var(--color-primary-500);
  outline: none;
  box-shadow: 0 0 0 4px var(--color-primary-100);
}

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

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

/* Cards */
.card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Modality Cards */
.modality-card-tw .relative {
  background-color: white;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modality-card-tw:hover .relative {
  border-color: var(--color-primary-300);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15), 0 8px 10px -6px rgba(99, 102, 241, 0.1);
}

.modality-card-tw input:checked+.relative {
  border-color: var(--color-primary-500);
  background-color: var(--color-primary-50);
  box-shadow: 0 0 0 4px var(--color-primary-100);
}

/* Other Components */
.btn-action-tw {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 200ms;
}

.btn-action-tw:hover {
  background-color: var(--color-primary-100);
  transform: translateY(-1px);
}

.spinner-tw {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--color-primary-100);
  border-top-color: var(--color-primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.nav-tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #64748b;
  transition: all 200ms;
}

.nav-tab-btn:hover {
  color: #0f172a;
  background-color: rgba(255, 255, 255, 0.5);
}

.nav-tab-btn.active {
  background-color: white;
  color: var(--color-primary-600);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.nav-tab-btn-mobile {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #64748b;
  transition: all 200ms;
}

.nav-tab-btn-mobile.active {
  background-color: white;
  color: var(--color-primary-600);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.star-label-tw {
  cursor: pointer;
  font-size: 1.75rem;
  color: #e2e8f0;
  transition: color 200ms, transform 200ms;
}

.star-label-tw:hover {
  color: #fbbf24;
  transform: scale(1.1);
}

.star-rating-tw input:checked+.star-label-tw {
  color: #fbbf24;
}

/* Mix Blend Mode */
.mix-blend-multiply {
  mix-blend-mode: multiply;
}

.mix-blend-screen {
  mix-blend-mode: screen;
}

/* Filter */
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.blur-3xl {
  --tw-blur: blur(64px);
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

.cursor-help {
  cursor: help;
}

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

.cursor-move {
  cursor: move;
}

/* Pointer Events */
.pointer-events-none {
  pointer-events: none;
}

/* Whitespace */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Text Align */
.text-center {
  text-align: center;
}

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

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

/* Misc */
.resize-vertical {
  resize: vertical;
}

.capitalize {
  text-transform: capitalize;
}

.divide-y>*+* {
  border-top-width: 1px;
}

.divide-gray-200>*+* {
  border-top-color: #e2e8f0;
}

@import url('modern_theme.css');

/* Base Styles using Modern Theme */
body {
  background-color: var(--gray-50);
  color: var(--gray-900);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Re-map existing classes to new variables if needed, or keep as legacy support */
.text-primary-600 {
  color: var(--primary-600);
}

.bg-primary-600 {
  background-color: var(--primary-600);
}

.hover\:bg-primary-700:hover {
  background-color: var(--primary-700);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

select[multiple] {
  height: 12rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

select[multiple] option {
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 2px;
}

select[multiple] option:checked {
  background-color: var(--color-primary-500);
  color: white;
}

/* Admin Specific */
.btn-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  color: #64748b;
  transition: all 200ms;
}

.btn-icon:hover {
  background-color: #f1f5f9;
  color: var(--color-primary-600);
}

.btn-icon-danger {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  color: #ef4444;
  transition: all 200ms;
}

.btn-icon-danger:hover {
  background-color: #fee2e2;
}

/* ============================================================================
   AI Suggestions Styles
   ============================================================================ */

/* AI Button */
.ai-suggest-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  z-index: 10;
}

.ai-suggest-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.ai-suggest-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.ai-suggest-btn i {
  font-size: 14px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* AI Modal */
.ai-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-modal.hidden {
  display: none;
}

.ai-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.ai-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

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

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

.ai-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
}

.ai-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.ai-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

.ai-modal-body {
  padding: 24px;
  max-height: calc(80vh - 80px);
  overflow-y: auto;
}

.ai-modal-field-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 16px;
  font-weight: 500;
}

/* Suggestion Items */
#ai-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s;
}

.ai-suggestion-item:hover {
  border-color: #667eea;
  background: #f0f4ff;
  transform: translateX(4px);
}

.suggestion-content {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.suggestion-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.suggestion-text {
  margin: 0;
  color: #374151;
  line-height: 1.6;
  font-size: 14px;
}

.use-suggestion-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
  .ai-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .ai-suggestion-item {
    flex-direction: column;
  }

  .use-suggestion-btn {
    width: 100%;
  }

  .ai-suggest-btn {
    width: 28px;
    height: 28px;
    right: 4px;
  }

  .ai-suggest-btn i {
    font-size: 12px;
  }
}