:root {
    /* Light theme (default) */
    --background: 0 0% 100%;
    --background-gradient: linear-gradient(135deg, hsl(0 0% 100%), hsl(0 0% 98%));
    --foreground: 222.2 5% 8%;
    --primary: 122 39% 49%;
    --primary-hover: 122 39% 42%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 122 39% 49% / .2;
    --secondary: 207 90% 54%;
    --secondary-hover: 207 90% 46%;
    --secondary-foreground: 0 0% 100%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 5% 8%;
    --card-shadow: 0 2px 4px -1px hsl(0 0% 0% / .08), 0 4px 6px -1px hsl(0 0% 0% / .06);
    --card-hover-shadow: 0 4px 6px -1px hsl(0 0% 0% / .1), 0 10px 15px -3px hsl(0 0% 0% / .08);
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 5% 8%;
    --muted: 210 20% 94%;
    --muted-foreground: 215 16% 45%;
    --accent: 210 20% 94%;
    --accent-foreground: 222.2 5% 8%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 214 20% 88%;
    --input: 214 20% 88%;
    --ring: 122 39% 49%;
    --radius: .75rem;
    --transition-fast: .15s cubic-bezier(.4, 0, .2, 1);
    --transition-base: .3s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: .5s cubic-bezier(.4, 0, .2, 1);
    --tool-gradient: linear-gradient(135deg, hsl(122 39% 97%), hsl(207 90% 97%));
    --text-gradient: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
}

.dark {
    /* Dark theme */
    --background: 220 15% 10%;
    --background-gradient: linear-gradient(135deg, hsl(220 15% 10%), hsl(220 15% 7%));
    --foreground: 210 20% 98%;
    --primary: 122 39% 49%;
    --primary-hover: 122 39% 56%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 122 39% 49% / .4;
    --secondary: 207 90% 54%;
    --secondary-hover: 207 90% 61%;
    --secondary-foreground: 0 0% 100%;
    --card: 220 15% 13%;
    --card-foreground: 210 20% 98%;
    --card-shadow: 0 4px 6px -1px hsl(0 0% 0% / .3);
    --card-hover-shadow: 0 10px 15px -3px hsl(0 0% 0% / .4);
    --popover: 220 15% 13%;
    --popover-foreground: 210 20% 98%;
    --muted: 217 15% 18%;
    --muted-foreground: 215 20% 65%;
    --accent: 217 15% 18%;
    --accent-foreground: 210 20% 98%;
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 20% 98%;
    --border: 217 15% 18%;
    --input: 217 15% 18%;
    --ring: 122 39% 49%;
    --tool-gradient: linear-gradient(135deg, hsl(220 15% 15%), hsl(220 15% 18%));
    --text-gradient: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
}

/* Force dark theme */
html.dark {
    color-scheme: dark;
}

