/* ============================================
   BASE LOVABLE STYLES
   Standalone CSS for UI Kit and Core Components
   ============================================ */

/* CSS Variables / Design Tokens */
:root {
  /* Colors - Light Mode - UPDATED TO MATCH REACT */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --success: 168, 91%, 38%;
  --success-foreground: 0 0% 100%;
  --primary: 240 73% 47%;
  --primary-foreground: 0 0% 100%;
  --secondary: 25 95% 53%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 271 81% 56%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.5rem;

  /* Gradients */
  --gradient-primary-start: 330 81% 60%;
  --gradient-primary-middle: 280 87% 65%;
  --gradient-primary-end: 240 77% 60%;
  --gradient-secondary-start: 25 95% 63%;
  --gradient-secondary-end: 330 81% 60%;
  --gradient-blue-start: 217 95% 63%;
  --gradient-blue-end: 192 81% 50%;
  --gradient-orange-start: 25 95% 63%;
  --gradient-orange-end: 330 81% 60%;
}

.animation-pulse {
  animation: pulse 1s infinite;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.sidebar {
  width: 18rem;
  background-color: white;
  border-right: 1px solid rgb(229, 231, 235);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-logo {
  padding: 2rem;
  border-bottom: 1px solid rgb(229, 231, 235);
  position: relative;
  z-index: 10;
}

.sidebar-logo-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.sidebar-logo-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgb(236, 72, 153), rgb(251, 146, 60));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.25);
}

.sidebar-logo-svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sidebar-logo-glow {
  position: absolute;
  inset: -0.25rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgb(236, 72, 153), rgb(251, 146, 60));
  opacity: 0.2;
  filter: blur(4px);
}

.sidebar-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, rgb(251, 113, 133), rgb(251, 146, 60));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-logo-subtitle {
  color: rgb(75, 85, 99);
  font-size: 0.875rem;
  font-weight: 600;
  padding-left: 70px;
  position: absolute;
  bottom: -10px;
}

.sidebar-user {
  border-bottom: 1px solid rgb(229, 231, 235);
  padding: 1.5rem;
  position: relative;
  z-index: 10;
}

.sidebar-user-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar-user-button:hover {
  background-color: rgb(249, 250, 251);
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgb(59, 130, 246), rgb(147, 51, 234));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sidebar-user-avatar svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  stroke-width: 2;
  fill: none;
}

.sidebar-user-details {
  text-align: left;
}

.sidebar-user-name {
  font-weight: 600;
  color: rgb(17, 24, 39);
  font-size: 0.875rem;
}

.sidebar-user-email {
  font-size: 0.75rem;
  color: rgb(107, 114, 128);
}

.sidebar-chevron {
  width: 1rem;
  height: 1rem;
  color: rgb(156, 163, 175);
  transition: transform 0.2s;
  stroke-width: 2;
  fill: none;
}

.sidebar-chevron.expanded {
  transform: rotate(90deg);
}

.sidebar-workspace-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-top: 0.75rem;
}

.sidebar-workspace-items.expanded {
  max-height: 500px;
}

.sidebar-workspace-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  color: rgb(75, 85, 99);
  border-radius: 0.5rem;
  transition: all 0.3s;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar-workspace-item--active,
.sidebar-workspace-item:hover {
  background-color: rgb(243, 244, 246);
  color: rgb(17, 24, 39);
}

.sidebar-signout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  width: 100%;
  text-align: left;
  border-radius: 0.5rem;
  transition: all 0.3s;
  color: rgb(220, 38, 38);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar-signout:hover {
  background-color: rgb(254, 242, 242);
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: rgb(75, 85, 99);
  border-radius: 0.5rem;
  transition: all 0.3s;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar-nav-item .jb-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar-nav-item:hover:not(.sidebar-nav-item--active) {
  background: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.sidebar-nav-item--active .jb-icon,
.sidebar-nav-item--active .sidebar-dropdown-icon,
.sidebar-nav-item:hover .jb-icon,
.sidebar-nav-item:hover .sidebar-dropdown-icon {
  color: rgb(236 72 153 / 1);
}

.sidebar-nav-item--active .jb-icon {
  margin-left: 12px;
}

.sidebar-nav-item--active {
  background: linear-gradient(135deg, rgb(236 72 153 / 0.1), rgb(249 115 22 / 0.1));
  border-color: rgb(236 72 153 / 0.2);
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / 0.05);
  font-weight: 600;
  border-right-width: 4px;
  border-right-color: #ec4899;
}

.sidebar-dropdown-trigger {
  justify-content: space-between;
}

.sidebar-nav-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-dropdown-icon {
  width: 1rem;
  height: 1rem;
  color: rgb(156, 163, 175);
  transition: transform 0.2s;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.sidebar-dropdown-icon.expanded {
  transform: rotate(90deg);
}

.sidebar-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-left: 2.25rem;
}

.sidebar-dropdown-menu.expanded {
  max-height: 500px;
  margin-top: 0.25rem;
}

.sidebar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  color: rgb(107, 114, 128);
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar-dropdown-item:hover {
  background: hsl(var(--accent));;
  color: #ffffff;
}
.sidebar-dropdown-item--active:hover,
.sidebar-dropdown-item--active {
  background: rgb(253 242 248 / 1);
  color: rgb(190 24 93 / 1);
}

@media (max-width: 768px) {
  .sidebar-nav-item--active,
  .sidebar-nav-item--active .jb-icon,
  .sidebar-nav-item--active .sidebar-dropdown-icon,
  .sidebar-nav-item:hover .jb-icon,
  .sidebar-nav-item:hover .sidebar-dropdown-icon {
    color: hsl(240 73% 47%);
  }

  .sidebar-nav-item--active .jb-icon {
    margin-left: 0;
  }

  .sidebar-nav-item--active {
    background: hsl(240 73% 47% / 0.1);
    border-color: hsl(214.3 31.8% 91.4%);
    box-shadow: none;
    border-right-width: 1px;
  }

  .sidebar-dropdown-item:hover {
    background: rgb(249 250 251 / var(--tw-bg-opacity, 1));
    color: hsl(240 73% 47%);
  }
  .sidebar-dropdown-item--active:hover,
  .sidebar-dropdown-item--active {
    background: hsl(240 73% 47% / 0.1);
    color: hsl(240 73% 47%);
  }
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 217.2 91.2% 59.8%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 224.3 76.3% 48%;
}

/* ============================================
   BUTTON COMPONENT STYLES
   ============================================ */

.lovable-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  outline: 2px solid transparent;
  outline-offset: 2px;
  cursor: pointer;
  border-width: 0;
}

.lovable-button .lovable-button--loader {
  display: none;
  width: 1rem;
  height: 1rem;
  stroke: rgb(226, 232, 240);
}
.lovable-button:disabled .lovable-button--loader {
  display: block;
}

.lovable-button:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.lovable-button:active:not(:disabled) {
  transform: scale(0.98);
}

.lovable-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Button Variants */
.lovable-button--success {
  background-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.lovable-button--default::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
  pointer-events: none;
  z-index: -1;
}

.lovable-button--default:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

