@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

@layer base {
  html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }
  
  body {
    @apply bg-slate-50 text-slate-800 antialiased;
  }
}

@layer components {
  /* Modern Glassmorphism Cards */
  .glass-card {
    @apply bg-white/80 backdrop-blur-md border border-white/20 shadow-xl rounded-2xl overflow-hidden;
  }

  /* Status Indicators */
  .status-badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
  }
  .status-badge-success {
    @apply bg-green-100 text-green-800 border border-green-200 mt-1;
  }
  .status-badge-warning {
    @apply bg-yellow-100 text-yellow-800 border border-yellow-200 mt-1;
  }
  .status-badge-danger {
    @apply bg-red-100 text-red-800 border border-red-200 mt-1;
  }
  .status-badge-info {
    @apply bg-blue-100 text-blue-800 border border-blue-200 mt-1;
  }

  /* Table Styles */
  .modern-table {
    @apply min-w-full divide-y divide-slate-200;
  }
  .modern-table th {
    @apply px-4 py-3 bg-slate-50/50 text-left text-xs font-semibold text-slate-500 uppercase tracking-wider backdrop-blur-sm sticky top-0;
  }
  .modern-table td {
    @apply px-4 py-4 whitespace-nowrap text-sm text-slate-600 transition-colors duration-150;
  }
  .modern-table tr {
    @apply hover:bg-slate-50/80 transition-colors duration-150;
  }

  /* Sidebar Links */
  .sidebar-link {
    @apply flex items-center px-4 py-3 text-sm font-medium text-slate-300 rounded-xl hover:bg-slate-800 hover:text-white transition-all duration-200 group relative;
  }
  .sidebar-link-active {
    @apply bg-indigo-600 text-white shadow-lg shadow-indigo-500/30;
  }
  
  .sidebar-sub-item {
    @apply block px-4 py-2 text-sm text-slate-400 hover:text-white hover:bg-slate-800/50 rounded-lg transition-colors ml-7 mt-1;
  }

  /* Action Buttons */
  .btn-primary {
    @apply inline-flex justify-center items-center px-4 py-2 text-sm font-medium rounded-lg text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 shadow-sm transition-all duration-200;
  }
  
  .btn-secondary {
    @apply inline-flex justify-center items-center px-4 py-2 text-sm font-medium rounded-lg text-slate-700 bg-white border border-slate-300 hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 shadow-sm transition-all duration-200;
  }
  
  .btn-danger {
    @apply inline-flex justify-center items-center px-4 py-2 text-sm font-medium rounded-lg text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 shadow-sm transition-all duration-200;
  }

  /* Form Elements */
  .form-input {
    @apply block w-full rounded-lg border-slate-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm bg-white/50 backdrop-blur-sm transition-all duration-200;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Custom Scrollbar for better UI */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  @apply bg-slate-300 rounded-full h-8;
}
::-webkit-scrollbar-thumb:hover {
  @apply bg-slate-400;
}
