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

:root {
  --vr-card: #1a1a2e;
  --vr-bg: #0f0f1e;
  --vr-border: #2d2d44;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0f0f1e;
  color: #f3f4f6;
}

* {
  box-sizing: border-box;
}

/* Custom Tailwind classes */
@layer components {
  .bg-vr-card {
    @apply bg-gray-900;
  }

  .bg-gradient-text {
    @apply bg-gradient-to-r from-violet-400 to-purple-400 bg-clip-text text-transparent;
  }

  .btn-primary {
    @apply px-4 py-2 rounded-lg font-medium bg-gradient-to-r from-violet-600 to-purple-600 text-white hover:from-violet-700 hover:to-purple-700 transition-all;
  }

  .card-base {
    @apply bg-vr-card border border-gray-700 rounded-lg;
  }

  .text-muted {
    @apply text-gray-400;
  }

  .text-muted-light {
    @apply text-gray-500;
  }
}

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

@keyframes slideInFromRight {
  from {
    transform: translateX(1rem);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

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

.slide-in-from-right-4 {
  animation: slideInFromRight 0.3s ease-in;
}

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

::-webkit-scrollbar-track {
  background: #0f0f1e;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a6575;
}

/* Focus Rings */
:focus-visible {
  outline: none;
  ring: 2px;
  ring-color: #a78bfa;
  ring-offset-color: #1a1a2e;
}

/* Utility animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

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