/* RESET – Fjern browser-defaults og ensret layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASIS TYPOGRAFI OG BAGGRUND */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #1e1e1e;
  color: #f0f0f0;
  padding: 2rem;
  line-height: 1.6;
}

/* OVERSKRIFTER */
h1, h2, h3 {
  color: #7bd7ff;
  margin-bottom: 1rem;
}

/* FORMULARELEMENTER – Ens stil til formularer og tabeller */
form, table {
  background-color: #2b2b2b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

/* FELTER OG KNAPPER */
input, button {
  font-size: 0.95rem;
  padding: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  width: 100%;
}

/* INPUTSPECIFIKKE STYLES */
input[type="date"],
input[type="number"],
input[type="text"],
input[type="password"] {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #7bd7ff;
}

/* HOVEREFFEKT PÅ KOMMENTARFELT */
input[name="comment"]:hover {
  background-color: #2c2c2c;
}

/* PRIMÆR KNAPSTIL */
form button {
  padding: 0.6rem 1.2rem;
  background-color: #7bd7ff;
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
}

form button:hover {
  background-color: #64c2e6;
}

/* INDLÆSNING AF FELTER I BLOK */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

/* TABELDESIGN */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #2b2b2b;
}

table th, table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #444;
  line-height: 1.4;
  font-size: 0.95rem;
}

table th {
  text-align: center;
  color: #7bd7ff;
}

td {
  max-width: 300px;
  word-break: break-word;
  vertical-align: middle;
}

/* SKRALDESPAND-KNAP (slet tur) */
.icon-delete {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 2rem;
  padding: 0;
  margin: 0;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  outline: none;
  box-shadow: none;
}

.icon-delete:hover {
  color: #e03c3c;
}

table td form {
  margin: 0;
  display: inline;
}

/* LINKS */
a {
  color: #7bd7ff;
  text-decoration: none;
  font-weight: bold;
}

/* LOGIN & IMPORT-SIDER */
.login-container, .import-container {
  max-width: 450px;
  margin: 4rem auto;
  background-color: #2b2b2b;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.login-container h2, .import-container h2 {
  color: #7bd7ff;
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-container input,
.import-container input {
  border: 1px solid #7bd7ff;
  background-color: #1e1e1e;
  color: #f0f0f0;
}

.login-container button,
.import-container button {
  background-color: #7bd7ff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button:hover,
.import-container button:hover {
  background-color: #64c2e6;
}

/* FEEDBACKTEKST UNDER LOGIN/IMPORT */
.feedback {
  color: #7bd7ff;
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
}

/* CHART CANVAS STYLING */
canvas {
  background-color: #2b2b2b;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

/* STICKY FOOTER */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1e1e1e;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.6rem 0;
  z-index: 100;
}

.sticky-footer a {
  color: #7bd7ff;
  text-decoration: none;
  font-size: 1rem;
}

.sticky-footer a:hover {
  text-decoration: underline;
}

/* TOPNAV (højre hjørne links til logout etc.) */
.topnav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.topnav a {
  color: #7bd7ff;
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  background-color: #1e1e1e;
  border: 1px solid #7bd7ff;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.topnav a:hover {
  background-color: #64c2e6;
  color: #000;
}

/* MODAL POPUP (kommentar-redigering) */
.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #2c2c2c;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  color: white;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
}

/* RESPONSIV JUSTERING TIL MOBIL */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  form, table, .login-container, .import-container {
    padding: 1rem;
  }

  input, button {
    font-size: 1rem;
  }

  table th, table td {
    font-size: 0.9rem;
    padding: 0.4rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}
.icon-edit {
  background: none;
  border: none;
  color: #7bd7ff;
  font-size: 1.3rem;
  padding: 0;
  margin-left: 0.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline;
  vertical-align: middle;

  appearance: none;
  outline: none;
  box-shadow: none;
}

.icon-edit:hover {
  color: #64c2e6;
}
.icon-repeat {
  background-color: #2e2e2e;
  border: 1px solid #555;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.icon-repeat:hover {
  background-color: #3f3f3f;
}
.action-btn {
  background: none;
  border: 1px solid #7bd7ff;
  color: #7bd7ff;
  padding: 5px 8px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #7bd7ff22;
}
.summary-table {
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  width: 100%; /* eller fx 100% hvis du vil have fuld bredde */
}

.summary-table th,
.summary-table td {
  text-align: center;
  padding: 0.5rem;
}
