/* ===========================
   Scrollbalk
=========================== */
::-webkit-scrollbar {
  width: 6px !important;
  height: 3px !important;
}

::-webkit-scrollbar-thumb {
  height: 50px !important;
  background-color: #eb3580 !important;
  background-image: linear-gradient(#eb576a, #51bac3);
  border-radius: 3px !important;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Avatar Animaties
=========================== */
@keyframes rotate-center {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.acav,
.avatar_private,
.avav,
.chat_avatar {
  animation: rotate-center 0.6s ease-in-out both;
}

@keyframes heartbeat {
  from {
    transform: scale(1);
    transform-origin: center center;
    animation-timing-function: ease-out;
  }
  10% {
    transform: scale(0.91);
    animation-timing-function: ease-in;
  }
  17% {
    transform: scale(0.98);
    animation-timing-function: ease-out;
  }
  33% {
    transform: scale(0.87);
    animation-timing-function: ease-in;
  }
  45% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}

.orti {
  animation: heartbeat 1.5s ease-in-out infinite both;
}

/* ===========================
   Button 85 (Glowing Button)
=========================== */
.button-85 {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  touch-action: manipulation;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: transform 0.1s ease-in-out;
}

.button-85:hover {
  transform: scale(1.05);
}

.button-85:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* ===========================
   Tekst & Tabellen
=========================== */
.lead {
  margin: 0 auto;
  max-width: 70ch;
  color: var(--muted);
}

.commandotabel {
  background: linear-gradient(
      180deg,
      rgba(255, 204, 0, 0.05),
      rgba(255, 204, 0, 0) 30%
    ),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 4px;
  margin-top: 22px;
  outline: none;
}

.commandotabel:focus {
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3), var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
}

caption {
  caption-side: top;
  text-align: center;
  padding: 10px 8px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(0deg, #181821 0%, #1c1c26 100%);
  color: var(--accent);
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #2a2a36;
  padding: 14px;
  z-index: 1;
}

tbody td {
  padding: 14px;
  border-bottom: 1px solid #1e1e27;
  vertical-align: top;
}

tbody tr {
  transition: background-color 0.15s ease, transform 0.08s ease;
}

tbody tr:hover {
  background: rgba(255, 204, 0, 0.05);
}

tbody tr:nth-child(even) {
  background: linear-gradient(
    0deg,
    rgba(255, 204, 0, 0.025),
    rgba(255, 204, 0, 0)
  );
}

.placeholder td {
  color: #d7d7df;
}

.placeholder td:last-child {
  color: #c9c9d6;
  font-style: italic;
}

td strong {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 4px;
  border: 1px solid #2b2b36;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===========================
   Responsive Tabellen
=========================== */
@media (max-width: 780px) {
  thead {
    display: none;
  }

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

  tbody tr {
    margin: 10px 8px 16px;
    border: 1px solid #242433;
    border-radius: 12px;
    padding: 6px 8px;
    background: linear-gradient(180deg, #15151e, #12121a);
  }

  tbody td {
    border-bottom: none;
    padding: 10px;
  }

  tbody td::before {
    content: attr(data-label) " ";
    display: block;
    font-size: 0.8rem;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
  }
}

/* ===========================
   Print Optimalisatie
=========================== */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .commandotabel {
    box-shadow: none;
    border-color: #bbb;
  }
  thead th {
    color: #000;
    background: #eee;
  }
  td strong {
    color: #000;
    background: #f5f5f5;
    border-color: #ccc;
  }
  .page__header .lead {
    color: #333;
  }
}
