.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
}

.glass-sidebar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 4px 0 24px rgba(31, 38, 135, 0.08);
}

/* Animated blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blob-float 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.blob:nth-child(2) {
  animation-delay: 2s;
}

.blob:nth-child(3) {
  animation-delay: 4s;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Stat card hover override for more dramatic effect */
[data-testid="stat-card"]:hover {
  transform: scale(1.05);
}

/* Gradient text utility */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav link styles */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #4b5563;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(139, 92, 246, 0.08);
  color: #6d28d9;
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(20, 184, 166, 0.15));
  color: #6d28d9;
  font-weight: 600;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-running {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.badge-idle {
  background: rgba(107, 114, 128, 0.15);
  color: #4b5563;
}

.badge-failed {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.badge-completed {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.badge-warning {
  background: rgba(251, 146, 60, 0.15);
  color: #ea580c;
}

/* Generate button */
.btn-generate {
  white-space: nowrap;
}

.btn-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-generate:active:not(:disabled) {
  transform: translateY(0);
}

/* Enhance button */
.btn-enhance {
  white-space: nowrap;
}

.btn-enhance:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-enhance:active:not(:disabled) {
  transform: translateY(0);
}

/* Publish button */
.btn-publish {
  white-space: nowrap;
}

.btn-publish:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-publish:active:not(:disabled) {
  transform: translateY(0);
}

/* Responsive: hide sidebar on mobile, show hamburger */
@media (max-width: 767px) {
  .glass-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .glass-sidebar.open {
    transform: translateX(0);
  }
  main {
    margin-left: 0 !important;
  }
}
