@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
     font-family: "Inter", sans-serif;

}

#logo {
  font-family: "Inter", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #39195C;
  background-color: none !Important;
}

a[href="/"] {
 background-color: transparent !important; 
}



body.dark-mode #logo path {
 fill: white;
}

.component-inner-container.main-group,
.component-inner-container.main-group * {
  pointer-events: auto !important;
  cursor: pointer;
}


/* === DEKORATIVE ILLUSTRASJONER === */
.illustrasjon {
  position: absolute;
  z-index: 10;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
  overflow: visible;
  display: none;
}


.illustrasjon-venstre path {
  color: #CFD4F9;
  opacity: 0.3;
}

.illustrasjon-hoyre path {
  color: #CFD4F9;
  opacity: 0.3;
}

body.dark-mode .illustrasjon-venstre path,
body.dark-mode .illustrasjon-hoyre path {
    color: #CFD4F9;
  opacity: 0.1;

}

/*
body.dark-mode .illustrasjon-venstre {
  filter: blur(10px);
} */

.illustrasjon-venstre {
  top: 100px;         
  left: -200px;       
}

.illustrasjon-hoyre {
  top: 600px;          
  right: -300px;
  overflow: visible;

}

/* === MOBIL: Skjul på små skjermer === */
@media (max-width: 1600px) {
  .illustrasjon {
    display: none;
  }
}

@media (max-width: 768px) {
  .illustrasjon {
    display: hidden;
    width: 80px;
    height: 80px;
    z-index: 10;
  }
  
  .illustrasjon-venstre {
    width: 100px;
    height: 100px;
    top: 10px;
    left: -50px;
    
  }
  .illustrasjon-hoyre {
    top: 30px;
    right: 0px;
  }
}

/* === GLOBAL: FONTER & LOGO === */
.logo {
  width: 150px;
  height: 32px;
  flex-shrink: 0;
}

/* === MAINTENANCE CONTAINER === */

.custom-maintenance-box {
    width: 100%;
    padding: 20px;
    background-color: white;
    border: 1px solid #c5d1f0;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #4d4d4d;
  }

.scheduled-maintenances-container {
  padding: 20px;
  background-color: #ECF5FF;
  border: 1px solid #c5d1f0;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* === LAYOUT: CONTAINERS === */
.container-header {
  position: relative;
  width: 100vw !important;      
  margin-left: calc(50% - 50vw);  
  margin-right: calc(50% - 50vw);
  max-width: none !important;     
  padding: 50px 50px;
}

.container-header .container-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.custom-header-container {
  margin-bottom: 0 !important; 
}

.container {
  background-color: #F4F2F1;
  padding: 50px;
  border-radius: 50px;
width: 90%;
  max-width: 1200px;  
  margin: auto;
}

.container > * {
  max-width: 1200px;
  margin: 0 auto;
}

/* === HEADER === */
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buttons-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === KNAPPER === */
#show-updates-dropdown {
  background: #170032  !important;
  color: #D4DAFF !important;
  padding: 10px 30px !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/*
#show-updates-dropdown::after {
  content: 'Abonner på oppdateringer';
} */

#show-updates-dropdown:hover {
  background: #2F0F62   !important;
  color: #D4DAFF !important;
}

.website-btn {
  background: #170032;
  color: #D4DAFF;
  padding: 10px 30px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.website-btn:hover {
  background: #2F0F62;
  color: white;
}

.icon {
  color: white !important; 
  fill: white !important; 
}

.website-btn .icon {
  display: inline-block;           
  transition: transform 0.2s ease; 
}

.website-btn:hover .icon {
  transform: translateX(4px);     
}

.page-footer a[href="/"]:hover {
    background-color: black    !important;
  color: #D4DAFF !important;
}

.subscribe-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(230, 0, 0, 0.2);
}

a[href$="/history"] {
  display: inline-flex;
  background-color: #35155D;
  color: #D4DAFF;
  padding: 10px 30px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
}

a[href$="/history"]:hover,
a.history-footer-link:hover {
    background-color: black    !important;
  color: #D4DAFF !important;
}

.current-status-arrow {
 padding-right: 4px; 
}