/* Ensure dark theme colors are applied */
body {
    background-image: var(--background-gradient);
    font-family: Poppins, sans-serif;
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Force dark theme for all elements */
* {
    border-color: hsl(var(--border));
}

.bg-background {
    background-color: hsl(var(--background)) !important;
}

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

.bg-card {
    background-color: hsl(var(--card)) !important;
}

.text-card-foreground {
    color: hsl(var(--card-foreground)) !important;
}

.bg-muted {
    background-color: hsl(var(--muted)) !important;
}

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

.text-primary {
    color: hsl(var(--primary)) !important;
}

.bg-primary {
    background-color: hsl(var(--primary)) !important;
}

.border-border {
    border-color: hsl(var(--border)) !important;
}

/* Utility Classes */
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Group hover utilities */
.group:hover .group-hover\:opacity-70 {
    opacity: 0.7;
}

.group:hover .group-hover\:animate-glow-pulse {
    animation: glow-pulse 2s infinite;
}

.group:hover .group-hover\:text-primary {
    color: hsl(var(--primary));
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Animation classes */
.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-glow-pulse {
    animation: glow-pulse 2s infinite;
}

/* Additional utility classes for the component */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

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

.overflow-hidden {
    overflow: hidden;
}

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

.flex {
    display: flex;
}

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

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

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

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

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

.p-2\.5 {
    padding: 0.625rem;
}

.p-3 {
    padding: 0.75rem;
}

.bg-background\/80 {
    background-color: hsl(var(--background) / 0.8);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Responsive classes */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:gap-4 {
        gap: 1rem;
    }
    
    .sm\:p-3 {
        padding: 0.75rem;
    }
    
    .sm\:w-6 {
        width: 1.5rem;
    }
    
    .sm\:h-6 {
        height: 1.5rem;
    }
    
    .sm\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .sm\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .sm\:mb-2 {
        margin-bottom: 0.5rem;
    }
    
    .sm\:w-4 {
        width: 1rem;
    }
    
    .sm\:h-4 {
        height: 1rem;
    }
}

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

.from-primary\/20 {
    --tw-gradient-from: hsl(var(--primary) / 0.2);
    --tw-gradient-to: hsl(var(--primary) / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-primary\/5 {
    --tw-gradient-to: hsl(var(--primary) / 0.05);
}

.opacity-50 {
    opacity: 0.5;
}

.group {
    position: relative;
}

/* Group hover effects are handled by the group-hover classes above */

.tool-card {
    cursor: pointer;
    border-radius: var(--radius);
    border-width: 1px;
    border-color: hsl(var(--border));
    background-image: var(--tool-gradient);
    padding: 1.5rem;
    --tw-shadow: var(--card-shadow);
    --tw-shadow-colored: var(--card-shadow);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
    --tw-shadow-color: hsl(var(--card));
    --tw-shadow: var(--tw-shadow-colored);
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    transition-duration: var(--transition-base);
    animation-duration: var(--transition-base);
}

.tool-card:hover {
    --tw-scale-x: 1.02;
    --tw-scale-y: 1.02;
    transform: translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    --tw-shadow: var(--card-hover-shadow);
    --tw-shadow-colored: var(--card-hover-shadow);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
}

/* Navigation specific styles */
.nav-link {
    font-weight: 500;
    color: hsl(var(--foreground));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-link.active {
    color: hsl(var(--primary));
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.3s ease-out;
}

.animate-glow-pulse {
    animation: glow-pulse 2s infinite;
}

/* Loading spinner */
.loading-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 1000;
}

.loading-progress circle {
    fill: none;
    stroke: hsl(var(--primary));
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    animation: loading-progress 2s ease-in-out infinite;
}

.loading-progress circle:last-child {
    stroke: hsl(var(--muted));
    stroke-dasharray: 251.2;
    stroke-dashoffset: 0;
}

.loading-progress-text {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: hsl(var(--muted-foreground));
    font-size: 14px;
    z-index: 1000;
}

@keyframes loading-progress {
    0% {
        stroke-dashoffset: 251.2;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px hsl(var(--primary-glow));
    }
    50% {
        box-shadow: 0 0 30px hsl(var(--primary-glow));
    }
}

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

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary));
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--primary));
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-hover));
    border-color: hsl(var(--primary-hover));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px hsl(var(--primary) / 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px hsl(var(--primary) / 0.1);
}

/* Card hover effects */
.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.tool-card:hover::before {
    transform: translateX(100%);
}

