/* Algemene stijlen en animaties */
body {
  background: linear-gradient(135deg, #031d36 0%, #94a6b7 100%);
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  position: relative;
  animation: gradientShift 15s ease infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Floating background elements */
.floating-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg,
      rgba(102, 126, 234, 0.1) 0%,
      rgba(118, 75, 162, 0.1) 100%);
  animation: float 15s infinite ease-in-out;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(5px);
  transition: filter 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  will-change: transform, filter, box-shadow;
}

.floating-element:hover {
  filter: hue-rotate(45deg);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(118, 75, 162, 0.3);
}

.floating-element.el-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
  animation-duration: 20s;
}

.floating-element.el-2 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: -100px;
  animation-delay: -5s;
  animation-duration: 18s;
}

.floating-element.el-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 10%;
  animation-delay: -10s;
  animation-duration: 22s;
}

.floating-element.el-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 30%;
  animation-delay: -7s;
  animation-duration: 15s;
}

.floating-element.el-5 {
  width: 250px;
  height: 250px;
  bottom: -125px;
  right: -125px;
  animation-delay: -12s;
  animation-duration: 25s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(20px, 15px) rotate(5deg) scale(1.05);
  }

  50% {
    transform: translate(0, 30px) rotate(0deg) scale(1);
  }

  75% {
    transform: translate(-20px, 15px) rotate(-5deg) scale(0.95);
  }
}

.btn-primary {
  background: linear-gradient(135deg, #031d36 0%, #94a6b7 100%) !important;
  border: none !important;
}

/* text animation  */
.ml9 {
  position: relative;
  font-weight: 200;
  font-size: 2, 8em;
}

.ml9 .text-wrapper {
  position: relative;
  display: inline-block;
  /* padding-top: 0.2em;
        padding-right: 0.05em;
        padding-bottom: 0.1em; */
  overflow: hidden;
}

.ml9 .letter {
  transform-origin: 50% 100%;
  display: inline-block;
  line-height: 1rem;
  font-weight: bold;
  color: rgb(96, 135, 158);
}

/* Header icon */
.header-icon {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  filter: drop-shadow(0 5px 10px rgba(102, 126, 234, 0.3));
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Floating add button */
.floating-add-btn {
  position: fixed !important;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  border-radius: 50px;
  padding: 15px 25px;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(-10px);
  }
}

/* Icon styling */
.btn-icon,
.modal-icon,
.input-icon,
.info-icon,
.section-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
}

/* Icons inside buttons should not have margin (gap handles spacing) */
.btn .btn-icon,
.btn .btn-icon-lg {
  margin-right: 0;
  margin-left: 0;
  vertical-align: unset;
}

/* Icons outside buttons keep margin for spacing */
.modal-icon,
.input-icon,
.info-icon,
.section-icon {
  margin-right: 8px;
  vertical-align: middle;
}

.btn-icon-lg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
}

.btn:hover .btn-icon,
.btn:focus .btn-icon {
  transform: scale(1.2) rotate(5deg);
}

.loading-icon {
  width: 24px;
  height: 24px;
  animation: spin 1.5s linear infinite;
  object-fit: contain;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.warning-icon,
.error-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.delete-modal-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  animation: wiggleModal 1.5s ease-in-out;
  object-fit: contain;
  transform-origin: center;
}

/* Herstart animatie wanneer modal wordt geopend */
.modal.show .delete-modal-icon {
  animation: wiggleModal 1.5s ease-in-out infinite;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-8px);
  }

  40%,
  80% {
    transform: translateX(8px);
  }
}

.footer-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: text-top;
  object-fit: contain;
}

.loading-plugins {
  width: 80px;
  height: 80px;
  animation: pulse 2s infinite ease-in-out;
  object-fit: contain;
}

/* Card animations */
.card {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: cardAppear 0.8s forwards;
  position: relative;
  will-change: transform, box-shadow;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #667eea, #764ba2, #6b8dd6, #8e37d7);
  background-size: 300% 300%;
  animation: gradientBorder 4s ease infinite;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover::before {
  transform: scaleX(1);
}

@keyframes gradientBorder {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card:nth-child(odd):hover {
  transform: translateY(-15px) scale(1.03) rotate(1deg);
}

.card:nth-child(even):hover {
  transform: translateY(-15px) scale(1.03) rotate(-1deg);
}

.preview-card {
  animation: previewCardAppear 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes previewCardAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  70% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Plugin icon styling */
.plugin-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: white;
  padding: 4px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
  position: relative;
  z-index: 1;
  cursor: pointer;
  filter: saturate(0.9);
  will-change: transform, box-shadow, filter;
}

.plugin-icon-letter {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: white;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  will-change: transform;
}

.plugin-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #667eea, #764ba2, #6b8dd6, #8e37d7);
  background-size: 300% 300%;
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: gradientBorder 4s ease infinite;
}

.plugin-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0) 70%);
  border-radius: 12px;
  z-index: 2;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  pointer-events: none;
}

