@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        @apply font-sans antialiased;
    }
}

@layer components {
    .btn-primary {
        @apply px-6 py-3 bg-gradient-to-r from-purple-600 to-purple-700 text-white rounded-lg font-medium hover:from-purple-700 hover:to-purple-800 transition duration-200;
    }
    
    .btn-secondary {
        @apply px-6 py-3 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition duration-200;
    }
    
    .card {
        @apply bg-white rounded-xl shadow-md;
    }
    
    .input-field {
        @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent transition;
    }
}

@layer utilities {
    .gradient-bg {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .text-gradient {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Select2 Tailwind-ish styles */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 46px;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.55rem 0.9rem;
    background: #fff;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.25rem;
    padding-left: 0;
    color: #111827;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 12px;
}

.select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.55rem 0.8rem;
    outline: none;
}
