/* Theme-aligned board styling for frontend document tabs */
.bestyrelse-tabs {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(0, 196, 88, 0.55);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(4, 16, 34, 0.96), rgba(2, 10, 24, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.bestyrelse-tabs .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0 0 16px;
  border-bottom: 0;
}

.bestyrelse-tabs .tab-buttons button {
  flex: 1 1 calc(50% - 6px);
  min-width: 220px;
  appearance: none;
  background: linear-gradient(180deg, #26c455 0%, #1da347 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.bestyrelse-tabs .tab-buttons button:hover,
.bestyrelse-tabs .tab-buttons button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 12px 28px rgba(0, 0, 0, 0.24);
  outline: none;
}

.bestyrelse-tabs .tab-buttons button.active {
  background: linear-gradient(180deg, #1fb84d 0%, #17853a 100%);
  box-shadow: 0 0 0 1px rgba(0, 196, 88, 0.7), 0 14px 30px rgba(0, 0, 0, 0.28);
}

.bestyrelse-tabs .tab-content {
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(0, 196, 88, 0.55);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(5, 15, 30, 0.92), rgba(3, 11, 23, 0.97));
  color: #ffffff;
  min-height: 124px;
}

.bestyrelse-tabs .tab-content ul,
.bestyrelse-tabs .tab-content li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-doc-list {
  display: grid;
  gap: 12px;
}

.bd-doc-item {
  margin: 0;
}

.bd-doc-link {
  display: block;
  padding: 15px 18px;
  border: 1px solid rgba(0, 196, 88, 0.42);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11, 24, 44, 0.9), rgba(8, 18, 34, 0.94));
  color: #ffffff !important;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bd-doc-link:hover,
.bd-doc-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 196, 88, 0.72);
  background: linear-gradient(180deg, rgba(13, 28, 50, 0.98), rgba(10, 21, 39, 0.98));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  outline: none;
}

.bd-empty-state {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed rgba(0, 196, 88, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.45;
}

/* Buttons */
.bestyrelse-btn {
  background: linear-gradient(180deg, #28c455 0%, #1ba044 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  margin: 10px 0;
  padding: 10px 24px;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.bestyrelse-btn:hover {
  background: linear-gradient(180deg, #22b64c 0%, #17853a 100%);
  color: #ffffff;
  border-color: rgba(0, 196, 88, 0.7);
}

/* Upload form */
.bd-upload-form p { margin: 10px 0; }
.bd-upload-form input,
.bd-upload-form select,
.bd-upload-form button { color: #ffffff; }
.bd-upload-form a { color: #28c455; }

/* Messages */
.bd-success,
.bd-error {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
}

.bd-success {
  color: #d8ffe3;
  background: rgba(24, 133, 58, 0.18);
  border: 1px solid rgba(40, 196, 85, 0.35);
}

.bd-error {
  color: #ffd6d6;
  background: rgba(185, 26, 26, 0.12);
  border: 1px solid rgba(205, 54, 54, 0.28);
}

@media (max-width: 900px) {
  .bestyrelse-tabs {
    padding: 16px;
    border-radius: 20px;
  }

  .bestyrelse-tabs .tab-buttons button {
    font-size: 18px;
    min-width: 180px;
  }

  .bd-doc-link,
  .bd-empty-state {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .bestyrelse-tabs {
    padding: 14px;
    border-radius: 18px;
  }

  .bestyrelse-tabs .tab-buttons {
    gap: 10px;
    margin-bottom: 14px;
  }

  .bestyrelse-tabs .tab-buttons button {
    flex-basis: 100%;
    min-width: 0;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 17px;
  }

  .bestyrelse-tabs .tab-content {
    padding: 14px;
    border-radius: 16px;
  }

  .bd-doc-link,
  .bd-empty-state {
    padding: 14px 15px;
    font-size: 16px;
  }
}


/* Step 2: stronger document rows and calmer themed action button */
.bestyrelse-tabs .tab-content {
  position: relative;
  overflow: hidden;
}

.bestyrelse-tabs .tab-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(0, 196, 88, 0.08), transparent 42%);
}

.bestyrelse-tabs .tab-content > * {
  position: relative;
  z-index: 1;
}

.bd-doc-list {
  grid-template-columns: 1fr;
}

.bd-doc-link {
  position: relative;
  padding: 18px 58px 18px 56px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(12, 27, 49, 0.96), rgba(8, 18, 34, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.16);
}

.bd-doc-link::before {
  content: "📄";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  opacity: 0.95;
}

.bd-doc-link::after {
  content: "Åbn";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(187, 255, 209, 0.92);
}

.bd-doc-link:hover,
.bd-doc-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.bd-empty-state {
  padding: 22px 24px;
  border-style: solid;
  text-align: left;
}

.bestyrelse-btn {
  background: linear-gradient(180deg, #25be52 0%, #1a983f 100%);
  border-radius: 16px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.bestyrelse-btn:hover,
.bestyrelse-btn:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #22b64c 0%, #188a3a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 24px rgba(0, 0, 0, 0.2);
  outline: none;
}

.bd-upload-form {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(0, 196, 88, 0.35);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(5, 15, 30, 0.88), rgba(2, 10, 22, 0.96));
}

.bd-upload-form input[type="text"],
.bd-upload-form select,
.bd-upload-form input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(0, 196, 88, 0.38);
  background: rgba(10, 22, 40, 0.95);
  color: #ffffff;
  padding: 12px 14px;
  box-sizing: border-box;
}

.bd-upload-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.bd-upload-form input[type="text"]:focus,
.bd-upload-form select:focus,
.bd-upload-form input[type="file"]:focus {
  outline: none;
  border-color: rgba(0, 196, 88, 0.78);
  box-shadow: 0 0 0 3px rgba(0, 196, 88, 0.12);
}

@media (max-width: 640px) {
  .bd-doc-link {
    padding: 16px 16px 16px 48px;
    font-size: 16px;
  }

  .bd-doc-link::before {
    left: 15px;
    font-size: 18px;
  }

  .bd-doc-link::after {
    display: none;
  }

  .bd-upload-form {
    padding: 14px;
    border-radius: 18px;
  }
}
