/* SYSTEMOPPDATERINGER: GRUNNLEGGENDE LAYOUT */

body {
  font-family: 'Lato', 'Inter', sans-serif;
  background-color: #F7F9FB;
  color: #1E3A5F;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

#systemoppdateringer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

#systemoppdateringer .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* KORTSTIL */
.update-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  min-height: auto;
}

.update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.update-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.15rem 0;
  color: #1E3A5F;
}

.update-card p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* HEADER INFO (dato + badge) */
.update-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.update-date {
  font-size: 0.85rem;
  color: #64748b;
  margin-left: auto;
}

/* FILTER-KNAPPER */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 2rem 0 1rem;
  margin-bottom: 20px;
}

.filter-btn {
  background-color: #EAF4FC;
  border: none;
  padding: 8px 18px;
  border-radius: 128px;
  font-weight: 600;
  color: #1E3A5F;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #D3E9F9;
}

/* Plasser CTA sentrert under grid’en */
.cta-feedback {
  display: block;
  text-align: center;
  margin-top: 3rem;    /* gir luft mellom grid og CTA */
}

/* Sørg for at lenken oppfører seg som en knapp */
.cta-feedback .btn-outline {
  display: inline-block;   /* ellers kan den “forsvinne” om det er en a uten display */
  text-decoration: none;   /* fjerner understrek */
  padding: 12px 28px;      /* match .btn-standard */
  border-radius: 128px;
  border: 2px solid #0073C6;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}
.cta-feedback .btn-outline:hover {
  background-color: #EAF4FC;
}


/* BADGES (FARGEKODET) */
.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 128px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.badge-new,
.badge-ny-funksjon-forbedring {
  background-color: #DCFCE7;
  color: #15803D;
}

.badge-planlagt-vedlikehold {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-feil-kritiske-hendelser {
  background-color: #FDEBEC;
  color: #B83232;
}

.badge-tidligere-versjoner {
  background-color: #E2E8F0;
  color: #475569;
}

/* STATUS BADGES */
.badge-status-lost {
  background-color: #DCFCE7;
  color: #15803D;
}

.badge-status-pagar {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-status-under-overvakning {
  background-color: #EAF4FC;
  color: #1E3A5F;
}

.badge-status-utsatt {
  background-color: #FDEBEC;
  color: #B83232;
}

/* Nye STATUS BADGES */
.badge-status-bekreftet-problem {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-status-under-arbeid {
  background-color: #E0F2FE;
  color: #0369A1;
}

/* Nye BADGES FOR SYSTEMOPPDATERINGER */
.badge-akutt-vedlikehold {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.badge-designoppdatering {
  background-color: #E0F2FE;
  color: #0369A1;
}

.badge-feil-kritiske-hendelser {
  /* eksisterer */
}

.badge-informasjonsmelding {
  background-color: #DBEAFE;
  color: #1E3A8A;
}

.badge-kritisk-feil {
  background-color: #FECACA;
  color: #991B1B;
}

.badge-mindre-feil {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-ny-funksjon-forbedring {
  /* eksisterer */
}

.badge-oppdatering-av-vilkar {
  background-color: #EDE9FE;
  color: #5B21B6;
}

.badge-planlagt-vedlikehold {
  /* eksisterer */
}

.badge-ytelsesforbedring {
  background-color: #D1FAE5;
  color: #047857;
}

/* RESPONSIVITET */
@media (max-width: 768px) {
  .update-card {
    min-height: auto;
    padding: 1.25rem;
  }

  .update-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .update-date {
    margin-left: 0;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-controls input,
  .filter-controls select,
  .filter-btn {
    width: 100%;
  }

  .filter-btn {
    text-align: left;
  }
}

/* KNAPPER */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 128px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
}

.btn-primary {
  background-color: #0073C6;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 115, 198, 0.2);
}

.btn-primary:hover {
  background-color: #005fa3;
  box-shadow: 0 6px 16px rgba(0, 115, 198, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid #0073C6;
  color: #0073C6;
}

.btn-outline:hover {
  background-color: #EAF4FC;
  border-color: #0073C6;
}

.update-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* SITE STATUS STYLES */
.site-status {
  background-color: #F9FAFB;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-bottom: 2rem;
}

.status-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.status-icon {
  font-size: 1.5rem;
}

.status-info {
  flex-grow: 1;
}

.status-time, .status-component {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
}

.status-link {
  color: #0073C6;
  text-decoration: underline;
  font-weight: 500;
}

.site-status.normal {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.site-status.warning {
  background-color: #fff3cd;
  color: #856404;
}

.site-status.danger {
  background-color: #f8d7da;
  color: #721c24;
}

