/* ===================================
   GLOBALE STYLES
   =================================== */

* {
  transition: background-color 0.2s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Kun små ikoner (knapper, links) skal være små */
button svg[class*="w-5"],
button svg[class*="w-6"],
a svg,
div[class*="text-purple-600"] svg,
div[class*="gap-2"] svg,
span + svg,
svg + span {
  width: 20px !important;
  height: 20px !important;
}

/* Store diagrammer - giv dem plads til at vokse */
.big-chart {
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
}

.pizza-chart {
  width: 100% !important;
  max-width: 260px !important;
  height: auto !important;
}

/* Loading-skærm */
#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: sans-serif;
  color: #6b7280;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===================================
   ANIMATIONER
   =================================== */

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

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-slideIn {
  animation: slideIn 0.4s ease-out forwards;
  opacity: 0;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ===================================
   PRINT-REGLER (Billedkort)
   =================================== */

@media print {
  .no-print {
    display: none !important;
  }

  .print-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .print-card {
    box-shadow: none !important;
    border: 2px solid #333 !important;
    page-break-inside: avoid;
  }

  body {
    background: white !important;
  }
}