@keyframes iconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

.plugin-icon:hover,
.plugin-icon-letter:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  filter: saturate(1.2) brightness(1.05);
  animation: iconPulse 1.5s infinite;
}

.plugin-icon:hover::after {
  opacity: 0.7;
  transform: scale(1);
}

.plugin-icon:hover::before {
  opacity: 0.6;
  transform: scale(1);
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
  }
}

/* Domain badge */
.domain-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  animation: fadeIn 0.6s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

/* Delete button without border - PERFECT CENTERED */
.btn-delete {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border: none;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 3px 8px rgba(255, 107, 107, 0.3);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 0.8rem;
  transform-origin: center;
  will-change: transform, box-shadow, background;
}

.btn-delete:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
}

.btn-delete .btn-icon {
  margin: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Header right section alignment */
.card-header>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Version badges with more spacing */
.version-badge {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(79, 172, 254, 0.25);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  animation: badgeAppear 0.5s ease-out;
  margin: 0.3rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, box-shadow, background;
}

.version-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: transform 0.6s;
}

.version-badge::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00f2fe, #4facfe, #00f2fe);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  opacity: 0;
}

@keyframes badgeAppear {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
  }
}

.version-badge:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 25px rgba(79, 172, 254, 0.5);
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  animation: badgePulse 1.5s infinite;
}

.version-badge:hover::before {
  transform: translateX(200%);
}

.version-badge:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Versions container with more spacing */
.versions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Extra small devices (phones, up to 767px) */
@media (max-width: 767px) {
  header h1 .letters {
    font-size: 2rem;
    line-height: 1.2;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-container, #userButtons {
      flex-direction: column;
      gap: 0.75rem;
      align-items: center;
  }

  .filters-section .card-body .row > div {
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
  }

  .filters-section .form-label {
    justify-content: center;
  }

  .platform-filters, .loader-filters {
    justify-content: center;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .row.gy-4 > * {
    width: 100%;
  }

  .col-lg-3, .col-lg-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-header {
    padding: 1.2rem;
  }

  .card-body {
    padding: 1.2rem;
  }

  h1.letters {
    font-size: 2.2rem;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media (min-width: 992px) {
    header h1 .letters {
        font-size: 2.8rem;
    }
}

/* Plugin info container - align author icon and badge properly */
.plugin-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.plugin-info strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0;
}

.plugin-info .info-icon {
  margin-right: 0;
  /* Remove margin, use gap instead */
  flex-shrink: 0;
}

.plugin-info .author-badge {
  margin-left: 0;
  /* Remove margin, use gap from container instead */
}

/* Author badge */
.author-badge {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 18px;
  font-weight: 600;
  margin-left: 0.8rem;
  font-size: 1.05rem;
  box-shadow: 0 3px 10px rgba(67, 233, 123, 0.25);
  animation: slideIn 0.5s ease-out;
  transition: padding 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
  /* Allow star to show outside */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  /* Consistent height */
  white-space: nowrap;
  /* Prevent text wrapping */
  will-change: padding, transform, box-shadow, background;
}

.author-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: transform 0.6s;
  z-index: 1;
}

.author-badge::after {
  content: "★";
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: opacity 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), width 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 0;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  visibility: hidden;
}

@keyframes authorBadgeGlow {
  0% {
    box-shadow: 0 0 5px rgba(67, 233, 123, 0.6);
  }

  50% {
    box-shadow: 0 0 15px rgba(67, 233, 123, 0.8);
  }

  100% {
    box-shadow: 0 0 5px rgba(67, 233, 123, 0.6);
  }
}