.lovable-button--default {
  position: relative;
  isolation: isolate;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.lovable-button--default:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.lovable-button--destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.lovable-button--destructive:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.lovable-button--outline {
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
}

.lovable-button--outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.lovable-button--outline-green {
  color: rgb(4 120 87 / 1);
  border: 1px solid rgb(167 243 208 / 1);
  background-color: hsl(var(--background));
}

.lovable-button--outline-green:hover {
  border-color: hsl(var(--input));
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.lovable-button--secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.lovable-button--secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.lovable-button--ghost {
  background-color: transparent;
}

.lovable-button--ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.lovable-button--link {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
  background-color: transparent;
}

.lovable-button--link:hover {
  opacity: 0.9;
}

/* Button Sizes */
.lovable-button--default-size {
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.lovable-button--sm {
  height: 2.25rem;
  border-radius: 0.375rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.lovable-button--xs {
  height: 1.5rem;
  border-radius: 0.375rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.lovable-button--lg {
  height: 2.75rem;
  border-radius: 0.375rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.lovable-button--icon {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0;
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

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

.bg-gray {
  background-color: rgb(249 250 251 / 1);
}

.bg-green-type-2 {
  background-color: rgb(34 197 94 / 1);
}

.bg-purple {
  background-color: rgb(250 245 255 / 1);
  border-color: rgb(233 213 255 / 1);
}

.bg-purple-type-2 {
  background-color: rgb(168 85 247 / 1);
}

.bg-muted {
  background-color: hsl(210 40% 96.1% / 0.5);
}

.bg-muted-type-2 {
  background-color: hsl(215.4 16.3% 46.9%/ 0.3);
}

.bg-green {
  background-color: rgb(240 253 244 / 1);
  border-color: rgb(187 247 208 / 1);
}
.bg-orange {
    background-color: rgb(249 115 22 / 1);
}
.bg-orange-type-2 {
  background-color: hsl(25 95% 53% / 0.5);
}
.bg-amber {
  background-color: rgb(255 251 235 / 1);
  border-color: rgb(253 230 138 / 1);
}

.bg-amber-type-2 {
  background-color: rgb(254 243 199 / 1);
}

.bg-emerald {
  background-color: rgb(209 250 229 / 1);
}

.bg-red {
  background-color: rgb(254 226 226 / 1);
}

.bg-red-type-2 {
  background-color: hsl(0 84.2% 60.2% / 0.05)
}

.bg-red-type-2-border {
  background-color: hsl(0 84.2% 60.2% / 0.05);
  border-color: hsl(0 84.2% 60.2%);
}

.bg-emerald-bold {
   background-color: rgb(5 150 105 / 1);
}

.bg-emerald-border {
  background-color: rgb(209 250 229 / 1);
  border-color: rgb(134 239 172 / 1);;
}

.bg-blue {
  background-color: rgb(239 246 255 / 1);
  border-color: rgb(191 219 254 / 1);
}
.bg-blue-type-2 {
  background-color: rgb(59 130 246 / 0.1);
}

.bg-dark {
  background-color: #4b5563;
}

.bg-primary {
  background-color: rgb(37 99 235 / 1);
}

.bg-primary-type-2 {
  background-color: hsl(240 73% 47%);
}

.bg-primary-type-3 {
  background-color: hsl(240 73% 47% / 0.1);
}

.bg-primary-type-4 {
  background-color: hsl(240 73% 47% / 0.1);
}

.bg-primary-type-5 {
  background-color: rgb(219 234 254 / 1);
}

.bg-primary-type-6 {
  background-color: hsl(240 73% 47% / 0.05);
}

.bg-primary-type-7 {
  background-color: hsl(240 73% 47% / 0.1);
  border-color: hsl(240 73% 47% / 0.2);
}

.bg-gradient {
  background-image: linear-gradient(to right, #a855f7 , #3b82f6);
}
.bg-gradient-type-2 {
  background-image: linear-gradient(to right, #a855f7 , #ec4899);
}
.bg-gradient-type-3 {
  background-image: linear-gradient(to right, hsl(240 73% 47%/ 0.1) , hsl(25 95% 53% / 0.1));
}

.bg-gradient-type-4 {
  background-image: linear-gradient(to right, #ec4899 , #f97316);
}

.bg-gradient-type-5 {
  background-image: linear-gradient(to right, #a855f7 , #7c3aed);
}

.bg-gradient-type-6 {
  background-image: linear-gradient(to right, rgb(168 85 247 / 0.05), rgb(139 92 246 / 0.05));
}

.bg-gradient-type-7 {
  background-image: linear-gradient(to right, #3b82f6, #a855f7);
}

.bg-gradient-type-8 {
  background-image: linear-gradient(to right, #a855f7, #db2777);
}

.bg-gradient-type-9 {
  background-image: linear-gradient(to right, #3b82f6, #0891b2);
}

.bg-gradient-type-10 {
  background-image: linear-gradient(to right, #22c55e, #059669);
}

.bg-gradient-type-11 {
  background-image: linear-gradient(to right, #f97316, #d97706);
}

.bg-gradient-type-12 {
  background-image: linear-gradient(to right, hsl(240 73% 47%), hsl(240 73% 47% / 0.6));
}

.bg-gradient-type-13 {
  background-image: linear-gradient(to right, #fbbf24, #f97316);
}

.bg-gradient-type-14 {
  background-image: linear-gradient(to right, #2563eb, #4f46e5);
}

.bg-gradient-type-15 {
  background-image: linear-gradient(to right, hsl(240 73% 47% / 0.3), hsl(240 73% 47% / 0.1));
}

.bg-gradient-type-16 {
  background-image: linear-gradient(to right, #10b981, #14b8a6);
}

.bg-gradient-type-17 {
  background-image: linear-gradient(to right, rgb(16 185 129 / 0.05), rgb(20 184 166 / 0.05));
}

.bg-gradient-type-18 {
  background-image: linear-gradient(to right, rgb(245 158 11 / 0.05), rgb(249 115 22 / 0.05));
}

.bg-gradient-type-19 {
  background-image: linear-gradient(to right, hsl(240 73% 47% / 0.1), hsl(271 81% 56% / 0.1));
}

.bg-gradient-type-20 {
  background-image: linear-gradient(to right, rgb(34 197 94 / 0.1), hsl(240 73% 47% / 0.1));
}

.bg-gradient-type-21 {
  background-image: linear-gradient(to right, #f0fdf4, #ecfdf5);
  border-color: rgb(134 239 172);
}

.bg-gradient-type-22 {
  background-image: linear-gradient(to right, #10b981, #22c55e);
}

.bg-gradient-type-23 {
  background-image: linear-gradient(to right, #db2777 , #f97316);
}


.hover\:text-primary-type-2:hover,
.text-primary-type-2 {
  color: hsl(240 73% 47%);
}

.text-primary-type-3 {
  color: rgb(37 99 235 / 1);
}

.text-primary-type-4 {
  color: rgb(30 64 175 / 1);;
}

.text-purple {
  color: rgb(88 28 135 / 1);
}

.text-purple-type-2 {
  color: rgb(147 51 234 / 1);
}

.text-orange {
  color: rgb(234 88 12 / 1);
}

.text-red {
  color: #dc3545;
}

.text-red-type-2 {
  color: rgb(153 27 27 / 1);
}

.text-amber {
  color: rgb(180 83 9 / 1);
}

.text-green {
  color: rgb(22 163 74 / 1);
}

.text-green-type-2 {
  color: rgb(22 101 52 / 1);
}

.text-emerald {
  color: rgb(5 150 105 / 1);
}

.text-yellow {
  color: rgb(161 98 7 / 1);
}

.text-white {
  color: hsl(0 0% 100%);
}

/* ============================================
   INPUT COMPONENT STYLES
   ============================================ */

.lovable-input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lovable-input.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.lovable-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.lovable-input:hover:not(:disabled):not(:focus-visible) {
  border-color: hsl(var(--ring) / 0.2);
}

.lovable-input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.lovable-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ============================================
   CARD COMPONENT STYLES
   ============================================ */

.lovable-card {
  border-radius: 0.5rem;
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.1);
}

.lovable-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
}

.lovable-card-header--md {
  padding: 1rem;
}

.lovable-card-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.lovable-card-title--md {
  line-height: 1.5;
  font-size: 1.2rem;
}

.lovable-card-description {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lovable-card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.lovable-card-footer {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  padding-top: 0;
}

/* ============================================
   BADGE COMPONENT STYLES
   ============================================ */

.lovable-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lovable-badge:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--ring));
}

.lovable-badge--default {
  border-color: transparent;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.lovable-badge--default:hover {
  background-color: hsl(var(--primary) / 0.8);
}

.lovable-badge--success {
  border-color: transparent;
  background-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.lovable-badge--secondary:hover {
  background-color: hsl(var(--success) / 0.8);
}

.lovable-badge--secondary {
  border-color: transparent;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.lovable-badge--secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.lovable-badge--destructive {
  border-color: transparent;
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.lovable-badge--destructive:hover {
  background-color: hsl(var(--destructive) / 0.8);
}

.lovable-badge--outline {
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

/* ============================================
   ALERT COMPONENT STYLES
   ============================================ */

.lovable-alert {
  position: relative;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  padding: 1rem;
}

.lovable-alert--default {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.lovable-alert--destructive {
  border-color: hsl(var(--destructive) / 0.5);
  color: hsl(var(--destructive));
}

.lovable-alert svg {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: hsl(var(--foreground));
}

.lovable-alert--destructive svg {
  color: hsl(var(--destructive));
}

.lovable-alert > svg ~ * {
  padding-left: 1.75rem;
}

.lovable-alert > svg + div {
  transform: translateY(-0.1875rem);
}

.lovable-alert-title {
  margin-bottom: 0.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.lovable-alert-description {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.lovable-alert-description p {
  line-height: 1.625;
}

/* ============================================
   MOBILE HEADER STYLES
   ============================================ */

.lovable-mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  display: none;
}

@media (max-width: 767px) {
  .lovable-mobile-header {
    display: block;
  }
}

.lovable-mobile-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.lovable-mobile-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lovable-mobile-header__logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(to right, hsl(340.7 82.1% 65.1%), hsl(24.6 95% 53.1%));
  display: flex;
  align-items: center;
  justify-content: center;
}

.lovable-mobile-header__logo-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  background: linear-gradient(to right, hsl(340 79% 71%), hsl(25 95% 65%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lovable-mobile-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.lovable-sidebar {
  width: 16rem;
  height: 100dvh;
  background-color: hsl(var(--background));
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lovable-sidebar--mobile {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lovable-sidebar--mobile.is-open {
  transform: translateX(0);
}

.lovable-sidebar__header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.lovable-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
}

.lovable-sidebar__logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(to right, hsl(340.7 82.1% 65.1%), hsl(24.6 95% 53.1%));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lovable-sidebar__logo-text {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  background: linear-gradient(to right, hsl(340 79% 71%), hsl(25 95% 65%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lovable-sidebar__nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.lovable-sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.lovable-sidebar__nav-item:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.lovable-sidebar__nav-item.is-active {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 600;
}

.lovable-sidebar__nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.lovable-sidebar__footer {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.lovable-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lovable-sidebar__user:hover {
  background-color: hsl(var(--accent));
}

.lovable-sidebar__user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}

.lovable-sidebar__user-info {
  flex: 1;
  min-width: 0;
}

.lovable-sidebar__user-name {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lovable-sidebar__user-email {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   TABS COMPONENT
   ============================================ */

.lovable-tabs {
  width: 100%;
}

.lovable-tabs__list {
  display: flex;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: hsl(var(--muted));
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
}

.lovable-tabs__trigger {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  color: inherit;
  text-align: center;
}

.lovable-tabs__trigger:hover {
  background-color: hsl(var(--background) / 0.5);
}

.lovable-tabs__trigger.active {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.lovable-tabs__content {
  margin-top: 1rem;
  display: none;
}

.lovable-tabs__content.active {
  display: block;
  animation: fade-in 0.2s ease-out;
}

/* ============================================
   ACCORDION COMPONENT
   ============================================ */

.lovable-accordion {
  width: 100%;
}

.lovable-accordion__item {
  border-bottom: 1px solid hsl(var(--border));
}

.lovable-accordion__trigger {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: hsl(var(--foreground));
  transition: all 0.2s;
}


.lovable-accordion__item.open .lovable-accordion__trigger .icon-up {
  display: block;
}
.lovable-accordion__item.open .lovable-accordion__trigger .icon-down {
  display: none;
}

.lovable-accordion__trigger:hover {
  text-decoration: underline;
}

.lovable-accordion__trigger-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lovable-accordion__item.open .lovable-accordion__trigger-icon {
  transform: rotate(180deg);
}

.lovable-accordion__content {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease-out;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
}

.lovable-accordion__content-inner {
  padding-bottom: 1rem;
}

/* ============================================
   CHECKBOX COMPONENT
   ============================================ */

.lovable-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.lovable-checkbox__input {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--primary));
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  position: relative;
  transition: all 0.2s;
}

.lovable-checkbox__input:checked {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.lovable-checkbox__input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.375rem;
  height: 0.625rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.lovable-checkbox__input:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.lovable-checkbox__input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.lovable-checkbox__label {
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

/* ============================================
   RADIO BUTTON COMPONENT
   ============================================ */

.lovable-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lovable-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lovable-radio__input {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary));
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  position: relative;
  transition: all 0.2s;
}

.lovable-radio__input:checked {
  border-color: hsl(var(--primary));
}

.lovable-radio__input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
}

.lovable-radio__input:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.lovable-radio__label {
  font-size: 0.875rem;
  cursor: pointer;
}

/* ============================================
   SWITCH COMPONENT
   ============================================ */

.lovable-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.lovable-switch__track {
  display: inline-flex;
  height: 1.5rem;
  width: 2.75rem;
  flex-shrink: 0;
  cursor: pointer;
  align-items: center;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-color: hsl(var(--input));
  transition: all 0.2s;
  position: relative;
}

.lovable-switch__track.disabled {
  opacity: 0.4;
}

.lovable-switch__track:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.lovable-switch.checked .lovable-switch__track {
  background-color: hsl(var(--primary));
}

.lovable-switch__thumb {
  pointer-events: none;
  display: block;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  background-color: hsl(var(--background));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: transform 0.2s;
  transform: translateX(0);
}

.lovable-switch.checked .lovable-switch__thumb {
  transform: translateX(1.25rem);
}

.lovable-switch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   SLIDER COMPONENT
   ============================================ */

.lovable-slider {
  position: relative;
  display: flex;
  width: 100%;
  touch-action: none;
  align-items: center;
  padding: 0.5rem 0;
}

.lovable-slider__track {
  position: relative;
  height: 0.5rem;
  width: 100%;
  flex-grow: 1;
  overflow: hidden;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
}

.lovable-slider__input {
  width: 100%;
  height: 0.5rem;
  appearance: none;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  margin: 0;
}

.lovable-slider__input::-webkit-slider-thumb {
  appearance: none;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary));
  background-color: hsl(var(--background));
  cursor: pointer;
  transition: all 0.2s;
  margin-top: -0.375rem;
}

.lovable-slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.lovable-slider__input::-moz-range-thumb {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary));
  background-color: hsl(var(--background));
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.lovable-slider__input::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  cursor: pointer;
  background: linear-gradient(to right,
  hsl(var(--primary)) 0%,
  hsl(var(--primary)) var(--slider-progress, 50%),
  hsl(var(--secondary)) var(--slider-progress, 50%),
  hsl(var(--secondary)) 100%);
  border-radius: 9999px;
}

.lovable-slider__input::-moz-range-track {
  width: 100%;
  height: 0.5rem;
  cursor: pointer;
  background: hsl(var(--secondary));
  border-radius: 9999px;
}

.lovable-slider__input::-moz-range-progress {
  background: hsl(var(--primary));
  height: 0.5rem;
  border-radius: 9999px;
}

.lovable-slider__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* ============================================
   AVATAR COMPONENT
   ============================================ */

.lovable-avatar {
  position: relative;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
}

.lovable-avatar--sm {
  height: 2rem;
  width: 2rem;
}

.lovable-avatar--lg {
  height: 3rem;
  width: 3rem;
}

.lovable-avatar__image {
  aspect-ratio: 1 / 1;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.lovable-avatar__fallback {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.875rem;
}

/* ============================================
   SEPARATOR
   ============================================ */

.separator {
  height: 1px;
  background-color: hsl(var(--border));
  margin: 1.5rem 0;
}

/* ============================================
   PROGRESS
   ============================================ */

.lovable-progress {
  position: relative;
  height: 0.5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
}

.lovable-progress.lovable-progress--card {
  height: 0.5rem;
  width: 100%;
  background-color: #e5e7eb;
}

.lovable-progress.bg-success {
  background-color: hsl(var(--success));
}

/* ============================================
   SKELETON LOADER
   ============================================ */

.lovable-skeleton {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  border-radius: 0.375rem;
  background-color: hsl(var(--muted));
  height: 1.5rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  max-width: 26rem;
  width: 100%;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-out;
}

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

.toast-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.toast--default .toast-icon {
  color: hsl(var(--foreground));
}

.toast--success .toast-icon {
  color: hsl(142 76% 36%);
}

.toast--error .toast-icon {
  color: hsl(var(--destructive));
}

.toast--warning .toast-icon {
  color: hsl(38 92% 50%);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.toast-close {
  flex-shrink: 0;
  border-radius: 0.375rem;
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
}

.toast-close:hover {
  opacity: 1;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.lovable-progress {
  position: relative;
  height: 1rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
}

.lovable-progress__indicator {
  height: 100%;
  width: 100%;
  flex: 1;
  background-color: hsl(var(--primary));
}

.lovable-progress__indicator.indicator-success {
  background-color: hsl(var(--success));
}
.lovable-progress__indicator.indicator-warning {
  background-color: #eb8931;
}

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

.lovable-gradient-primary {
  background: linear-gradient(
          to right,
          hsl(var(--gradient-primary-start)),
          hsl(var(--gradient-primary-middle)),
          hsl(var(--gradient-primary-end))
  );
}

.lovable-gradient-secondary {
  background: linear-gradient(
          to right,
          hsl(var(--gradient-secondary-start)),
          hsl(var(--gradient-secondary-end))
  );
}

.lovable-text-gradient {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lovable-safe-top {
  padding-top: env(safe-area-inset-top, 0);
}

.lovable-safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.lovable-touch-target {
  min-height: 44px;
  min-width: 44px;
}

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

@media (max-width: 767px) {
  .lovable-hide-mobile {
    display: none;
  }
}

@media (min-width: 768px) {
  .lovable-hide-desktop {
    display: none;
  }
}

/* ============================================
   TEMPLATE LAYOUT STYLES
   ============================================ */

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: transparent;
}

html body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  padding: 0;
}

.app-layout {
  display: flex;
  height: 100dvh;
}

.main-content {
  flex: 1;
  background-color: rgb(249, 250, 251);
  overflow: auto;
}

.content-wrapper {
  margin: 0 auto;
  padding: 1.5rem;
}

.section {
  margin-bottom: 3rem;
}

.section-header {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.demo-grid {
  display: grid;
  gap: 1.5rem;
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

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

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

.page-header {
  margin-bottom: 2rem;
  position: relative;
}
@media (max-width: 768px) {
  .page-header {
    justify-content: normal;
  }
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--gradient-primary-start) / 0.1), hsl(var(--gradient-primary-middle) / 0.1), hsl(var(--gradient-primary-end) / 0.1));
  filter: blur(72px);
  z-index: -1;
}

.page-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, hsl(var(--gradient-primary-start)), hsl(var(--gradient-primary-end)));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.3);
}

.page-icon__transparent {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-icon--orange {
  background: linear-gradient(to right, #ec4899 , #f97316);
}

.page-icon--favorite {
  background: linear-gradient(135deg, #eab308, #f97316);
}

.page-icon--blue {
  background: linear-gradient(135deg, hsl(var(--gradient-blue-start)), hsl(var(--gradient-blue-end)));
}

.page-icon--violet {
  background: linear-gradient(to right, rgb(59, 130, 246), rgb(147, 51, 234));
}

.page-icon-type-2 {
  background: linear-gradient(to right, #a855f7, #7c3aed);
}

.page-icon-type-3 {
  background: linear-gradient(to right, #3b82f6, #a855f7);
}

.page-icon--md {
  width: 3rem;
  height: 3rem;
}


.icon-svg.page-icon--white {
  color: white;
  width: 1.25rem;
  height: 1.25rem;
}

.page-icon--md .page-icon--white {
  width: 1.5rem;
  height: 1.5rem;
}

.page-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  background: #000000;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-title.small {
  font-size: 1.5rem;
  line-height: 2rem;
}

.page-title.gradient {
  background: linear-gradient(to right, hsl(var(--gradient-primary-start)), hsl(var(--gradient-primary-middle)), hsl(var(--gradient-primary-end)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-title.gradient-type-2 {
  background: linear-gradient(to right, #111827, #7c3aed, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-title--black {
  background: transparent;
  color: black;
}

.page-description {
  color: hsl(var(--muted-foreground));
}

.subsection-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.icon-svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Utility Classes */
.flex-col-gap-1 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flex-col-gap-075 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.relative {
  position: relative;
}

.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  width: 1rem;
  height: 1rem;
}

.search-input {
  padding-left: 2.5rem;
}

.progress-wrapper {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

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

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

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

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

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

.lovable-card--premium {
  background: linear-gradient(to bottom right, hsl(var(--gradient-primary-start) / 0.1), hsl(var(--gradient-primary-end) / 0.1));
  border-color: hsl(var(--primary) / 0.2);
}

.lovable-card-title--gradient {
  background: linear-gradient(to right, hsl(var(--gradient-primary-start)), hsl(var(--gradient-primary-end)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tab-content-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tab-content-text {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.lovable-avatar--lg {
  width: 4rem;
  height: 4rem;
}

.lovable-avatar--md {
  width: 3rem;
  height: 3rem;
}

.lovable-avatar--sm {
  width: 2.5rem;
  height: 2.5rem;
}

.lovable-avatar--xs {
  width: 2rem;
  height: 2rem;
}

.lovable-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.lovable-avatar__fallback--gradient-primary {
  background: linear-gradient(135deg, hsl(var(--gradient-primary-start)), hsl(var(--gradient-primary-end)));
}

.lovable-avatar__fallback--gradient-secondary {
  background: linear-gradient(135deg, hsl(var(--gradient-secondary-start)), hsl(var(--gradient-secondary-end)));
}

.lovable-badge--premium {
  background: linear-gradient(to right, hsl(var(--gradient-primary-start)), hsl(var(--gradient-primary-end)));
  color: white;
  border: none;
}

.lovable-badge--active {
  background-color: hsl(142 76% 36%);
  color: white;
  border: none;
}

.lovable-badge--pending {
  background-color: hsl(45 93% 47%);
  color: white;
  border: none;
}

.lovable-badge--inactive {
  background-color: hsl(215 16% 47%);
  color: white;
  border: none;
}

.lovable-alert--success {
  border-color: hsl(142 76% 36% / 0.5);
  background-color: hsl(142 76% 36% / 0.1);
}

.lovable-alert--success .lovable-alert__icon {
  color: hsl(142 76% 36%);
}

.lovable-alert--success .lovable-alert__title {
  color: hsl(142 50% 30%);
}

.lovable-alert--success .lovable-alert__description {
  color: hsl(142 50% 35%);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.icon-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  transition: all 0.2s;
  cursor: pointer;
}

.icon-action-card:hover {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--primary));
}

.icon-action-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--foreground));
}

.icon-action-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   MOBILE HEADER
   ============================================ */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  height: 3.5rem;
}

.mobile-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
}

.mobile-header-menu-btn,
.mobile-header-notification-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background-color 150ms;
  position: relative;
}

.mobile-header-menu-btn:hover,
.mobile-header-notification-btn:hover {
  background-color: hsl(var(--accent) / 0.1);
}

.mobile-header-menu-btn .jb-icon,
.mobile-header-notification-btn .jb-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.mobile-header-logo a img {
    max-width: 150px;
}

.mobile-header-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(to right, hsl(330 81% 60%), hsl(25 95% 63%));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("/themes/jobix/images/logo/v2/logo.png");
  background-size: cover;
}

.mobile-header-logo-icon svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

.mobile-header-logo-text {
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(to right, hsl(330 81% 60%), hsl(25 95% 63%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-header-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
}

/* ============================================
   MOBILE NAVIGATION DRAWER
   ============================================ */

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 95dvh;
  max-height: 95dvh;
  background-color: hsl(var(--background));
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  border-radius: 1rem 1rem 0 0;
}

.mobile-nav-drawer.active {
  transform: translateY(0);
}

/* Drag Handle */
.mobile-nav-drag-handle {
  display: flex;
  justify-content: center;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}

.mobile-nav-drag-bar {
  width: 3rem;
  height: 0.25rem;
  border-radius: 9999px;
  background-color: hsl(var(--muted-foreground) / 0.2);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.mobile-nav-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, hsl(330 81% 60%), hsl(25 95% 63%));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.mobile-nav-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-nav-user-name {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-user-email {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-close-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background-color 150ms;
  flex-shrink: 0;
}

.mobile-nav-close-btn:hover {
  background-color: hsl(var(--accent) / 0.1);
}

.mobile-nav-close-btn .jb-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav-search {
  position: relative;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
  background-color: hsl(var(--background));
}

.mobile-nav-search-icon {
  position: absolute;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
  stroke: currentColor;
  fill: none;
}

.mobile-nav-search-input {
  width: 100%;
  height: 2.5rem;
  padding-left: 2.5rem;
  padding-right: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  outline: none;
  transition: border-color 150ms;
}

.mobile-nav-search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.mobile-nav-search-input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 1px hsl(var(--ring));
}

/* Scrollable Content Wrapper */
.mobile-nav-content-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-content {
  padding: 1rem 0 2rem 0;
}

.mobile-nav-section {
  margin-bottom: 1.5rem;
}

.mobile-nav-section-title {
  padding: 0 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
}

.mobile-nav-item .sidebar-nav-item-content {
  gap: 0;
}

.mobile-nav-item .jb-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

.mobile-nav-item span {
  flex: 1;
}

.mobile-nav-item--expandable {
  justify-content: space-between;
}

.mobile-nav-item-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.mobile-nav-chevron {
  width: 1.125rem;
  height: 1.125rem;
  color: hsl(var(--muted-foreground));
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  transition: transform 200ms;
}

.mobile-nav-item--expandable.expanded .mobile-nav-chevron {
  transform: rotate(90deg);
}

.mobile-only {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 767px) {
  .mobile-header {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-only__flex {
    display: flex !important;
  }

  .main-content {
    margin-left: 0;
    padding-top: 55px;
    width: 100%;
  }

  .content-wrapper {
    max-width: 100%;
    padding: 1rem;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

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

  .page-title {
    font-size: 1.875rem;
  }

  .page-icon {
    width: 3rem;
    height: 3rem;
  }

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

@media (min-width: 768px) {
  .mobile-header,
  .mobile-nav-overlay,
  .mobile-nav-drawer {
    display: none !important;
  }
}

/* Responsive Design (fallback for older styles) */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.875rem;
  }

  .page-icon {
    width: 3rem;
    height: 3rem;
  }

  .page-header .page-header-content .page-icon {
    display: none;
  }

  .content-wrapper {
    padding: 1rem;
  }

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

/* ============================================
   DATA TABLE COMPONENT STYLES
   ============================================ */

.ui-kit-section {
  padding: 4rem 2rem;
  background-color: hsl(var(--background));
}

.ui-kit-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Table Header Section */
.table-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .table-header-section {
    flex-direction: column;
  }
}

.table-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem 0;
}

.table-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.table-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .table-header-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* Settings Button */
.btn-settings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background-color: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.btn-settings:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--muted-foreground) / 0.3);
}

/* View Mode Group */
.view-mode-group {
  display: flex;
  gap: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
}

.btn-view-mode {
  padding: 0.625rem 1.25rem;
  border: none;
  background-color: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid hsl(var(--border));
}

.btn-view-mode:last-child {
  border-right: none;
}

.btn-view-mode:hover {
  background-color: hsl(var(--muted));
}

.btn-view-mode.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}

/* AI Search Button */
.btn-ai-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background-color: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ai-search:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--primary) / 0.3);
}

@media (max-width: 768px) {
  .btn-settings,
  .view-mode-group,
  .btn-ai-search {
    width: 100%;
  }

  .btn-view-mode {
    flex: 1;
  }
}

/* Table Card */
.table-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.1);
}

.table-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.table-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

/* Horizontal Scroll Container */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
  background-color: hsl(var(--muted));
  border-radius: 4px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: hsl(var(--muted-foreground) / 0.3);
  border-radius: 4px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--muted-foreground) / 0.5);
}

/* Data Table */
.data-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead {
  background-color: hsl(var(--muted) / 0.3);
}

.data-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.025em;
  white-space: nowrap;
  border-bottom: 1px solid hsl(var(--border));
}

.data-table tbody tr {
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color 0.15s;
}

.data-table tbody tr:hover {
  background-color: hsl(var(--muted) / 0.3);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table td {
  padding: 1rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* Tool Name and Description cells - allow text wrapping */
.data-table td.tool-name-cell,
.data-table td.tool-description-cell {
  white-space: normal;
  max-width: 300px;
  word-wrap: break-word;
}

.data-table td.tool-name-cell .tool-name-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.data-table td.tool-description-cell .tool-description-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Channel Cell */
.channel-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.channel-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon.icon-inbound {
  background-color: #dcfce7;
  color: #16a34a;
}

.channel-icon.icon-outbound {
  background-color: #dbeafe;
  color: #2563eb;
}

.channel-icon.icon-widget {
  background-color: #fef3c7;
  color: #d97706;
}

.channel-label {
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Contact Cell */
.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-name {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
}

.contact-agent {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* Phone Cell */
.phone-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.phone-number {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.call-duration {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* Icon Cell */
.icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.icon-cell.icon-success {
  color: #16a34a;
}

.icon-cell.icon-error {
  color: #dc2626;
}

/* Badge Base */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Badge Variants */
.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-success-alt {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-primary {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-info {
  background-color: #e0e7ff;
  color: #3730a3;
}

.badge-muted {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

/* Badge Group (for multiple tags) */
.badge-group {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.badge-count {
  padding: 0.125rem 0.375rem;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* Table Pagination */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.cards-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: hsl(var(--muted) / 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .table-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .cards-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}

.pagination-info {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.pagination-info strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .pagination-controls {
    justify-content: center;
  }
}

/* Pagination Buttons */
.btn-pagination {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pagination:hover:not(:disabled) {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--muted-foreground) / 0.3);
}

.btn-pagination:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-page {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-page:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--muted-foreground) / 0.3);
}

.btn-page.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--accent));
  font-weight: 600;
}

.pagination-ellipsis {
  padding: 0 0.5rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

@media (max-width: 768px) {
  .pagination-pages .pagination-ellipsis,
  .pagination-pages .btn-page {
    display: none;
  }
  .pagination-pages .btn-page.active {
    display: flex;
  }
  .pagination-info {
    text-align: center;
  }
}

/* Icon Sizes */
.icon-xs {
  width: 1rem;
  height: 1rem;
}

.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.call-audio {
  width: 100%;
  background: #f4f4ff;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.call-audio::-webkit-media-controls-panel {
  background: #f4f4ff;
}

.call-audio::-webkit-media-controls-current-time-display,
.call-audio::-webkit-media-controls-time-remaining-display {
  color: #64748b;
  font-weight: 500;
}

[data-modal-replacer] {
  display: none;
}

.stat-card {
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.stat-card-type-1 {
  background-color: rgb(239 246 255);
  color: rgb(29 78 216);
}
.stat-card-type-2 {
  background-color: rgb(240 253 244);
  color: rgb(21 128 61);
}
.stat-card-type-3 {
  background-color: rgb(254 252 232);
  color: rgb(161 98 7);
}
.stat-card-type-4 {
  background-color: rgb(254 242 242);
  color: rgb(185 28 28);
}
.stat-card-type-5 {
  background-color: rgb(238 242 255);
  color: rgb(67 56 202);
}
.stat-card-type-6 {
  background-color: rgb(236 253 245);
  color: rgb(4 120 87);
}
.stat-card-type-7 {
  background-color: rgb(254 242 242);
  color: rgb(185 28 28);
}
.stat-card-type-8 {
  background-color: rgb(236 254 255);
  color: rgb(14 116 144);
}

/* ============================================
   CAMPAIGN WIZARD STYLES
   ============================================ */

.wizard-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.wizard-overlay.hidden {
  display: none;
}

.wizard-modal {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 1000px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

.wizard-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wizard-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(236, 72, 153), rgb(251, 146, 60));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wizard-icon--type-1 {
  background: linear-gradient(135deg, rgb(59, 130, 246), rgb(168, 85, 247));
}

.wizard-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
  stroke-width: 2;
}

.wizard-title-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

.wizard-title-wrapper h2 .highlight {
  background: linear-gradient(135deg, rgb(0, 0, 0), rgb(236, 72, 153), rgb(251, 146, 60));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wizard-title-wrapper h2 .highlight--type-1 {
  background: linear-gradient(135deg, rgb(0, 0, 0), rgb(59, 130, 246), rgb(168, 85, 247));
  -webkit-background-clip: text;
}


.wizard-step-indicator {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.wizard-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}

.wizard-close-btn:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.wizard-close-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2;
}

.wizard-progress-container {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 0 2rem;
  background-color: #fef7f3;
}

.wizard-progress-container--type-1 {
  background-color: #f8f7fe;
}

.wizard-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wizard-progress-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.wizard-progress-percent {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.wizard-progress-bar {
  height: 0.5rem;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgb(236, 72, 153), rgb(251, 146, 60));
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.wizard-progress-fill--type-1 {
  background: linear-gradient(90deg, rgb(59, 130, 246), rgb(168, 85, 247));
}

.wizard-progress-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.wizard-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.wizard-section {
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.wizard-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wizard-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wizard-section-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.wizard-section-icon--blue {
  background-color: rgb(219, 234, 254);
  color: rgb(29, 78, 216);
}

.wizard-section-icon--green {
  background-color: rgb(220, 252, 231);
  color: rgb(21, 128, 61);
}

.wizard-section-icon--purple {
  background-color: rgb(243, 232, 255);
  color: rgb(126, 34, 206);
}

.wizard-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.wizard-section-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem 0;
}

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

.wizard-form-group:last-child {
  margin-bottom: 0;
}

.wizard-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.wizard-label-required::after {
  content: " *";
  color: rgb(239, 68, 68);
}

.wizard-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: all 0.2s;
}

.wizard-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.wizard-textarea::placeholder,
.wizard-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.wizard-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: all 0.2s;
}

.wizard-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.wizard-helper-text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.wizard-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.wizard-provider-card {
  padding: 1rem;
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.wizard-provider-card:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--muted) / 0.5);
}

.wizard-provider-card--selected {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.wizard-provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wizard-provider-name {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.wizard-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.wizard-badge.wizard-strategy-badge {
  display: none;
}

.wizard-badge--connected {
  background-color: rgb(219, 234, 254);
  color: rgb(29, 78, 216);
}

.wizard-badge--available {
  background-color: rgb(254, 243, 199);
  color: rgb(180, 83, 9);
}

.wizard-badge--selected {
  background-color: rgb(243, 232, 255);
  color: rgb(126, 34, 206);
}

.wizard-strategy-badge.wizard-badge--selected {
  display: inline;
}

.wizard-provider-status {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.wizard-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.wizard-slider-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.wizard-slider-container {
  flex: 1;
}

.wizard-slider-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  display: block;
}

.wizard-slider-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
}

.wizard-slider {
  width: 100%;
  height: 0.375rem;
  background: hsl(var(--muted));
  border-radius: 9999px;
  outline: none;
  -webkit-appearance: none;
}

.wizard-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wizard-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wizard-slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.wizard-number-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wizard-pill {
  min-width: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.wizard-pill:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--muted) / 0.5);
}

.wizard-pill--type-2:hover {
  border-color: #0e9567;
  background-color: hsl(160, 83%, 32% / 0.5);
}

.wizard-pill--active {
  background-color: hsl(var(--primary));
  color: white;
  border-color: hsl(var(--primary));
}

.wizard-pill--active.wizard-pill--type-2 {
  background-color: #0e9567;
  border-color: #0e9567;
}

.wizard-phone-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.wizard-phone-list-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.wizard-phone-list-actions {
  display: flex;
  gap: 0.5rem;
}

.wizard-link-button {
  background: none;
  border: none;
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.wizard-link-button:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.wizard-phone-list {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
}

.wizard-phone-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color 0.2s;
}

.wizard-phone-item:last-child {
  border-bottom: none;
}

.wizard-phone-item:nth-child(odd) {
  background-color: white;
}

.wizard-phone-item:nth-child(even) {
  background-color: hsl(var(--muted) / 0.3);
}

.wizard-phone-item--selected {
  background-color: rgb(219, 234, 254) !important;
}

.wizard-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid hsl(var(--border));
  border-radius: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.wizard-checkbox:checked {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.wizard-phone-details {
  flex: 1;
}

.wizard-phone-number {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.wizard-phone-location {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.wizard-phone-badges {
  display: flex;
  gap: 0.5rem;
}

.wizard-strategy-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wizard-strategy-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.wizard-strategy-card:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--muted) / 0.3);
}

.wizard-strategy-card--selected {
  border-color: rgb(126, 34, 206);
  background-color: rgb(250, 245, 255);
}

.wizard-strategy-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgb(243, 232, 255);
  color: rgb(126, 34, 206);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wizard-strategy-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.wizard-strategy-content {
  flex: 1;
}

.wizard-strategy-title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.wizard-strategy-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.wizard-day-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wizard-day-button {
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-day-button:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--muted) / 0.5);
}

.wizard-day-button--active {
  background-color: hsl(var(--primary));
  color: white;
  border-color: hsl(var(--primary));
}

.wizard-time-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wizard-time-input-wrapper {
  flex: 1;
  position: relative;
}

.wizard-time-input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.wizard-time-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.wizard-time-separator {
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.wizard-reschedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.wizard-reschedule-row {
  display: grid;
  gap: 1rem;
}

.wizard-input-small {
  width: 5rem;
  padding: 0.5rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-align: center;
}

.wizard-readiness-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgb(254, 242, 242), rgb(254, 249, 242));
  border: 1px solid rgb(254, 202, 202);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.wizard-readiness-content {
  flex: 1;
}

.wizard-readiness-title {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.wizard-readiness-percent {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1;
  margin-bottom: 0.25rem;
}

.wizard-readiness-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.wizard-readiness-icon {
  width: 3rem;
  height: 3rem;
  color: rgb(239, 68, 68);
}

.wizard-issues-box {
  background-color: rgb(254, 242, 242);
  border: 1px solid rgb(254, 202, 202);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.wizard-issues-title {
  font-weight: 600;
  color: rgb(185, 28, 28);
  margin-bottom: 0.75rem;
}

.wizard-issue-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgb(185, 28, 28);
  margin-bottom: 0.5rem;
}

.wizard-issue-item:last-child {
  margin-bottom: 0;
}

.wizard-issue-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.wizard-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.wizard-summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: hsl(var(--muted) / 0.3);
  border-radius: 0.5rem;
}

.wizard-summary-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.wizard-summary-content {
  flex: 1;
  min-width: 0;
}

.wizard-summary-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.125rem;
}

.wizard-summary-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wizard-radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-radio {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.wizard-radio-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
}

.wizard-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.wizard-toggle-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
}

.wizard-toggle-content p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.wizard-toggle {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background-color: hsl(var(--muted));
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.wizard-toggle.active {
  background-color: hsl(var(--primary));
}

.wizard-toggle-thumb {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.2s;
}

.wizard-toggle.active .wizard-toggle-thumb {
  transform: translateX(1.25rem);
}

.wizard-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wizard-checkbox-item:hover {
  background-color: hsl(var(--muted) / 0.3);
}

.wizard-checkbox-item input[type="checkbox"] {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.wizard-checkbox-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
}

.wizard-checkbox-content p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid hsl(var(--border));
}

.wizard-footer-left {
  display: flex;
  gap: 0.75rem;
}

.wizard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.wizard-btn svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.wizard-btn--outline {
  background: white;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.wizard-btn--outline:hover {
  background-color: hsl(var(--muted));
}

.wizard-btn--primary {
  background: linear-gradient(135deg, rgb(236, 72, 153), rgb(251, 146, 60));
  color: white;
  border: none;
}

.wizard-btn--primary--type-1 {
  background: linear-gradient(135deg, rgb(59, 130, 246), rgb(168, 85, 247));
}

.wizard-btn--primary:hover {
  opacity: 0.9;
}

.wizard-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .wizard-modal {
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .wizard-header {
    padding: 1rem;
  }

  .wizard-progress-container {
    padding: 1rem;
  }

  .wizard-content {
    padding: 1rem;
  }

  .wizard-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .wizard-footer-left {
    width: 100%;
    flex-direction: column;
  }

  .wizard-btn {
    width: 100%;
    justify-content: center;
  }

  .wizard-provider-grid {
    grid-template-columns: 1fr;
  }

  .wizard-slider-group {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wizard-reschedule-grid {
    grid-template-columns: 1fr;
  }

  .wizard-summary-grid {
    grid-template-columns: 1fr;
  }
  .transcription-container {
    order: 1;
  }
}

.lovable-slider {
  position: relative;
  display: flex;
  width: 100%;
  touch-action: none;
  align-items: center;
  padding: 0.5rem 0;
  height: 0.5rem;
}

.lovable-slider__track {
  display: none;
}

.lovable-slider__input {
  width: 100%;
  height: 0.5rem;
  appearance: none;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.lovable-slider__input::-webkit-slider-thumb {
  appearance: none;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  border: 2px solid #3b82f6;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: -0.375rem;
  position: relative;
  z-index: 3;
}

.lovable-slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.lovable-slider__input::-moz-range-thumb {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  border: 2px solid #3b82f6;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  z-index: 3;
}

.lovable-slider__input::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  cursor: pointer;
  background: linear-gradient(to right,
  #3b82f6 0%,
  #3b82f6 var(--slider-progress, 50%),
  #f97316 var(--slider-progress, 50%),
  #f97316 100%) !important;
  border-radius: 9999px;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.lovable-slider__input.lovable-slider__input-type-2::-webkit-slider-runnable-track {
  background: linear-gradient(to right,
  hsl(240 73% 47%) 0%,
  hsl(240 73% 47%) var(--slider-progress, 50%),
  #f97316 var(--slider-progress, 50%),
  #f97316 100%) !important;
}

.lovable-slider__input::-moz-range-track {
  width: 100%;
  height: 0.5rem;
  cursor: pointer;
  background: #f97316 !important;
  border-radius: 9999px;
  margin: 0;
  padding: 0;
}

.lovable-slider__input::-moz-range-progress {
  background: #3b82f6 !important;
  height: 0.5rem;
  border-radius: 9999px;
  margin: 0;
  padding: 0;
}

.lovable-slider__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.voice-card {
  transition: all 0.25s ease;
}
.voice-card:hover,
.voice-card.playing {
  transform: translateY(-0.25rem);
  box-shadow: 0 1px 8px 0 rgb(32 23 207 / 40%), 0 1px 2px 0 rgb(32 23 207 / 40%);
  background: linear-gradient(to bottom right, #ec46991a, #4a4ae81a);
}
.voice-card-header {
  background: linear-gradient(to bottom right, #2020cf0d, #f974150d);
  height: 200px;
  position: relative;
}
.voice-card-header .voice-lang {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: white;
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  width: 16px;
  height: 16px;
}
.voice-card-header .voice-status {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: #eab308;
  width: 8px;
  height: 8px;
  border-radius: 4px;
}
.voice-card-header .voice-status--active {
  background-color: #22c55e;
}
.voice-card-header .voice-status--inactive {
  background-color: #94a3b8;
}
.voice-card-header .voice-status--processing {
  background-color: #3b82f6;
  animation: pulse-voice 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.voice-card-header .voice-status--failed {
  background-color: #ef4444;
}
.voice-card-header .voice-status--deleted {
  background-color: #6b7280;
}
@keyframes pulse-voice {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.voice-card-header .voice-play-button {
  display: none;
  width: 70px;
  height: 70px;
  border-radius: 35px;
  position: absolute;
  top: calc(50% - 35px);
  right: calc(50% - 35px);
  background: linear-gradient(135deg, hsl(var(--gradient-primary-start)), hsl(var(--gradient-primary-end)));
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 1px 3px 0 rgb(32 23 207 / 40%), 0 1px 2px 0 rgb(32 23 207 / 40%);

  transition: all 0.25s ease;
  z-index: 10;
}

.voice-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.voice-play-button.playing .voice-waves {
  display: flex;
}

.voice-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid hsl(var(--gradient-primary-start));
  opacity: 0;
  animation: voice-wave-ripple 2s infinite;
  animation-delay: 1s;
}

.voice-wave:nth-child(2) {
  animation-delay: 1.6s;
}

.voice-wave:nth-child(3) {
  animation-delay: 2.2s;
}

@keyframes voice-wave-ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.voice-card:hover .voice-card-header .voice-play-button,
.voice-card.playing .voice-card-header .voice-play-button {
  display: flex;
}

.voice-card-header .voice-play-button:not(.disabled):hover {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  top: calc(50% - 40px);
  right: calc(50% - 40px);
  box-shadow: 0 1px 13px 0 rgb(32 23 207 / 40%), 0 1px 2px 0 rgb(32 23 207 / 40%);
  cursor: pointer;
}

.voice-card-header .voice-play-button.disabled {
  background: hsl(var(--muted-foreground));
  cursor: default;
}

.voice-favorite-button:hover {
  background-color: rgb(234 179 8 / 0.1);
}
.voice-favorite-button--active {
  color: #eab308;
}

.voice-total-card,
.voice-favorite-card {
  cursor: pointer;
  transition: all 0.25s ease;
}

.voice-favorite-card svg {
  fill: white;
}

.voice-favorite-card--active,
.voice-favorite-card:hover {
  box-shadow: 0 1px 8px 0 rgb(32 23 207 / 40%), 0 1px 2px 0 rgb(32 23 207 / 40%);
  background: #fdf9f4;
}

.voice-total-card:hover {
  box-shadow: 0 1px 8px 0 rgb(32 23 207 / 40%), 0 1px 2px 0 rgb(32 23 207 / 40%);
  background: linear-gradient(to bottom right, #ec46991a, #4a4ae81a);
}

.voice-count-total,
.voice-count-favorite {
  font-size: 1.5rem;
  line-height: 1.5rem;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.voice-count-favorite {
  background-image: linear-gradient(135deg, #eab308, #f97316);
}

.voice-count-total {
  background-image: linear-gradient(to right, hsl(var(--gradient-primary-start)), hsl(var(--gradient-primary-middle)), hsl(var(--gradient-primary-end)));
}

.hidden {
  display: none;
}

.member-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-top: 1.25rem;
    padding: 1rem;
}
#wave-selection {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border: 2px solid #2b7cff;
  background: rgba(43,124,255,.15);
  cursor: grab;
  border-radius: 10px;
  z-index: 5;
}
#wave-selection:active { cursor: grabbing; }

.plans-tab-btn {
  border: 2px solid rgb(229 231 235 / 1);
  cursor: pointer;
}
.plans-tab-btn .plans-tab-btn-badge {
  display: none;
}
.plans-tab-btn.active,
.plans-tab-btn:hover {
  box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border-color: transparent;
}
.plans-tab-btn.active span {
  color: #ffffff;
}
.plans-tab-btn.active .plans-tab-btn-badge {
  display: block;
  animation: pulse 2s infinite;
}
.plans-tab-btn.active .plans-tab-btn-icon {
  background-size: 200% 100%;
  background-position: right;
}
.voice-amount-slider-step span {
  font-size: 10px;
}
.voice-amount-slider-step.active span {
  color: rgb(88 28 135 / 1);
  font-weight: 500;;
}
.voice-amount-slider-step.active div {
  background-color: rgb(168 85 247 / 1);
}

.audio-item.active {
  background-color: hsl(240 73% 47% / 0.1);
  border-color: hsl(240 73% 47% / 0.2);
}
.audio-item.active .animation-pulse {
  display: block;
}
.audio-item.active .audio-item-label {
  color: hsl(240 73% 47%);
}
#player-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10001;
  display: flex;
}
#player-loader.hidden {
  display: none;
}
#player-loader svg {
  height: 4rem;
  width: 4rem;
}
.chat-content-message:hover .chat-content-message-language-btn {
  display: block;
}

/* Role Dropdown Styles */
.role-dropdown-wrapper {
  position: relative;
}

.role-dropdown {
  position: relative;
  width: 100%;
}

.role-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.role-dropdown-trigger:hover {
  border-color: hsl(var(--primary));
}

.role-dropdown-trigger:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.role-dropdown-selected-text {
  flex: 1;
  text-align: left;
  color: hsl(var(--foreground));
}

.role-dropdown-placeholder {
  color: hsl(var(--muted-foreground));
}

.role-dropdown-chevron {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.role-dropdown-trigger[aria-expanded="true"] .role-dropdown-chevron {
  transform: rotate(180deg);
}

.role-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  max-height: 20rem;
  overflow-y: auto;
}

.role-dropdown-menu[style*="block"] {
  display: block;
}

.role-dropdown-section {
  padding: 0.5rem 0;
}

.role-dropdown-section:not(:last-child) {
  border-bottom: 1px solid hsl(var(--border));
}

.role-dropdown-section-header {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-dropdown-section-content {
  display: flex;
  flex-direction: column;
}

.role-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s;
  color: hsl(var(--foreground));
}

.role-dropdown-item:hover {
  background-color: hsl(var(--muted) / 0.3);
}

.role-dropdown-item.selected {
  background-color: hsl(var(--primary) / 0.1);
}

.role-dropdown-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
}

.role-dropdown-item-icon .icon-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.role-dropdown-item-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-dropdown-item-lock {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.pink-border-hover {
  border-width: 2px;
  border-color: transparent;
  transition: border-color 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.pink-border-hover:hover {
  border-color: rgb(236 72 153 / 0.5);
}
.intro-card .cursor-pointer:hover .intro-card-icon {
  background-color: hsl(240 73% 47% / 0.05);
}

.max-h-300 {
    max-height: 300px;
}

.color-water-caltrop {
    color: #35353c;
}

.color-samantha {
    color: #e94997;
}

.color-vivid-tangelo {
    color: #f27321;
}

.pre-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Keyframe Animations */
@keyframes gradient-x {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Button Styles */
.filled-profile-coupon-animated-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  overflow: hidden;

  /* Animated gradient background */
  background: linear-gradient(to right, #ec4899, #f43f5e, #f97316);
  background-size: 200% 100%;
  animation: gradient-x 3s ease infinite;

  /* Hover effects */
  transition: transform 0.2s ease;
}

.filled-profile-coupon-animated-btn:hover {
  transform: scale(1.05);
  animation: breathe-glow-pink none;
  /* Gradient animation pauses on hover */
}

/* Shimmer overlay */
.filled-profile-coupon-animated-btn .shimmer {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
          to right,
          transparent,
          rgba(255, 255, 255, 0.4),
          transparent
  );
  animation: shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* Icon with float animation */
.filled-profile-coupon-animated-btn .icon {
  position: relative;
  z-index: 10;
  width: 16px;
  height: 16px;
  animation: icon-float 2s ease-in-out infinite;
}

/* Button text */
.filled-profile-coupon-animated-btn .text {
  position: relative;
  z-index: 10;
}

/* ========== GREEN VARIANT ========== */

.filled-profile-coupon-animated-btn.green {
  background: linear-gradient(to right, #10b981, #22c55e, #14b8a6);
  animation: gradient-x 3s ease infinite;
}

.filled-profile-coupon-animated-btn.green:hover {
  animation: breathe-glow-green none;
}
.filled-profile-coupon-banner {
  background-image: linear-gradient(to right, #fdf2f8, #fff7ed);
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / 0.05);
  font-weight: 600;
  border-left-width: 4px;
  border-left-color: #ec4899;
  border-radius: 0.75rem;
}
.filled-profile-coupon-banner.completed {
  background-image: linear-gradient(to right, #ecfdf5, #f0fdf4);
  border-left-color: #10b981;
}