#theme-toggle {
  border-radius: 100%;
  width: 14px;
  height: 14px;
  padding: 20px !important;
  transition: 0.3s ease;
}

#theme-toggle:hover {
   transform: rotate(15deg);
}

.website-btn .icon2 {
  display: inline-block;            
  transition: transform 0.2s ease;   
}

.website-btn:hover .icon2 {
  transform: rotate(15deg);           
}

.website-btn .icon {
  display: inline-flex;
  align-items: center;
}

.website-btn svg {
  width: 20px;
  height: 20px;
}

body.status-history a[href="/history"] {
  display: none !important;
}



/* === STATUSBAR === */
 .page-status {
    padding: 20px 50px !important;
    border-radius: 10px !important;
    text-align: center;
    font-weight: 600;
    color: #1a1a1a;
    transition: all 0.3s ease-in-out;
    margin-bottom: 40px !important;
  }

.page-status.status-none {
  border: 2px solid #28a45a    !important; 
}

.page-status.status-minor {
  border: 2px solid #ffd333 ;   
}

.page-status.status-major {
  border: 2px solid #f58224;   
}

.page-status.status-critical {
  border: 2px solid #e60000 ;   
}

@media (max-width: 600px) {
  .page-status {
    margin: auto !important;
    margin-bottom: 40px !important;
    margin-top: 20px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-weight: 600;

  }
  
  .text-section {
    padding: 0 20px !important; 
    text-align: justify;
  }
}

  .page-status h2.status {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }


  /* Dark mode support (if body has dark-mode class) */
  body.dark-mode .page-status {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
  }

.status {
  margin-bottom: 0 !important; 
}

  .pulsating-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    margin-bottom: 3px;
    border-radius: 50%;
    background-color: #c2f0c2 ;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse 2.5s infinite;
    vertical-align: middle;
  }

  @keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    background-color: #28a745;
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(40, 167, 69, 0);
    background-color: #7cf59d; /* lighter green pulse */
    filter: brightness(1.2);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    background-color: #28a745;
    filter: brightness(1);
  }
}

/* === CUSTOM STATUSBAR === */
.status-bar {
  width: 100%;
  padding: 25px 24px;
  margin-top: 40px;
  text-align: center;
  font-weight: 400;
  font-size: 32px !important;
  color: white !important;
  position: relative;
  border-radius: 10px;
}

.status-bar.operational {
  background-color: #21874A !important;
}

.status-bar.degraded {
  background-color: #FFC700 !important;
}

.status-bar.major-outage {
  background-color: #BF0001 !important;
}

.status-bar.maintenance {
  background-color: #FFC700 !important;
}

.status-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
}

.status-text {
  font-size: 15px;
  letter-spacing: 0.3px;
  color: white;
}

.status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}


.maintenance-icon-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

.custom-wrench-icon {
  flex-shrink: 0;
  vertical-align: middle;
  transform: translateY(-1px);
}

.layout-content.status.status-index .components-section .component-statuses-legend {
 overflow: visible !important; 
}

.status-icon.operational {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;

}

.status-icon.issue {
  background-color: rgba(255, 255, 255, 0.9);
  animation: pulse 2s infinite;
}

.legend-item {
 font-size: 15px !important; 
}

.icon-indicator {
  font-size: 18px !important; 
}


/* === INNHOLD === */
.components-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  justify-content: start;
}

.shared-partial.uptime-90-days-wrapper{
	  display:none !important;
}

.component-container {
  padding: 25px;
  width:90% !important;
}

.component-container.border-color.is-group {
  margin: 20px auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.component-inner-container.main-group {
  cursor: default;
  pointer-events: none;
}

.component-inner-container.main-group * {
  cursor: default;
  pointer-events: none;
}

.component-container .component-inner-container.main-group.status-green::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #28a745;
}

.component-container .component-inner-container.main-group.status-red::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #DC3545;
}

/* === INCIDENTS === */
.unresolved-incident.impact-minor {
  border-radius: 20px;
}

.incident-title {
  border-radius: 20px 20px 0 0;
}

.text-section {
  margin-bottom: 20px !important;
}

