
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
  --primary: #7c3aed;
  --secondary: #ec4899;
  --accent: #10b981;
  --dark: #1e293b;
  --light: #f8fafc;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  scroll-behavior: smooth;
  background-color: var(--light);
  color: var(--dark);
}

.dark body {
  background-color: var(--dark);
  color: var(--light);
}
/* Modern Glassmorphism Buttons */
.btn {
  @apply inline-flex items-center justify-center px-5 py-2.5 rounded-xl text-sm font-medium transition-all duration-300;
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  @apply text-white border-transparent;
}

.btn-outline {
  @apply bg-transparent hover:bg-white/10;
  border: 1px solid currentColor;
}

.btn-icon {
  @apply p-3 rounded-full;
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
}
.btn-primary {
    @apply bg-primary text-white hover:bg-primary/90 focus:ring-primary;
}

.btn-secondary {
    @apply bg-secondary text-white hover:bg-secondary/90 focus:ring-secondary;
}

.btn-success {
    @apply bg-green-600 text-white hover:bg-green-700 focus:ring-green-500;
}

.btn-warning {
    @apply bg-yellow-500 text-white hover:bg-yellow-600 focus:ring-yellow-500;
}

.btn-danger {
    @apply bg-red-600 text-white hover:bg-red-700 focus:ring-red-500;
}

.btn-outline {
    @apply bg-transparent border hover:bg-gray-100 dark:hover:bg-gray-700;
}

.btn-outline-primary {
    @apply border-primary text-primary hover:bg-primary/10 dark:hover:bg-primary/20;
}

.btn-outline-warning {
    @apply border-yellow-500 text-yellow-500 hover:bg-yellow-500/10 dark:hover:bg-yellow-500/20;
}

.btn-outline-danger {
    @apply border-red-500 text-red-500 hover:bg-red-500/10 dark:hover:bg-red-500/20;
}

.btn-ghost {
    @apply bg-transparent hover:bg-gray-100 dark:hover:bg-gray-700;
}

.btn-sm {
    @apply px-3 py-1.5 text-xs;
}

.btn-lg {
    @apply px-6 py-3 text-base;
}

.btn-icon {
    @apply p-2 rounded-full;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Badges */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-primary {
    @apply bg-primary/10 text-primary;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400;
}

.badge-danger {
    @apply bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400;
}

/* Tooltips */
[tooltip] {
    @apply relative;
}

[tooltip]:hover:after {
    content: attr(tooltip);
    @apply absolute z-50 bottom-full left-1/2 transform -translate-x-1/2 px-2 py-1 text-xs bg-gray-900 text-white rounded whitespace-nowrap;
}

/* Loading Spinner */
.loading-spinner {
    @apply inline-block w-5 h-5 border-2 border-gray-300 rounded-full border-t-primary animate-spin;
}