/* Mobile-specific improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Reduce padding on mobile */
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-20 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Better spacing for mobile cards */
    .tool-card {
        padding: 1rem;
    }
    
    /* Improve mobile navigation */
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Better mobile hero section */
    .text-7xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .text-6xl {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .text-5xl {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    /* Mobile-friendly buttons */
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-height: 44px;
        width: 100%;
    }
    
    .sm\:w-auto {
        width: auto;
    }
    
    /* Better mobile grid */
    .grid-cols-1 {
        gap: 1rem;
    }
    
    /* Mobile search improvements */
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Tablet-specific improvements */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Better tablet grid */
    .sm\:grid-cols-2 {
        gap: 1.5rem;
    }
    
    /* Tablet hero adjustments */
    .text-6xl {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .text-5xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    /* Better spacing on large screens */
    .py-20 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .py-24 {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .tool-card {
        min-height: 120px;
    }
    
    .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .tool-card:hover {
        transform: none;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tool-card {
        border-width: 2px;
    }
    
    .btn-primary, .btn-secondary {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-scale-in,
    .animate-glow-pulse,
    .animate-float,
    .animate-slide-up {
        animation: none;
    }
    
    .tool-card,
    .btn-primary,
    .btn-secondary {
        transition: none;
    }
}

/* Tool card styling to match the original design */
.tool-card {
    cursor: pointer;
    border-radius: var(--radius);
    border-width: 1px;
    border-color: hsl(var(--border));
    background-color: hsl(var(--card));
    background-image: var(--tool-gradient);
    padding: 1.5rem;
    --tw-shadow: var(--card-shadow);
    --tw-shadow-colored: var(--card-shadow);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
    --tw-shadow-color: hsl(var(--card));
    --tw-shadow: var(--tw-shadow-colored);
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    transition-duration: var(--transition-base);
    animation-duration: var(--transition-base);
}

.tool-card:hover {
    --tw-scale-x: 1.02;
    --tw-scale-y: 1.02;
    transform: translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    --tw-shadow: var(--card-hover-shadow);
    --tw-shadow-colored: var(--card-hover-shadow);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
}

/* Enhanced icon containers */
.icon-container {
    @apply flex-shrink-0 p-3 bg-primary/10 rounded-xl border border-primary/20 group-hover:bg-primary/20 group-hover:border-primary/40 transition-all duration-300;
}

/* Dropdown menu styling */
.dropdown-menu {
    background-color: hsl(var(--popover));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--card-hover-shadow);
}

.dropdown-item {
    color: hsl(var(--popover-foreground));
    transition: background-color 0.15s ease;
}

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

/* Enhanced dropdown menu styling for collapsible sections */
.bg-popover {
    background-color: hsl(var(--popover));
}

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

.border-border {
    border-color: hsl(var(--border));
}

.rounded-md {
    border-radius: 0.375rem;
}

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

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

.w-72 {
    width: 18rem;
}

.p-2 {
    padding: 0.5rem;
}

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

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

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

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

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

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

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

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

.rounded {
    border-radius: 0.25rem;
}

.hover\:bg-muted\/50:hover {
    background-color: hsl(var(--muted) / 0.5);
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

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

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

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

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

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.cursor-default {
    cursor: default;
}

.select-none {
    user-select: none;
}

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

.rounded-sm {
    border-radius: 0.125rem;
}

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

.focus\:bg-accent:focus {
    background-color: hsl(var(--accent));
}

.focus\:text-accent-foreground:focus {
    color: hsl(var(--accent-foreground));
}

.gap-3 {
    gap: 0.75rem;
}

.cursor-pointer {
    cursor: pointer;
}

/* Animation for slide down effect */
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slide-down 0.2s ease-out;
}

/* Additional utility classes for the navigation */
.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.min-w-\[8rem\] {
    min-width: 8rem;
}

.overflow-hidden {
    overflow: hidden;
}

/* Focus states for accessibility */
.focus\:bg-accent:focus-visible {
    background-color: hsl(var(--accent));
}

.focus\:text-accent-foreground:focus-visible {
    color: hsl(var(--accent-foreground));
}

/* Hover states for better UX */
.hover\:bg-muted\/50:hover {
    background-color: hsl(var(--muted) / 0.5);
}

/* Ensure proper spacing */
.space-y-1 > * + * {
    margin-top: 0.25rem;
}

/* Icon sizing consistency */
.lucide {
    display: inline-block;
    vertical-align: middle;
}

/* Smooth transitions for dropdown sections */
.dropdown-section {
    transition: all 0.2s ease-in-out;
}

/* Ensure proper z-index layering */
.dropdown-container {
    position: relative;
    z-index: 50;
}

/* Click outside behavior */
.nav-container {
    position: relative;
}

/* Prevent text selection on buttons */
button {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Search component specific styles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

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

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

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

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

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

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

.pr-16 {
    padding-right: 4rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.bg-background\/80 {
    background-color: hsl(var(--background) / 0.8);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

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

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

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

.focus\:ring-4:focus {
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.2);
}

.focus\:border-primary:focus {
    border-color: hsl(var(--primary));
}

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

.pl-6 {
    padding-left: 1.5rem;
}

.pr-6 {
    padding-right: 1.5rem;
}

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

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

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

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

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

.gap-4 {
    gap: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

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

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.group:hover .group-hover\:bg-primary\/20 {
    background-color: hsl(var(--primary) / 0.2);
}

.group:hover .group-hover\:text-primary {
    color: hsl(var(--primary));
}

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

.p-3 {
    padding: 0.75rem;
}

.bg-primary\/10 {
    background-color: hsl(var(--primary) / 0.1);
}

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

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

.min-w-0 {
    min-width: 0;
}

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

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

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

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

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

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

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

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

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

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

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

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

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

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

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

.p-4 {
    padding: 1rem;
}

.bg-muted\/30 {
    background-color: hsl(var(--muted) / 0.3);
}

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

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

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

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

/* Better text hierarchy */
.section-title {
    @apply text-3xl md:text-4xl font-bold text-foreground;
}

.section-subtitle {
    @apply text-lg text-muted-foreground;
}

/* Enhanced animations */
@keyframes subtle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.animate-subtle-float {
    animation: subtle-float 3s ease-in-out infinite;
}

/* Input area styling */
.input-area {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

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

/* Additional responsive classes */
@media (min-width: 640px) {
    .sm\:min-h-\[200px\] {
        min-height: 200px;
    }
    
    .sm\:w-8 {
        width: 2rem;
    }
    
    .sm\:h-8 {
        height: 2rem;
    }
    
    .sm\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    
    .sm\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .sm\:w-auto {
        width: auto;
    }
}

@media (min-width: 768px) {
    .md\:py-12 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .md\:mb-10 {
        margin-bottom: 2.5rem;
    }
    
    .md\:mb-4 {
        margin-bottom: 1rem;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:gap-6 {
        gap: 1.5rem;
    }
    
    .md\:mt-12 {
        margin-top: 3rem;
    }
    
    .md\:p-6 {
        padding: 1.5rem;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .md\:mb-3 {
        margin-bottom: 0.75rem;
    }
    
    .md\:space-y-2 > * + * {
        margin-top: 0.5rem;
    }
}

/* Additional utility classes */
.min-h-\[150px\] {
    min-height: 150px;
}

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

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

.inline {
    display: inline;
}

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

.top-2 {
    top: 0.5rem;
}

.right-2 {
    right: 0.5rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.space-y-1\.5 > * + * {
    margin-top: 0.375rem;
}

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

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

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

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

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

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

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

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

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

.bg-primary\/10 {
    background-color: hsl(var(--primary) / 0.1);
}

.bg-primary\/20 {
    background-color: hsl(var(--primary) / 0.2);
}

.hover\:bg-primary\/20:hover {
    background-color: hsl(var(--primary) / 0.2);
}

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

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.block {
    display: block;
}

.w-full {
    width: 100%;
}

.sm\:w-auto {
    width: auto;
}

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

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

.gap-3 {
    gap: 0.75rem;
}

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

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.p-2 {
    padding: 0.5rem;
}

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

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

.p-4 {
    padding: 1rem;
}

.bg-muted\/30 {
    background-color: hsl(var(--muted) / 0.3);
}

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

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

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

.space-y-1\.5 {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}

.space-y-1\.5 > * + * {
    margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}

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

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