.author-badge:hover {
  transform: translateY(0px) scale(1.03);
  box-shadow: 0 8px 20px rgba(67, 233, 123, 0.4);
  background: linear-gradient(135deg, #2ecc71, #1abc9c);
  animation: authorBadgeGlow 1s infinite;
  padding-right: 1.2rem;
  /* Keep consistent padding */
}

.author-badge:hover::before {
  transform: translateX(200%);
}

.author-badge:hover::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  width: 1em;
  /* Fixed width for star */
  min-width: 1em;
  max-width: 1em;
  overflow: visible;
  visibility: visible;
  margin-left: 0.5rem;
  /* Use gap instead */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Button animations */
.btn {
  display: inline-flex;
  /* makes icon + text align side by side */
  align-items: center;
  /* vertically center all items */
  justify-content: center;
  /* horizontally center content */
  gap: 0.5rem;
  /* consistent spacing between icon and text */
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.35s cubic-bezier(0.2, 0, 0, 1), background-color 0.35s ease, color 0.35s ease;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  /* center text content */
  white-space: nowrap;
  /* prevent text wrapping */
  line-height: 1.5;
  /* proper line height for text alignment */
  will-change: transform, box-shadow, background-color, color;
}

/* Ensure all button content is properly aligned */
.btn>* {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Ensure buttons with only icons are perfectly centered */
.btn:has(> .btn-icon:only-child),
.btn:has(> img.btn-icon:only-child) {
  padding: 0.5rem;
  min-width: auto;
}

/* Fix FontAwesome icons alignment in buttons */
.btn i,
.btn .fas,
.btn .far,
.btn .fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* Ensure FontAwesome icons with Bootstrap spacing classes work correctly */
.btn .me-2,
.btn .ms-2 {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* But preserve spacing for FontAwesome icons - use gap instead */
.btn i.fa,
.btn i.fas,
.btn i.far,
.btn i.fab {
  margin: 0;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transform: translateX(-100%);
  transition: transform 1.2s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1.2s ease-out;
}

.btn:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }

  20% {
    transform: scale(60, 60);
    opacity: 1;
  }

  to {
    transform: scale(100, 100);
    opacity: 0;
  }
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
}

.btn-primary::after,
.btn-success::after,
.btn-danger::after,
.btn-warning::after,
.btn-info::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.btn-primary::before,
.btn-success::before,
.btn-danger::before,
.btn-warning::before,
.btn-info::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  transition: width 0.7s cubic-bezier(0.2, 0, 0, 1);
  z-index: -1;
}

.btn-primary:hover::before,
.btn-success:hover::before,
.btn-danger:hover::before,
.btn-warning:hover::before,
.btn-info:hover::before {
  width: 100%;
}

/* Modal styling met animaties */
.modal-content {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border: none;
  animation: modalFadeIn 0.5s ease-out forwards;
  transform: scale(0.8);
}

/* Modal footer button alignment */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal.fade .modal-dialog {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform: translateY(-50px) scale(0.9);
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

/* Alert animations */
.alert {
  border-radius: 12px;
  padding: 1rem 1.5rem;
  border: none;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error message styling - hidden by default */
#errorMessage {
  display: none !important;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  border: none;
}

#errorMessage.show {
  display: flex !important;
  animation: shake 0.5s ease-in-out;
}

/* Form control animations */
.form-control {
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  border: 2px solid #e9ecef;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  transform: translateY(-3px);
}

/* Loading animation for buttons */
.btn-loading .btn-icon {
  animation: spin 1.5s linear infinite;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
  .header-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }

  .floating-add-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
  }

  .floating-element.el-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
  }

  .floating-element.el-2 {
    width: 150px;
    height: 150px;
    right: -75px;
  }

  .floating-element.el-5 {
    width: 180px;
    height: 180px;
    bottom: -90px;
    right: -90px;
  }

  /* Responsive adjustments for version badges */
  .version-badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0.2rem;
  }

  .versions-container {
    gap: 0.8rem;
  }

  /* Mobile header adjustments */
  .card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .card-header>div:last-child {
    width: 100%;
    justify-content: center;
  }

  .btn-delete {
    margin-left: 0.5rem;
  }
}

