/* Loading spinner */
.spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-left-color: #0ea5e9;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert cards hover effect */
.alert-card {
  transition: all 0.2s ease-in-out;
}

.alert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Code blocks */
.code-block {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.code-block pre {
  margin: 0;
}

/* Line clamp utility (for truncating text) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth transitions */
.tab-button {
  transition: all 0.15s ease-in-out;
}

/* Form inputs styling enhancement */
input[type="text"],
input[type="email"],
textarea,
select {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Badge animations */
.badge {
  transition: all 0.2s ease-in-out;
}

/* Prose styling for markdown content */
.prose {
  max-width: 65ch;
}

.prose strong {
  font-weight: 600;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Activity log animations */
#activity-log-content > div {
  animation: fadeIn 0.3s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .tab-button {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.875rem;
  }

  #activity-log {
    font-size: 0.75rem;
  }
}

/* Loading overlay */
#loading-spinner {
  z-index: 9999;
}

/* Success/Error message animations */
.alert-animation {
  animation: slideUp 0.3s ease-out;
}

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