/**
 * Command Center Custom Styles
 * Additional styles on top of Tailwind + DaisyUI
 */

/* Alpine.js cloak (hide until loaded) */
[x-cloak] {
  display: none !important;
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: transform, box-shadow, background-color, border-color;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* Hero gradient animation */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-gradient-animated {
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* Particle container */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Card hover effects */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button lift effect */
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* Pulse animation for urgent badges */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

.badge-error.animate-pulse {
  animation: pulse-glow 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b3fa0 100%);
}

/* Glow effect for primary buttons */
.btn-primary {
  box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.6);
}

/* Task card border glow on hover */
.card.border-error:hover {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.card.border-warning:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.card.border-success:hover {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Radial progress custom styling */
.radial-progress {
  --value: 100;
  --size: 14rem;
  --thickness: 8px;
}

/* Monaco editor container */
#draft-editor {
  min-height: 300px;
}

/* Stats animation on hover */
.stat:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* Timeline custom colors */
.timeline-item .timeline-middle .fa-circle {
  color: #667eea;
}

/* Badge variants */
.badge-lg {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

/* Alert custom styling */
.alert {
  border-left: 4px solid;
}

.alert-success {
  border-left-color: #10b981;
}

.alert-error {
  border-left-color: #ef4444;
}

.alert-warning {
  border-left-color: #f59e0b;
}

/* Mockup browser custom */
.mockup-browser {
  border: 2px solid #e5e7eb;
}

.mockup-browser-toolbar {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.mockup-browser-toolbar .input {
  background: white;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Loading spinner in button */
.loading.loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 3px;
}

/* Collapse animation */
.collapse-arrow .collapse-title:after {
  transition: transform 0.3s ease;
}

/* Footer gradient */
footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.5rem !important;
  }

  .radial-progress {
    --size: 10rem !important;
  }
}

/* Print styles */
@media print {
  nav, footer, .btn, .card-actions {
    display: none;
  }

  .card {
    break-inside: avoid;
  }
}
