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

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-down {
  animation: slideInDown 0.5s ease-out;
}

@keyframes highlightFade {
  0% {
    background-color: rgba(
      249,
      250,
      251,
      0.8
    ); /* Light gray with some transparency */
  }
  100% {
    background-color: rgba(249, 250, 251, 0);
  }
}

.highlight-fade {
  animation: highlightFade 2s ease-out;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

.card {
  background: white;
  border-radius: 12px;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.stat-card.primary {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}
.stat-card.secondary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.stat-card.accent {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.stat-card.third {
  background: linear-gradient(135deg, #474a48 0%, #212422 100%);
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  top: 100%;
  right: 0;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-item {
  color: #374151;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}
.dropdown-item:hover {
  background-color: #f3f4f6;
}
.chart-container {
  position: relative;
  height: 300px;
}
.chart-container.large {
  height: 400px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}
.badge-blue {
  background-color: #3b82f6;
  color: white;
}
.badge-purple {
  background-color: #8b5cf6;
  color: white;
}
.badge-amber {
  background-color: #f59e0b;
  color: white;
}
.badge-green {
  background-color: #10b981;
  color: white;
}
.badge-secondary {
  background-color: #6b7280;
  color: white;
}
.badge-success {
  background-color: #10b981;
  color: white;
}
.badge-warning {
  background-color: #f59e0b;
  color: white;
}
.badge-danger {
  background-color: #ef4444;
  color: white;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background-color: #001675;
  color: white;
}
.btn-primary:hover {
  background-color: #001c99;
}
.btn-outline {
  border: 1px solid #d1d5db;
  background-color: transparent;
  color: #374151;
}
.btn-outline:hover {
  background-color: #f9fafb;
}
.btn-search {
  background-color: #0d9488;
  color: white;
}
.btn-search:hover {
  background-color: #0f766e;
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}
.nav-item {
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  color: #d1d5db;
  text-decoration: none;
}
.nav-item:hover,
.nav-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}
.search-input {
  border: 2px solid #001675;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}
.search-input:focus {
  border-color: #001c99;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.table-row:hover {
  background-color: #f9fafb;
}