.updates {
  background-color: white;
  border-radius: 0 0 20px 20px;
  padding: 50px !important;
}


/* === FOOTER === */
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.vedlikehold-text {
  margin: auto;
}

/* === Custom Component Design === */

/* Fjern status-stripen på siden */
.component-inner-container.main-group::before {
  display: none !important;
}

.component-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.component-inner-container {
  background: white;
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  margin: 0 !important;
}

/*
.component-inner-container:hover {
  background-color: #f2f2f2; 
} */

.component-inner-container.main-group {
  padding-left: 0px !important;
}

.child-components-container {
  padding-left: 0 !important; 
}

/* Remove top border from the first one */
.component-inner-container:first-child {
  border-top: none;
}

/* Round top corners on first */
.component-inner-container:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Round bottom corners on last */
.component-inner-container:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.main-group {
  background: transparent !important; 
}


/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  /* Generell padding */
  .custom-header,
  .header-content,
  .status-bar,
  .page-status {
    padding-left: 0px !important;
    padding-right: 0px !important;
  	  margin: 0; 
  }
  
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .text-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .component-inner-container.main-group .icon-indicator {
  display: none !important;
}
  
 .component-inner-container,
 .component-inner-container.main-group {
  padding-left: 20px !important;
}
  
  .child-components-container {
   padding-right: 0px !important; 
   padding-left: 0px !important;
  }
  
  .status-bar {
    margin-top: 20px; 
  }

  .custom-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  /* Header layout */
  .header-content {
     flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .logo {
    height: 28px;
    margin: 0 auto;

  }

  #theme-toggle {
    padding: 8px !important;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    font-size: 20px;
    line-height: 1;
  }

  /* Andre linje: knappene side om side */
  .buttons-container {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  /* Container padding */
  .container {
    padding: 20px 20px 30px;
    width: 100%;
    border-radius: 20px;
  }

  /* Statusbar */
  .status-bar {
    padding: 16px 20px;
    font-size: 20px !important;
  }

  .status-text {
    font-size: 14px;
  }
  
  .powered-by {
    font-size: 10px;
  }

  .subscribe-btn,
  .website-btn,
  #show-updates-dropdown {
    padding: 10px 35px !important;
    font-size: 13px !important;
  }

  /* Statuskortene */
  .components-container {
    flex-direction: column !important;
    gap: 5px;
  }
  
  
  
  .component-inner-container .icon-indicator {
    display: inline-block !important;
    margin-right: 6px;
  }

  /* Skjuler teksten "Operational", "Degraded" osv på mobil */
  .component-inner-container .component-status {
    display: none !important;
  }

  .component-inner-container {
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .status-text,
  .component-status-text {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
  }
  
  .component-statuses-legend {
    display: flex !important;
    justify-content: center;
    align-items: baseline;
    align-content: flex-start;
    flex-wrap: wrap;
    align-self: stretch;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
  }

  .component-statuses-legend .legend-item {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
  }
  
  .icon-indicator {
    margin-bottom: 3px;
  }

}

.grouped-items-selector{
	left: auto !important;
}

/* Default: show moon, hide sun */
#theme-toggle .icon-sun {
  display: none;
}

#theme-toggle .icon-moon {
  display: inline-flex;
  align-items: center;
}

/* When dark mode active: show sun, hide moon */
#theme-toggle.is-dark .icon-sun {
  display: inline-flex;
}

#theme-toggle.is-dark .icon-moon {
  display: none;
}


