/* Custom styles for Government Support Programs Portal */
body {
  font-family: 'Noto Sans KR', Arial, Helvetica, sans-serif;
}

.gov-table th {
  background-color: #f8fafc;
  font-weight: 600;
}

.gov-table td {
  border-bottom: 1px solid #e2e8f0;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.category-export { background-color: #dbeafe; color: #1e40af; }
.category-tech { background-color: #dcfce7; color: #15803d; }
.category-marketing { background-color: #fce7f3; color: #be185d; }
.category-finance { background-color: #fed7aa; color: #c2410c; }
.category-hr { background-color: #e0e7ff; color: #3730a3; }
.category-startup { background-color: #fecaca; color: #dc2626; }

.search-highlight {
  background-color: #fef3c7;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
}

.modal-backdrop {
  backdrop-filter: blur(4px);
}

.loading-spinner {
  border: 2px solid #f3f4f6;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

/* Responsive design improvements */
@media (max-width: 768px) {
  .gov-table {
    font-size: 0.875rem;
  }
  
  .gov-table th,
  .gov-table td {
    padding: 0.5rem;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
.focus-visible:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}