/* ========== Global styles ========== */
body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  background-color: #e5f9fb;
  color: #222;
}

/* ========== Header & Navigation ========== */
header {
  background-color: #118090;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.actions a {
  margin-left: 1rem;
  color: white;
  text-decoration: none;
}

.menu-button {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* ========== Mobilmeny ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid #ddd;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover {
  background-color: #e5f9fb;
  color: #118090;
}

.mobile-menu a i {
  font-size: 1.2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover i {
  transform: scale(1.1);
  color: #118090;
}




/* ========== Main content ========== */
main {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ========== Typography ========== */
h1 {
  text-align: center;
  color: #118090;
  margin-bottom: 2rem;
}

h2 {
  text-align: center;
  color: #118090;
  margin-bottom: 2rem;
}


/* ========== Table styling ========== */
.table-responsive {
  overflow-x: auto;
}

form {
  display: flex;
  max-width: 900px; /* ← legg til px */
  flex-direction: column;
  gap: 1rem;

}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
}

th {
  background-color: #e5f9fb;
  color: #118090;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:hover {
  background-color: #f0f7f8;
}

/* ========== Card components ========== */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #118090;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card svg {
  width: 62px;
  height: 62px;
  margin-bottom: 0.75rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: #118090;
  color: white;
  border-color: #118090;
}

.btn-primary:hover {
  background-color: #0d6c77;
  border-color: #0d6c77;
}

.btn-danger {
  background-color: #c0392b;
  color: white;
  border-color: #c0392b;
}

.btn-danger:hover {
  background-color: #a93226;
  border-color: #a93226;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #5a6268;
}

.btn-full {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background-color: #118090;
  color: white;
  border: none;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

.btn-full:hover {
  background-color: #0d6c77;
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  margin: 0 auto;
  color: #666;
  font-size: 0.9rem;
}

/* ========== Responsive tweaks ========== */
@media (max-width: 576px) {
  td.d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  td.d-flex .btn {
    width: 100%;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .actions {
    margin-left: auto;
  }
}

/* Modal styling */
    .modal {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.5);
    }
    .modal-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      width: 80%;
      max-width: 400px;
      border-radius: 10px;
    }
    .close {
      color: #aaa;
      float: right;
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
    }

    /* Hytte */
      .hytte-card {
        min-height: 300px;
        border: 2px dashed #ccc;
        border-radius: 1rem;
        padding: 1rem;
        background-color: #f9f9f9;
        transition: background-color 0.3s;
      }

      .hytte-card.drag-over {
        background-color: #e0f7fa;
        border-color: #00bcd4;
      }

      .deltaker-card {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 0.5rem;
        cursor: grab;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      }

      .deltaker-card:active {
        cursor: grabbing;
      }

      .hytte-header {
        font-weight: bold;
        margin-bottom: 1rem;
      }

      /* For risiko resultat */
      .risiko-high {
        background-color: #f8d7da;
      }
      .risiko-medium {
        background-color: #fff3cd;
      }
      .risiko-low {
        background-color: #d1e7dd;
      }

      /* For hover effekt HEADER */
       .actions a svg {
         transition: transform 0.2s ease, stroke 0.2s ease;
       }

       .actions a:hover svg {
         transform: scale(1.2);
         stroke: #d1e7dd; /* Bootstrap primary blå (eller din brandfarge) */
       }


.svglogo svg {
  transition: transform 0.2s ease;
}

.svglogo:hover svg {
  transform: scale(1.2);
}

.svg-strek {
  stroke: #118090;
  transition: stroke 0.2s ease;
}

.svglogo:hover .svg-strek {
  stroke: #d1e7dd;
}

.utforsking {
text-align: center;
}

  .logo1 {
      display: block;
      margin: 0 auto 1.5rem;
      width: 100%;
      max-width: 320px;
      height: auto;
    }



     </style>