/* Extra CSS animaties toevoegen */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Styling voor de nieuwe Ja/Nee knoppen */
.confirmation-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-yes {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  border: none;
  padding: 0.5rem 2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-no {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border: none;
  padding: 0.5rem 2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.confirmation-question {
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #495057;
}

/* Filter Sectie Styling */
.filters-section {
  animation: slideInDown 0.8s ease-out;
}

.filter-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(102, 126, 234, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.filter-card:hover::before {
  left: 100%;
}

.filter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.search-input {
  border-radius: 15px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1.2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  transform: scale(1.02);
  background: rgba(255, 255, 255, 1);
}

.version-filter {
  border-radius: 15px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1.2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.version-filter:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  transform: scale(1.02);
  background: rgba(255, 255, 255, 1);
}

.platform-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.loader-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.form-check-input {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
  transform: scale(1.1);
}

.form-check-label {
  font-weight: 500;
  color: #495057;
  transition: color 0.3s ease;
  cursor: pointer;
}

.form-check-input:checked+.form-check-label {
  color: #667eea;
  font-weight: 600;
}

.reset-filters-btn {
  border-radius: 15px;
  border: 2px solid #6c757d;
  transition: background 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.reset-filters-btn:hover {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border-color: #495057;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.reset-filters-btn .btn-icon {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.reset-filters-btn:hover .btn-icon {
  transform: rotate(15deg);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive aanpassingen voor filters */
@media (max-width: 768px) {
  .platform-filters {
    flex-direction: column;
    align-items: center;
  }

  .form-check-inline {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .filter-card .row {
    text-align: center;
  }
}

/* Extra Visuele Animaties */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.6),
      0 0 30px rgba(13, 110, 253, 0.4);
  }
}

@keyframes wiggle {

  0%,
  7% {
    transform: rotateZ(0);
  }

  15% {
    transform: rotateZ(-15deg);
  }

  20% {
    transform: rotateZ(10deg);
  }

  25% {
    transform: rotateZ(-10deg);
  }

  30% {
    transform: rotateZ(6deg);
  }

  35% {
    transform: rotateZ(-4deg);
  }

  40%,
  100% {
    transform: rotateZ(0);
  }
}

/* Verbeterde wiggle animatie voor de modal */
@keyframes wiggleModal {
  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-8deg) scale(1.05);
  }

  50% {
    transform: rotate(0deg) scale(1.1);
  }

  75% {
    transform: rotate(8deg) scale(1.05);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }

  40%,
  100% {
    transform: rotateZ(0);
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.1);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.1);
  }

  70% {
    transform: scale(1);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flipIn {
  0% {
    opacity: 0;
    transform: rotateY(-90deg);
  }

  100% {
    opacity: 1;
    transform: rotateY(0);
  }
}

/* Verbeterde hover effecten */
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.btn-primary:hover {
  animation: glow 2.2s infinite;
  transform: translateY(-1px);
}

.btn-delete:hover {
  animation: wiggle 0.8s ease-in-out;
}

.floating-add:hover {
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Animaties voor plugin cards */
.plugin-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plugin-card:hover .plugin-icon {
  animation: bounce 1s ease-in-out;
}

.plugin-card:hover .version-badge {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Loading state animaties */
.loading-state {
  position: relative;
  overflow: hidden;
}

.loading-state::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Typewriter effect voor titel */
.typewriter {
  overflow: hidden;
  border-right: 3px solid #667eea;
  white-space: nowrap;
  margin: 0 auto;
  animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Staggered animaties voor plugin lijst */
.plugin-card:nth-child(1) {
  animation-delay: 0.1s;
}

.plugin-card:nth-child(2) {
  animation-delay: 0.2s;
}

.plugin-card:nth-child(3) {
  animation-delay: 0.3s;
}

.plugin-card:nth-child(4) {
  animation-delay: 0.4s;
}

.plugin-card:nth-child(5) {
  animation-delay: 0.5s;
}

.plugin-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Micro-interacties */
.form-control:focus {
  animation: zoomIn 0.3s ease-out;
}

.modal.show .modal-dialog {
  animation: flipIn 0.6s ease-out;
}

/* Responsive animaties */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* add-plugin css */

.btn-container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#userButtons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

#userButtons>* {
  display: inline-flex;
  align-items: center;
}

#authButtons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

.button-creative {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1em 2em;
  background: linear-gradient(135deg, #011120 0%, #e9ecef 100%);
  color: rgb(24, 24, 24);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s;
  font-size: 1.2rem;
  border-radius: 8px;
  z-index: 1;
  gap: 0.5rem;
}

.button-creative::before {
  content: "";
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #011120 0%, #e9ecef 100%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.button-creative:hover::before {
  transform: translate(-50%, -50%) scale(1.2);
}

.button-creative:hover {
  color: #070808;
}

/* Sidebar (Server categories) */
.sidebar-card {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
  backdrop-filter: blur(8px);
}

.category-list {
  padding-left: 0;
  margin: 0;
}

.category-item {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  color: #495057;
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
  font-weight: 600;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-item + .category-item {
  margin-top: 0.4rem;
}

.category-item:hover {
  transform: translateX(6px);
  color: #ffffff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-item.active {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: #041418;
  box-shadow: 0 8px 18px rgba(67,233,123,0.12);
}

.server-info {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: calc(36px + 0.75rem); /* Align with text, considering icon width and gap */
    margin-top: -0.4rem;
    margin-bottom: 0.4rem;
}

.category-item:hover .server-info,
.category-item.active .server-info {
    color: #fff;
}

.category-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  object-fit: contain;
}

.category-text {
  display: inline-block;
}

.category-item .badge {
    transition: background-color 0.3s ease;
}

@media (max-width: 991px) {
  .sidebar-card {
    margin-bottom: 1rem;
  }
}
/* Loader badges */
.loader-badge {
  background: linear-gradient(135deg, #8A2BE2 0%, #DA70D6 100%); /* Purple gradient */
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(138, 43, 226, 0.25);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  animation: badgeAppear 0.5s ease-out;
  margin: 0.3rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, box-shadow, background;
}

.loader-badge:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 25px rgba(138, 43, 226, 0.5);
  background: linear-gradient(135deg, #9400D3 0%, #BA55D3 100%); /* Darker purple on hover */
}

/* Loader container */
.loaders-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
