/* Custom styles for Ontology Bridge */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Tab styling */
.tab-button {
  transition: all 0.2s;
  cursor: pointer;
}

.tab-button:hover {
  background-color: #f3f4f6;
}

.tab-button.active {
  background-color: #eff6ff;
}

/* Animations */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Code block styling */
#typeql-schema {
  max-height: 600px;
  overflow-y: auto;
}

#typeql-schema::-webkit-scrollbar {
  width: 8px;
}

#typeql-schema::-webkit-scrollbar-track {
  background: #1f2937;
}

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

#typeql-schema::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* File upload hover effect */
.border-dashed:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

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

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

/* Card hover effects */
.hover\:shadow-xl {
  transition: box-shadow 0.3s;
}

/* Button transitions */
button {
  transition: all 0.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
}

/* Graph visualization container */
#visualization-container {
  border: 1px solid #e5e7eb;
  position: relative;
}

/* Success/Error states */
.bg-green-50 {
  background-color: #f0fdf4;
}

.bg-purple-50 {
  background-color: #faf5ff;
}

.text-green-800 {
  color: #166534;
}

.text-purple-800 {
  color: #6b21a8;
}

/* Utility classes */
.min-h-96 {
  min-height: 24rem;
}
