/* DAV-Kursverwaltung
 * Copyright (c) 2026 Andy Lungfiel
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

:root {
  --dav-overlay: rgba(7, 25, 41, 0.62);
}

body.dav-home {
  min-height: 100vh;
  background-image:
    linear-gradient(var(--dav-overlay), var(--dav-overlay)),
    var(--dav-background-image, url('/data/background.svg'));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.navbar.dav-navbar {
  background: linear-gradient(90deg, #0c2f4f 0%, #1b5f86 50%, #0e4363 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dav-brand-logo {
  width: auto;
  height: 45px;
  max-width: 90px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cde8ff;
  line-height: 1;
}

.dav-menu-images {
  display: flex;
  gap: 0.5rem;
  margin-right: 0.75rem;
}

.dav-menu-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.home-hero-card {
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
}

.home-hero-card .lead {
  color: #24455e;
}

.dav-home-app-name {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #0f4768, #1f7cb2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dav-home-org-label {
  color: #00a651;
  font-weight: 700;
}

.dav-highlight {
  background: linear-gradient(90deg, #0f4768, #1f7cb2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.verw-menu-card {
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
}

.verw-menu-grid {
  max-width: 30rem;
}

.verw-menu-btn {
  border-width: 2px;
  border-radius: 0.8rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(12, 47, 79, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.verw-menu-btn:hover,
.verw-menu-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 47, 79, 0.18);
}

.participants-filter-input,
.responsive-filter-input {
  min-width: 14rem;
}

.participants-table-wrap,
.responsive-table-wrap {
  overflow-x: auto;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-page-header-actions {
  align-items: center;
}

@media (max-width: 767.98px) {
  .admin-page-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: #fff;
  }

  .admin-page-header-actions .btn {
    width: 100%;
  }

  .participants-filter,
  .responsive-filter {
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .participants-filter-input,
.responsive-filter-input {
    width: 100%;
    min-width: 0;
  }

  .participants-table thead,
  .responsive-table thead {
    display: none;
  }

  .participants-table,
  .participants-table tbody,
  .participants-table tr,
  .participants-table td,
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .participants-table tr,
  .responsive-table tr {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    background: #fff;
  }

  .participants-table td,
  .responsive-table td {
    border: 0;
    padding: 0.3rem 0;
    text-align: left !important;
  }

  .participants-table td::before,
  .responsive-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.1rem;
    font-weight: 600;
  }

  .participants-actions-cell .btn,
  .participants-actions-cell form,
  .responsive-actions-cell .btn,
  .responsive-actions-cell form {
    width: 100%;
    margin: 0.15rem 0;
  }

  .participants-actions-cell form.d-inline,
  .responsive-actions-cell form.d-inline {
    display: block !important;
  }
}


.token-create-card {
  border-radius: 0.9rem;
}

.token-create-card .card-body {
  padding: 1.25rem;
}

@media (max-width: 767.98px) {
  .token-create-card .card-body {
    padding: 1rem;
  }
}

.course-edit-card {
  border-radius: 0.9rem;
}

.course-trainer-picker {
  max-height: 18rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.4rem;
  background: #f8fafc;
}

.course-trainer-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.course-trainer-checkbox {
  margin: 0;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #1b5f86;
  accent-color: #0d6efd;
  flex: 0 0 auto;
}

.course-trainer-name {
  line-height: 1.2;
}

.course-trainer-checkbox:checked + .course-trainer-name {
  font-weight: 600;
  color: #0f4768;
}

.course-trainer-item:has(.course-trainer-checkbox:checked) {
  border-color: #74a8cf;
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.12);
}

@media (max-width: 767.98px) {
  .course-trainer-picker {
    grid-template-columns: 1fr;
    max-height: none;
  }
}
