/* /static/style.css */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

h1 {
  color: #1abc9c;
}

.container {
  max-width: 1320px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

form {
  margin-bottom: 30px;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

button {
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #1abc9c;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #16a085;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #1abc9c;
  color: white;
}

.action-form {
  display: inline-block;
  margin-right: 10px;
}

.small-input {
  width: 150px;
}

.checkbox-container {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-container input[type="checkbox"] {
  transform: scale(1.2);
}

.checkbox-container label {
  margin: 0;
  font-weight: normal;
}

/* === HEADER === */

header {
  background-color: #1abc9c;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left img {
  height: 40px;
  margin-right: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.username {
  font-weight: bold;
}

.logout-btn,
.admin-btn {
  background: white;
  color: #1abc9c;
  border: none;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.logout-btn:hover,
.admin-btn:hover {
  background: #e0f7f5;
}

.tz-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px; background:#111; color:#fff;
}
.tz-logo { height:36px; }
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.nav-link:hover,
.nav-link:focus-visible,
[data-dropdown].open > .nav-link {
  background: #1f1f1f;
  color: #fff;
}

.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .nav-link {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
}

.nav-item.dropdown .nav-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  margin-left: 6px;
  position: relative;
  top: -1px;
}

.dropdown-menu {
  position:absolute; top:100%; left:0; min-width:180px;
  background:#1a1a1a; border:1px solid #2a2a2a; border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.3); padding:6px; display:none; z-index:1000;
  margin-top: 6px;
}

.dropdown-item {
  display:block; padding:10px 12px; color:#fff; border-radius:6px; text-decoration:none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background:#262626;
  color:#fff;
}

/* Hover-activatie voor desktop */
.nav-item.dropdown:hover .dropdown-menu { display:block; }

/* Kleine schermen: menu wat ruimer */
@media (max-width: 720px) {
  .nav { gap:8px; }
  .dropdown-menu { min-width: 160px; }
}

.text-muted { color: #6c757d; }
.small { font-size: 0.875rem; }

.actions-panel {
  margin-top: 1.5rem;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.action-card {
  background: #f8f9fa;
  border: 1px solid #e0e5eb;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.05);
}

.action-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.action-card h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.action-card--danger {
  border-color: #f5c2c7;
  background: #fff6f7;
}

.action-card--collapsible {
  padding: 0;
  overflow: hidden;
}

.action-card--collapsible summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-card--collapsible summary::-webkit-details-marker {
  display: none;
}

.action-card--collapsible summary::after {
  content: "▾";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.action-card--collapsible[open] summary::after {
  transform: rotate(-180deg);
}

.collapsible-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  background: #1abc9c;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 188, 156, 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: #1abc9c;
}

.btn-secondary {
  background: #0d6efd;
}

.btn-danger {
  background: #dc3545;
}

.btn-outline {
  background: transparent;
  border-color: #ced4da;
  color: #212529;
}

.btn-outline:hover {
  background: #e9ecef;
  box-shadow: none;
}

.button-row .btn {
  min-width: 160px;
}

@media (max-width: 992px) {
  .actions-panel {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .button-row .btn {
    min-width: 140px;
  }
}