@media (max-width: 480px) {
  .subscribe-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* === DARK MODE === */
body.dark-mode {
  background-color: #1A1A1A;
  color: #e0e0e0;
}

body.dark-mode .container-header,
body.dark-mode .custom-header,
body.dark-mode .header-content,
body.dark-mode .component-container.border-color.is-group,
body.dark-mode .updates {
  background-color: #1A1A1A;
}

body.dark-mode .container{
    background-color: #262626 ;
   
}


body.dark-mode .logo path,
body.dark-mode .icon path {
  fill: #fff;
}

body.dark-mode .status-text,
body.dark-mode .vedlikehold-text,
body.dark-mode .footer-container,
body.dark-mode .component-inner-container,
body.dark-mode .custom-header-container,
body.dark-mode .component-container,
body.dark-mode .name,
body.dark-mode .component-inner-container.main-group,
body.dark-mode .child-components-container {
  color: #ffffff !important;
}


body.dark-mode .color-secondary,
body.dark-mode .text-section {
  color: #cccccc;
}

body.dark-mode .modal-content {
  color: black;
}

body.dark-mode .component-inner-container.status-green.main-group .name::before {
  color: #ffffff !important;
  fill: #ffffff !important;
}

body.dark-mode .subscribe-btn,
body.dark-mode .website-btn {
  background-color: #5839A8 ;
  color: #D4DAFF ;
}

body.dark-mode .website-btn:hover,
body.dark-mode .subscribe-btn:hover {
  background-color: #3C2178  ;
}

body.dark-mode #show-updates-dropdown {
  background: #5839A8  !important;
  color: #D4DAFF  !important;
  border: none !important;
}

body.dark-mode #show-updates-dropdown:hover {
  background: #3C2178   !important;
}

body.dark-mode .updates-dropdown {
  color: black !important;
}

body.dark-mode .status-bar.operational {
  background-color: #21874A !important;
}

body.dark-mode .status-bar.degraded {
  background-color: #FFC700 !important;
}

body.dark-mode .status-bar.major-outage {
  background-color: #BF0001 !important;
}

body.dark-mode .status-bar.maintenance {
  background-color: #FFC700 !important;
}

body.dark-mode .status-icon.operational {
  background-color: #00C851;
}

body.dark-mode .status-icon.issue {
  background-color: #FFA500;
  animation: pulse 2s infinite;
}

body.dark-mode .status-bar.degraded .status-icon {
  background-color: #FFA500;
}

body.dark-mode .status-bar.major-outage .status-icon {
  background-color: #FF4444;
}

body.dark-mode .status-bar.maintenance .status-icon {
  background-color: #33b5e5;
}

/* === DARK MODE: Custom Component Design === */

body.dark-mode .component-inner-container {
  background: #383838 !important;
  border-top: 1px solid #1F2126 !important;
  color: #ffffff !important;
}

body.dark-mode .component-inner-container:first-child {
  border-top: none !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

body.dark-mode .component-inner-container:last-child {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

body.dark-mode .main-group {
  background: transparent !important;
}

body.dark-mode .component-inner-container .name {
  color: #ffffff !important;
}

body.dark-mode .legend-item {
  color: white !important; 
}

body.dark-mode .scheduled-maintenances-container {
  background-color: #383838; 
  border: 1px solid #535e79;     
  color: #ffffff;          
}

body.dark-mode .incident-title a {
  color: white !important; 
}

/*
body.dark-mode .component-inner-container:hover {
  background-color: #3b3b45  !important; 
} */

body.dark-mode .component-inner-container:not(.main-group) {
  border: 1px solid rgba(255, 255, 255, 0.08); /* subtle border */
  border-top: none; 
  background: #383838 !important;
}

body.dark-mode .component-inner-container:not(.main-group):first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

body.dark-mode .component-inner-container:not(.main-group):last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/*
body.dark-mode .component-inner-container:not(.main-group):hover {
  background-color: #3b3b45  !important;
} */

body.dark-mode .custom-maintenance-box {
    background-color: #383838;
    border: 1px solid #444;
    color: #ffffff;
}  
  
  
/* === HISTORY === */
body.dark-mode .message.incident-body.color-primary,
body.dark-mode .row.update-row,
body.dark-mode .update-title,
body.dark-mode .update-container,
body.dark-mode .update-body
{
  color: #bfbfbf    !important;
}

body.dark-mode a[href$="/history"] {
  background-color: #5839A8   !important;
  color: #D4DAFF  !important;
  border-color: #9911ee  !important;
}

body.dark-mode a[href$="/history"]:hover,
body.dark-mode a.history-footer-link:hover {
  background-color: #3C2178  !important;
  color: #D4DAFF !important;
  border-color: #9911ee !important;
}



button:focus {
  outline: none;
}




.availability-time-line-graphic{
	 display:hidden,
}