/* TrustV RP Server - Custom Styles */

:root {
  --primary-color: #7c10ad;
  --secondary-color: #08d510;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --dark-color: #000000;
  --light-color: #f8f9fa;
}

/* Ticket Filter Button Group Fix */
.btn-group .btn {
  white-space: nowrap;
  flex: 1;
}

.btn-group {
  display: flex;
  width: 100%;
}

.btn-group .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

/* Responsive adjustments for button group */
@media (max-width: 768px) {
  .btn-group {
    flex-wrap: wrap;
  }

  .btn-group .btn {
    margin-bottom: 1px;
  }
}

/* Specific Ticket Filter Buttons */
.ticket-filter .btn-group .btn {
  font-size: 0.75rem !important;
  padding: 0.375rem 0.5rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ticket-filter .btn-group {
  display: flex !important;
  width: 100% !important;
  gap: 0 !important;
}

.ticket-filter .btn-group .btn:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-right: 0 !important;
}

.ticket-filter .btn-group .btn:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  margin-left: -1px !important;
}

/* Mobile adjustments for ticket filter buttons */
@media (max-width: 768px) {
  .ticket-filter .btn-group {
    flex-wrap: wrap !important;
    gap: 1px !important;
  }

  .ticket-filter .btn-group .btn {
    margin-bottom: 1px !important;
    margin-left: 0 !important;
    flex: 1 1 calc(33.333% - 1px) !important;
  }
}

/* Ticket Form Display Fix */
#ticketForm {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  padding: 1rem !important;
  margin: 1rem 0 !important;
}

#ticketForm.card {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

#ticketForm .card-body {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* Frontend ticket form fix */
.ticket-form-container {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.ticket-form-container .card {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.ticket-form-container .card-body {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  padding: 1.5rem !important;
}

/* Frontend ticket form display fix */
#ticketForm {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  padding: 1rem !important;
  margin: 1rem 0 !important;
  display: none !important;
  transition: none !important;
}

#ticketForm.show {
  display: block !important;
}

/* Ticket Badge in Navigation */
.nav-link .badge {
  font-size: 0.65rem !important;
  padding: 0.25rem 0.4rem !important;
  border-radius: 50% !important;
  margin-left: 0.3rem !important;
  display: inline-block !important;
  position: relative !important;
  top: -2px !important;
  right: auto !important;
  transform: none !important;
  min-width: 1.3rem !important;
  height: 1.3rem !important;
  line-height: 0.8rem !important;
  text-align: center !important;
  font-weight: bold !important;
  z-index: 10 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.nav-link .badge.bg-danger {
  background-color: #dc3545 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 6px rgba(220, 53, 69, 0.8) !important;
  animation: pulse 2s infinite !important;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Force badge visibility on dark theme */
.navbar-dark .nav-link .badge {
  background-color: #dc3545 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Additional visibility fixes */
.nav-link-custom .badge {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ticket Message Display */
.ticket-message {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 1rem !important;
}

.ticket-message p,
.ticket-message div {
  color: #ffffff !important;
}

/* Ticket Replies */
.ticket-reply {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  padding: 0.75rem !important;
}

.ticket-reply p,
.ticket-reply div {
  color: #ffffff !important;
}

/* Admin replies styling */
.ticket-reply.admin-reply {
  background-color: rgba(124, 16, 173, 0.2) !important;
  border-color: rgba(124, 16, 173, 0.3) !important;
}

/* Card backgrounds for ticket pages */
.card-body .bg-light {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
}

.card-body .bg-light p,
.card-body .bg-light div {
  color: #ffffff !important;
}

/* EINFACHES DROPDOWN - STANDARD VERSTECKT */
.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  right: 0;
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-menu.show {
  display: block !important;
}

body {
  font-family: "Roboto Condensed", sans-serif;
  background-color: #000000;
  color: #ffffff;
  background-image: url("../uploads/gta_img_1.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
  min-height: 100vh !important;
}

/* Second background layer */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../uploads/gta_img_2.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  opacity: 0.8 !important;
  pointer-events: none !important;
  z-index: -2 !important;
}

/* Purple/Green overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.6)
  ) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Alternative approach: Use main container for background */
.main-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

/* Force background on html element */
html {
  background-image: url("../uploads/gta_img_1.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

/* Fallback with gradient if images fail */
@supports not (background-image: url("../uploads/gta_img_1.png")) {
  body {
    background: linear-gradient(135deg, #000000, #1a1a1a) !important;
    background-image:
      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="100" fill="rgba(124,16,173,0.05)" transform="rotate(-45 50 50)">GTA</text></svg>'),
      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" fill="rgba(8,213,16,0.03)" transform="rotate(45 50 50)">RP</text></svg>') !important;
    background-size:
      200px 200px,
      150px 150px !important;
    background-position:
      0 0,
      50px 50px !important;
    background-attachment: fixed !important;
  }
}

/* GTA Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue", cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Modern Header Styles */
.bg-gradient {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95),
    rgba(124, 16, 173, 0.8)
  ) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-color);
}

.navbar-brand .brand-text {
  font-family: "Bebas Neue", cursive;
  font-size: 1.8rem;
  color: var(--primary-color) !important;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

.navbar-brand .text-primary {
  color: var(--secondary-color) !important;
}

.nav-link-custom {
  color: #ffffff !important;
  padding: 0.5rem 0.75rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.notification-badge {
  font-size: 0.6rem;
  padding: 0.2rem 0.4rem;
  border-radius: 50%;
  margin-left: 0.25rem;
  display: inline-block !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
}

.nav-link-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 16, 173, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.nav-link-custom:hover::before {
  left: 100%;
}

.nav-link-custom:hover {
  color: var(--primary-color) !important;
  background: rgba(124, 16, 173, 0.1);
  transform: translateY(-2px);
}

.nav-link-custom.active {
  color: var(--primary-color) !important;
  background: rgba(124, 16, 173, 0.2);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(124, 16, 173, 0.3);
}

/* Working User Dropdown Styles */
.user-dropdown-toggle {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(124, 16, 173, 0.1);
  border: 1px solid rgba(124, 16, 173, 0.3);
  transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
  background: rgba(124, 16, 173, 0.2);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 16, 173, 0.3);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.dropdown-modern {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(124, 16, 173, 0.4);
  padding: 1rem;
  min-width: 280px;
  margin-top: 5px;
}

.dropdown-modern .dropdown-header {
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.2),
    rgba(8, 213, 16, 0.1)
  );
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(124, 16, 173, 0.3);
}

.dropdown-modern .dropdown-item {
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 2px 0;
}

.dropdown-modern .dropdown-item:hover {
  background: rgba(124, 16, 173, 0.2);
  color: var(--primary-color);
  transform: translateX(5px);
}

.dropdown-modern .dropdown-item.text-danger:hover {
  background: rgba(220, 53, 69, 0.2);
  color: var(--danger-color);
}

.dropdown-modern .dropdown-divider {
  border-color: rgba(124, 16, 173, 0.3);
  margin: 0.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-nav {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(124, 16, 173, 0.3);
  }

  .user-dropdown-toggle {
    justify-content: center;
    margin: 0 auto;
  }

  .dropdown-modern {
    margin: 0 auto;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand .brand-text {
    font-size: 1.4rem;
  }

  .nav-link-custom {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Hero Section */
.hero-section {
  background:
    linear-gradient(135deg, rgba(124, 16, 173, 0.8), rgba(8, 213, 16, 0.6)),
    url("../uploads/gta_img_1.png") !important;
  background-size: cover !important;
  background-position: center !important;
  color: white;
  padding: 20px 0 !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  margin: 20px 0;
  width: 100%;
  max-width: none;
}

/* Fallback for browsers that can't load images */
@supports not (background-image: url("../uploads/gta_img_1.png")) {
  .hero-section {
    background: linear-gradient(
      135deg,
      rgba(124, 16, 173, 0.8),
      rgba(8, 213, 16, 0.6)
    ) !important;
  }
}

.hero-section h1 {
  font-size: 2rem !important;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
}

.hero-section p {
  font-size: 0.95rem !important;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
}

.hero-section img {
  width: 80px !important;
  height: 80px !important;
  margin-bottom: 0.5rem !important;
  filter: drop-shadow(0 0 15px rgba(124, 16, 173, 0.8));
  border-radius: 10px;
}

/* Hero Section Buttons - 30% smaller */
.hero-section .btn-lg {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.9rem !important;
  border-radius: 0.375rem !important;
  position: relative;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(124, 16, 173, 0.1) 10px,
    rgba(124, 16, 173, 0.1) 20px
  );
  animation: stripes 20s linear infinite;
}

@keyframes stripes {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50px);
  }
}

/* Faction Cards */
.faction-card {
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}

.faction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 16, 173, 0.4);
  border-color: var(--secondary-color);
}

.faction-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.faction-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Card Styles */
.card {
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(124, 16, 173, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  backdrop-filter: blur(5px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 16, 173, 0.4);
  border-color: var(--secondary-color);
}

.card-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  border-radius: 13px 13px 0 0;
  backdrop-filter: blur(3px);
}

/* Button Styles */
.btn {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  padding: 0.75rem 2rem !important;
  font-size: 1rem !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(3px);
}

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

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  ) !important;
  border: 2px solid var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 0 rgba(124, 16, 173, 0.3);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(124, 16, 173, 0.4);
  border-color: var(--secondary-color) !important;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  ) !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #1e7e34) !important;
  border: 2px solid var(--success-color) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 0 rgba(40, 167, 69, 0.3);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(40, 167, 69, 0.4);
  border-color: #1e7e34 !important;
  background: linear-gradient(135deg, #1e7e34, var(--success-color)) !important;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #8b0000) !important;
  border: 2px solid var(--danger-color) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 0 rgba(220, 53, 69, 0.3);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(220, 53, 69, 0.4);
  border-color: #8b0000 !important;
  background: linear-gradient(135deg, #8b0000, var(--danger-color)) !important;
}

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.25rem !important;
  border-radius: 10px !important;
}

/* Server Status */
.server-status {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(124, 16, 173, 0.3);
  backdrop-filter: blur(5px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.server-status.compact {
  padding: 15px;
  min-height: 160px;
}

.server-status.status-updated {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(124, 16, 173, 0.5);
  }
  100% {
    transform: scale(1);
  }
}

.status-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.server-status.compact .status-indicator {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.status-indicator.online {
  background-color: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
  animation: blink-green 2s infinite;
}

.status-indicator.offline {
  background-color: #dc3545;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

@keyframes blink-green {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.server-status.online {
  border-color: var(--secondary-color);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

.server-status.offline {
  border-color: var(--danger-color);
  background: linear-gradient(
    135deg,
    var(--danger-color),
    var(--primary-color)
  );
}

/* Resources Grid - Design konform */
.resources-grid {
  max-height: 400px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 1rem;
  border: 1px solid rgba(124, 16, 173, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 6-Spalten Layout */
.resource-column {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

/* Text shadows for background integration */
section.py-5:not(.bg-light):not(.bg-dark) h2,
section.py-5:not(.bg-light):not(.bg-dark) .lead {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

section.py-5:not(.bg-light):not(.bg-dark) h2 {
  font-weight: 700;
}

section.py-5:not(.bg-light):not(.bg-dark) .lead {
  color: #f8f9fa;
}

/* Features section text shadows */
section.py-5:nth-of-type(3) h2,
section.py-5:nth-of-type(3) .lead {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

section.py-5:nth-of-type(3) h2 {
  font-weight: 700;
}

section.py-5:nth-of-type(3) .lead {
  color: #f8f9fa;
}

.resource-item {
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.1),
    rgba(8, 213, 16, 0.1)
  );
  border: 1px solid rgba(124, 16, 173, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.resource-item:hover {
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.2),
    rgba(8, 213, 16, 0.1)
  );
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 16, 173, 0.3);
}

.resource-item .fw-bold {
  color: #ffffff;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.resource-item .small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.resource-item .badge {
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, var(--secondary-color), #28a745);
  border: none;
}

.resource-item i.fa-check-circle {
  color: var(--secondary-color);
  font-size: 1rem;
  filter: drop-shadow(0 0 4px rgba(8, 213, 16, 0.5));
}

/* Custom scrollbar for resources grid - GTA Style */
.resources-grid::-webkit-scrollbar {
  width: 10px;
}

.resources-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

.resources-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.resources-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

.resources-grid::-webkit-scrollbar-thumb:active {
  background: var(--secondary-color);
}

/* Feature Cards - GTA Theme */
.feature-card {
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.2),
    rgba(8, 213, 16, 0.1)
  );
  border: 1px solid rgba(124, 16, 173, 0.4);
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(124, 16, 173, 0.4);
  border-color: var(--primary-color);
}

.feature-card .card-body {
  padding: 1.5rem;
}

.feature-card .fa-2x {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Form Styles */
.form-control {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--primary-color);
  color: #ffffff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(8, 213, 16, 0.3);
  color: #ffffff;
}

.form-control::placeholder {
  color: #999999;
}

/* Table Styles */
.table {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border: 2px solid var(--primary-color);
}

.table thead {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #ffffff;
}

.table tbody tr:hover {
  background: rgba(124, 16, 173, 0.1);
}

/* Alert Styles */
.alert {
  border: 2px solid var(--primary-color);
  border-radius: 10px;
}

.alert-success {
  background: rgba(40, 167, 69, 0.2);
  border-color: var(--success-color);
  color: #ffffff;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.2);
  border-color: var(--danger-color);
  color: #ffffff;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.2);
  border-color: var(--warning-color);
  color: #ffffff;
}

/* Badge Styles */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
}

.badge-primary {
  background: var(--primary-color);
  color: #ffffff;
}

.badge-success {
  background: var(--success-color);
  color: #ffffff;
}

.badge-danger {
  background: var(--danger-color);
  color: #ffffff;
}

.badge-warning {
  background: var(--warning-color);
  color: #000000;
}

/* Status Indicator */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
}

.status-indicator.online {
  background: var(--success-color);
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
  animation: pulse 2s infinite;
}

.status-indicator.offline {
  background: var(--danger-color);
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.95),
    rgba(75, 0, 130, 0.95)
  );
  color: #ffffff;
  padding: 1.5rem;
  z-index: 1050;
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.cookie-banner-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.cookie-category {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.cookie-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-banner-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner-buttons .btn {
    width: 100%;
  }
}

/* ========== MEMBERS PAGE STYLES ========== */
/* Members Page - Akten-Layout Styles */
.members-member-card {
  background: linear-gradient(135deg, #f5f5dc, #e8e4d0);
  border: 2px solid #8b7355;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  max-width: 100%;
  margin: 0 auto;
}

.members-member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(139, 115, 85, 0.03) 20px,
      rgba(139, 115, 85, 0.03) 21px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(139, 115, 85, 0.03) 20px,
      rgba(139, 115, 85, 0.03) 21px
    );
  pointer-events: none;
}

.members-file-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
}

.members-file-left-column {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.members-file-right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.members-file-sections-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.members-avatar-container {
  position: relative;
  display: inline-block;
}

.members-passport-photo {
  width: 100px;
  height: 125px;
  object-fit: cover;
  border: 3px solid #8b7355;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.members-default-avatar {
  width: 100px;
  height: 125px;
  background: #8b7355;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 3px solid #8b7355;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.members-paperclip {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 25px;
  height: 25px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}

.members-paperclip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.members-file-header {
  background: #8b7355;
  color: #fff;
  padding: 12px;
  margin: 10px 0;
  text-align: center;
  border-bottom: 2px solid #6b5d4f;
  width: 100%;
}

.members-file-title {
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.members-file-subtitle {
  font-family: "Courier New", monospace;
  font-size: 10px;
  opacity: 0.8;
}

.members-file-section {
  margin-bottom: 15px;
  border-bottom: 1px dashed #8b7355;
  padding-bottom: 10px;
}

.members-file-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.members-file-section-title {
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  color: #8b7355;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.members-file-content {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #333;
}

.members-file-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 2px 0;
}

.members-file-label {
  font-weight: bold;
  color: #8b7355;
  min-width: 80px;
}

.members-file-value {
  flex: 1;
  text-align: right;
}

.members-status-badge {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}

.members-status-badge.online {
  background: #28a745;
  color: #fff;
}

.members-status-badge.offline {
  background: #6c757d;
  color: #fff;
}

.members-license-badge {
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 1px;
}

.members-license-badge.granted {
  background: #28a745;
  color: #fff;
}

.members-license-badge.none {
  background: #6c757d;
  color: #fff;
}

.members-license-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8b7355;
  background: #f4f1ea;
  color: #8b7355;
  margin: 1px;
}

.members-license-icon svg {
  width: 12px;
  height: 12px;
  fill: #8b7355;
}

.members-license-icon.granted {
  background: #8b7355;
  color: #fff;
}

.members-license-icon.granted svg {
  fill: #fff;
}

.members-license-display {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
}

.members-bio-text {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

.members-faction-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.members-faction-icon {
  flex-shrink: 0;
}

.members-faction-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #8b7355;
  background: #fff;
  object-fit: cover;
}

.members-faction-details {
  flex: 1;
}

.members-phone-number {
  color: #8b7355;
  font-weight: bold;
  font-family: "Courier New", monospace;
}

.members-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.members-page-header {
  text-align: center;
  margin-bottom: 30px;
}

.members-page-header h1 {
  font-family: "Courier New", monospace;
  color: #8b7355;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ========== TEAM PAGE STYLES ========== */
/* Team Page - Styles */
.team-avatar-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Rules Page Styles */
.rules-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.rules-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rules-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.rules-header p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  color: var(--dark-color);
}

/* Profile Page Styles */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(124, 16, 173, 0.3);
  border: 3px solid rgba(124, 16, 173, 0.5);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(124, 16, 173, 0.5);
}

.stat-item {
  padding: 0.5rem 0;
}

.stat-item .h6 {
  color: var(--primary-color);
  font-weight: 600;
}

.section {
  padding: 1.5rem;
  background: rgba(248, 249, 250, 0.1);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(124, 16, 173, 0.2);
}

.section-title {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Profile Form Styles */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(124, 16, 173, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(124, 16, 173, 0.25);
}

/* Member Cards - Sammelkachel mit 3 horizontalen Scheckkarten */
.member-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.member-card {
  width: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 15px;
  border: 2px solid var(--primary-color);
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 16, 173, 0.4);
  border-color: var(--secondary-color);
}

/* Container für 3 horizontale Scheckkarten */
.card-inner-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  height: 100%;
  align-items: stretch;
}

/* Einzelne horizontale Scheckkarten - Liegendes Format */
.inner-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  aspect-ratio: 1.586; /* 85.6mm / 54mm = 1.586 */
  min-height: 100px;
  max-height: 120px;
}

.inner-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Card Types mit Grafik-Hintergründen */
.inner-card.base-card {
  background:
    linear-gradient(135deg, rgba(124, 16, 173, 0.1), rgba(124, 16, 173, 0.2)),
    url("../uploads/id-card-bg_1.png") center/cover no-repeat;
  border-color: rgba(124, 16, 173, 0.3);
}

.inner-card.driving-card {
  background:
    linear-gradient(135deg, rgba(8, 213, 16, 0.1), rgba(8, 213, 16, 0.2)),
    url("../uploads/driving-card-bg_1.png") center/cover no-repeat;
  border-color: rgba(8, 213, 16, 0.3);
}

.inner-card.weapon-card {
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.2)),
    url("../uploads/weapon-card-bg_1.png") center/cover no-repeat;
  border-color: rgba(255, 107, 107, 0.3);
}

/* Empty Card mit Overlay */
.inner-card.empty-card {
  background:
    rgba(255, 255, 255, 0.02),
    url("../uploads/empty-card-overlay_1.png") center/cover no-repeat;
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.5;
}

/* Card Avatar - Passbild-Format mit angepasster Position */
.inner-card .card-avatar {
  width: 40px;
  height: 52px;
  border-radius: 4px;
  background: #2c2c2c; /* Dunkler Hintergrund statt Gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  border: 2px solid #000000; /* Schwarzer Rahmen */
  overflow: hidden;
  flex-shrink: 0;
  position: absolute;
  left: 8px;
  top: 32%;
  transform: translateY(-50%);
}

/* Waffenschein-Avatar spezielle Position */
.inner-card.weapon-card .card-avatar {
  top: 42%; /* 2px hoch von 44% */
  width: 41px; /* +1% von 40px */
  height: 53px; /* +1% von 52px */
}

.inner-card .card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* Card Info - Angepasste Position für Grafiken */
.inner-card .card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 48px;
  margin-right: 35px;
  height: 100%;
  position: relative;
}

.inner-card.base-card .card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 28px; /* 3px höher von 31px */
  left: 0px;
  margin-bottom: 11px; /* 3px mehr Abstand */
}

.inner-card.base-card .card-subtitle {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 57px; /* 8px tiefer von 46px wegen Abstand */
  left: 0px;
}

.inner-card.base-card .card-phone {
  font-size: 0.6rem;
  color: var(--secondary-color);
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  bottom: -10px; /* 10px runter von 0px */
  left: -5px; /* 5px links */
  white-space: nowrap; /* Kein Zeilenumbruch */
  overflow: visible; /* Nicht abschneiden */
  text-overflow: ellipsis;
  max-width: 120%; /* Mehr Platz */
  width: auto;
}

.inner-card .card-phone::before {
  content: "📞";
  font-size: 0.7rem;
  color: var(--secondary-color);
}

.inner-card .card-subtitle {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.inner-card .card-phone {
  font-size: 0.6rem;
  color: var(--secondary-color);
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.inner-card .card-phone::before {
  content: "📞";
  font-size: 0.7rem;
  color: var(--secondary-color);
}

/* License Icons - Angepasste Position */
.inner-card .license-icons {
  display: flex;
  gap: 3px;
  margin-top: 99px; /* 1px hoch von 100px */
  margin-left: -15px; /* 10px links von -5px */
  flex-wrap: nowrap; /* Kein Zeilenumbruch */
  justify-content: flex-start;
  width: auto; /* Automatische Breite */
  max-width: none; /* Keine Begrenzung */
}

.inner-card .license-icon {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4); /* Hellerer Hintergrund */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6); /* Hellerer Text */
  font-size: 0.6rem;
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.5); /* Dickerer Rahmen */
}

.inner-card .license-icon.active {
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 2px 6px rgba(8, 213, 16, 0.6); /* Stärkerer Schatten */
  border-color: var(--secondary-color);
}

.inner-card .license-icon svg {
  width: 10px; /* Größere SVG */
  height: 10px; /* Größere SVG */
  fill: currentColor;
}

/* Driving Card spezielle Anpassungen */
.inner-card.driving-card .card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 30px; /* 10px hoch von 40px */
  left: 0px;
}

/* Weapon License - Angepasste Position */
.inner-card .weapon-license-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px; /* Abstand zum Namen */
}

.inner-card .weapon-license-text {
  color: #ff6b6b;
  font-weight: 500;
  font-size: 0.6rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Weapon Card spezielle Anpassungen */
.inner-card.weapon-card .card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 32px; /* 3px hoch von 35px */
  left: 0px;
}

/* Card Badge - Angepasste Position */
.inner-card .card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.inner-card.base-card .card-badge {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.inner-card.driving-card .card-badge {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.inner-card.weapon-card .card-badge {
  background: #ff6b6b;
  border-color: #ff6b6b;
}

/* Status Overlay für nicht aktive Benutzer */
.status-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../uploads/not-available-card-bg_1.png") center/cover
    no-repeat;
  border-radius: 8px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 10;
}

/* Inactive Overlay für nicht aktive Benutzer */
.inactive-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../uploads/not-available-card-bg_1.png") center/cover
    no-repeat;
  border-radius: 8px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 10;
}

/* Empty Card Placeholder mit Overlay */
.inner-card.empty-card {
  background:
    rgba(255, 255, 255, 0.02),
    url("../uploads/not-available-card-bg_1.png") center/cover no-repeat;
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.5;
}

.inner-card.empty-card .empty-content {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.55rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* News Cards Styles */
.news-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 16, 173, 0.3);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 16, 173, 0.4);
  border-color: rgba(124, 16, 173, 0.5);
}

.news-card .card-header {
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.3),
    rgba(8, 213, 16, 0.2)
  );
  border-bottom: 1px solid rgba(124, 16, 173, 0.4);
  padding: 8px 12px;
}

.news-card .card-body {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.news-card .card-footer {
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.2),
    rgba(8, 213, 16, 0.1)
  );
  border-top: 1px solid rgba(124, 16, 173, 0.3);
  padding: 8px 12px;
}

.news-card .badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.news-card .card-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.news-card .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.8rem;
}

.news-card .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(124, 16, 173, 0.4);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

/* Custom News Read More Button */
.news-card .btn-news-read-more {
  background: rgba(124, 16, 173, 0.2);
  border: 1px solid rgba(124, 16, 173, 0.4);
  color: #ffffff;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 400;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.news-card .btn-news-read-more:hover {
  background: rgba(124, 16, 173, 0.4);
  border-color: rgba(124, 16, 173, 0.6);
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.news-card .btn-news-read-more i {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.news-card .btn-news-read-more:hover i {
  transform: translateX(2px);
}

.news-card .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ===== NEWS OVERVIEW SPECIFIC STYLES ===== */
/* Different from homepage news cards */

.news-overview-hero {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
    url("../uploads/gta_img_1.png") center/cover;
  background-attachment: fixed;
  padding: 60px 0;
  position: relative;
  border-bottom: 3px solid var(--primary-color);
  margin-bottom: 0;
}

.news-overview-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.7),
    rgba(8, 213, 16, 0.5)
  );
  z-index: 1;
}

.news-overview-hero .container {
  position: relative;
  z-index: 2;
}

.news-overview-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
}

.news-overview-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.news-overview-stats {
  display: flex;
  gap: 30px;
  justify-content: flex-end;
}

.news-stat-item {
  text-align: center;
}

.news-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.news-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-overview-content {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 0 0 15px 15px;
  margin-top: -15px;
  padding: 30px 0;
  position: relative;
  z-index: 10;
}

.news-overview-search {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(124, 16, 173, 0.3);
}

.news-search-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.news-search-header {
  background: rgba(124, 16, 173, 0.2);
  border-bottom: 1px solid rgba(124, 16, 173, 0.3);
  border-radius: 8px 8px 0 0;
  padding: 15px 20px;
}

.news-search-title {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
}

.news-search-body {
  background: transparent;
  padding: 20px;
}

.news-search-form {
  margin: 0;
}

.news-search-row {
  display: flex;
  gap: 15px;
  align-items: end;
}

.news-search-col {
  flex: 1;
}

.news-search-col:last-child {
  flex: 0 0 auto;
}

.news-search-input,
.news-search-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border-radius: 5px;
  font-size: 0.9rem;
}

.news-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.news-search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-search-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.news-overview-categories {
  margin-bottom: 30px;
}

.news-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
}

.news-category-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.news-category-pill.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* News Overview Grid - Different from Homepage */
.news-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.news-overview-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(124, 16, 173, 0.4);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-overview-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(124, 16, 173, 0.5);
  border-color: rgba(124, 16, 173, 0.6);
}

.news-overview-card-header {
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.4),
    rgba(8, 213, 16, 0.3)
  );
  border-bottom: 1px solid rgba(124, 16, 173, 0.5);
  padding: 16px 20px;
}

.news-overview-card-body {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-overview-card-footer {
  background: linear-gradient(
    135deg,
    rgba(124, 16, 173, 0.3),
    rgba(8, 213, 16, 0.2)
  );
  border-top: 1px solid rgba(124, 16, 173, 0.4);
  padding: 16px 20px;
  margin-top: auto;
}

.news-overview-badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.news-overview-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.news-overview-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  flex: 1;
}

.news-overview-meta {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
}

.news-overview-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-overview-btn:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 16, 173, 0.4);
  color: white;
  text-decoration: none;
}

.news-overview-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.news-overview-btn:hover i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .news-overview-hero {
    padding: 40px 0;
  }

  .news-overview-title {
    font-size: 2rem;
  }

  .news-overview-stats {
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  .news-overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-overview-search {
    padding: 15px;
  }

  .news-search-row {
    flex-direction: column;
    gap: 10px;
  }

  .news-search-col {
    width: 100%;
  }

  .news-search-col:last-child {
    flex: 1;
  }

  .news-overview-card-header,
  .news-overview-card-body,
  .news-overview-card-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .news-overview-title {
    font-size: 1.1rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .member-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px 0;
  }

  .member-card {
    min-height: 160px;
    padding: 15px;
  }

  .card-inner-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .inner-card {
    padding: 12px;
    min-height: 90px;
    max-height: 110px;
  }

  .inner-card .card-avatar {
    width: 30px;
    height: 40px;
    font-size: 0.9rem;
    border-radius: 3px;
    left: 12px;
  }

  .inner-card .card-name {
    font-size: 0.8rem;
  }

  .inner-card .card-subtitle {
    font-size: 0.6rem;
  }

  .inner-card .license-icon {
    width: 14px;
    height: 14px;
    font-size: 0.5rem;
  }

  .inner-card .license-icon svg {
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 480px) {
  .member-card {
    min-height: 140px;
    padding: 12px;
  }

  .card-inner-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .inner-card {
    padding: 10px;
    min-height: 80px;
    max-height: 100px;
  }

  .inner-card .card-avatar {
    width: 25px;
    height: 35px;
    font-size: 0.8rem;
    border-radius: 2px;
    left: 10px;
  }

  .inner-card .card-info {
    margin-left: 50px;
    margin-right: 35px;
  }

  .inner-card .card-name {
    font-size: 0.7rem;
  }

  .inner-card .card-subtitle {
    font-size: 0.55rem;
  }

  .inner-card .card-phone {
    font-size: 0.5rem;
  }

  .inner-card .license-icons {
    gap: 2px;
  }

  .inner-card .license-icon {
    width: 12px;
    height: 12px;
    font-size: 0.4rem;
  }

  .inner-card .license-icon svg {
    width: 6px;
    height: 6px;
  }
}
@media (max-width: 768px) {
  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .section {
    padding: 1rem;
  }
}
.rules-container .rule-card .card-title {
  color: var(--admin-text-primary) !important;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rules-container .rule-card .card-text {
  color: var(--admin-text-primary) !important;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Category Filter Buttons - Admin Style */
.category-filters {
  margin-bottom: 2rem;
}

.category-filter {
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  background: #1e293b !important;
  color: var(--admin-text-primary) !important;
  border: 1px solid var(--admin-border) !important;
  border-left: 3px solid transparent !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  margin: 0.25rem;
  flex: 1;
  min-width: 0;
}

.category-filter:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
}

.category-filter.active {
  background: #007bff !important;
  color: white !important;
  border-color: #007bff !important;
  border-left-color: #007bff !important;
}

.category-filter.category-rp-regeln {
  border-left-color: #28a745 !important;
}
.category-filter.category-rp-regeln.active {
  border-left-color: #28a745 !important;
  background: #28a745 !important;
  border-color: #28a745 !important;
}

.category-filter.category-grundgesetz {
  border-left-color: #dc3545 !important;
}
.category-filter.category-grundgesetz.active {
  border-left-color: #dc3545 !important;
  background: #dc3545 !important;
  border-color: #dc3545 !important;
}

.category-filter.category-strafgesetz {
  border-left-color: #ffc107 !important;
}
.category-filter.category-strafgesetz.active {
  border-left-color: #ffc107 !important;
  background: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #000 !important;
}

.category-filter.category-prozessordnung {
  border-left-color: #17a2b8 !important;
}
.category-filter.category-prozessordnung.active {
  border-left-color: #17a2b8 !important;
  background: #17a2b8 !important;
  border-color: #17a2b8 !important;
}

.category-filter.category-strassenverkehrsordnung {
  border-left-color: #6f42c1 !important;
}
.category-filter.category-strassenverkehrsordnung.active {
  border-left-color: #6f42c1 !important;
  background: #6f42c1 !important;
  border-color: #6f42c1 !important;
}

.search-section {
  margin-bottom: 3rem;
}

.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 2rem;
  font-size: 1rem;
  width: 100%;
  outline: none;
  background: #1e293b !important;
  color: var(--admin-text-primary) !important;
  border-color: var(--admin-border) !important;
  height: auto;
  line-height: 1.2;
}

.search-box input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(8, 213, 16, 0.25);
}

.search-box i {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.875rem;
}

/* Rule Cards - Admin Style */
.rules-container .rule-card {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border-left: 4px solid #007bff !important;
  background: #1e293b !important;
  border-right: 1px solid transparent !important;
  border-top: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-clip: border-box;
  border-radius: 0.375rem;
  z-index: 1;
}

.rules-container .rule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.rules-container .rule-card.category-rp-regeln {
  border-left-color: #28a745 !important;
  background: #1e293b !important;
}
.rules-container .rule-card.category-grundgesetz {
  border-left-color: #dc3545 !important;
  background: #1e293b !important;
}
.rules-container .rule-card.category-strafgesetz {
  border-left-color: #ffc107 !important;
  background: #1e293b !important;
}
.rules-container .rule-card.category-prozessordnung {
  border-left-color: #17a2b8 !important;
  background: #1e293b !important;
}
.rules-container .rule-card.category-strassenverkehrsordnung {
  border-left-color: #6f42c1 !important;
  background: #1e293b !important;
}

.rules-container .rule-card .card-body,
.rules-container .rule-card .card-body * {
  background: #1e293b !important;
  color: var(--admin-text-primary) !important;
  position: relative;
  z-index: 2;
}

.rules-container .rule-card .card-title {
  color: #2c3e50;
}

.rules-container .rule-content-preview {
  color: var(--admin-text-primary) !important;
  line-height: 1.4;
  max-height: 3.6em;
  overflow: hidden;
  position: relative;
}

.rules-container .rule-content-preview:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.8em;
  background: linear-gradient(transparent, #1e293b);
}

.rules-container .category-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: #007bff;
  color: white;
}

.rules-container .category-badge.category-rp-regeln {
  background-color: #28a745;
}
.rules-container .category-badge.category-grundgesetz {
  background-color: #dc3545;
}
.rules-container .category-badge.category-strafgesetz {
  background-color: #ffc107;
  color: #000;
}
.rules-container .category-badge.category-prozessordnung {
  background-color: #17a2b8;
}
.rules-container .category-badge.category-strassenverkehrsordnung {
  background-color: #6f42c1;
}

/* Rule View Button - Custom Style */
.rules-container .rule-view-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 0.25rem;
  background: transparent !important;
  border: 1px solid rgba(0, 123, 255, 0.5) !important;
  color: rgba(0, 123, 255, 0.8) !important;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
}

.rules-container .rule-view-btn:hover {
  background: rgba(0, 123, 255, 0.1) !important;
  border-color: rgba(0, 123, 255, 0.8) !important;
  color: rgba(0, 123, 255, 1) !important;
  transform: translateY(-1px);
}

.rules-container .rule-view-btn i {
  font-size: 0.875rem;
  margin: 0;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--dark-color);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .rules-container {
    padding: 1rem;
  }

  .rules-header h1 {
    font-size: 2rem;
  }

  .category-filters .d-flex {
    flex-direction: column;
  }

  .category-filter {
    flex: none;
    margin: 0.25rem 0;
  }
}

/* ===================================
   TEAM PAGE STYLES
   =================================== */

/* Team Grid Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-member-card {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.9),
    rgba(40, 40, 50, 0.8)
  );
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
  height: 260px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.team-member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffa500, #ffd700);
  animation: gtaGlow 3s ease-in-out infinite;
}

.team-member-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
  background: linear-gradient(
    135deg,
    rgba(25, 25, 35, 0.95),
    rgba(50, 50, 60, 0.9)
  );
}

@keyframes gtaGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Avatar Styles */
.member-avatar {
  width: 96px;
  height: 128px;
  margin: 0 auto 15px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(40, 40, 50, 0.6)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
}

.member-avatar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
  pointer-events: none;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.1) saturate(1.2);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.9),
    rgba(40, 40, 50, 0.8)
  );
  color: #ffd700;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Member Info */
.member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-name {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-family: "Arial Black", "Arial", sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.member-main-role {
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-family: "Arial", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.member-main-role i {
  font-size: 0.8rem;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

/* Role Badges */
.member-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: auto;
}

.role-badge {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.2),
    rgba(255, 165, 0, 0.3)
  );
  color: #ffd700;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.54rem;
  font-weight: 600;
  border: 1px solid rgba(255, 215, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  font-family: "Arial", sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Team Info Text Styles */
.team-info-container {
  max-width: none;
  margin: 0;
  width: 100%;
}

.team-info-block {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px 25px;
  margin-bottom: 15px;
  text-align: left;
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-info-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.team-info-block:last-child {
  margin-bottom: 0;
}

/* Team Responsive Design */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
  }

  .team-member-card {
    height: 250px;
    padding: 12px;
  }

  .member-avatar {
    width: 80px;
    height: 107px;
  }

  .member-name {
    font-size: 0.77rem;
  }

  .member-main-role {
    font-size: 0.63rem;
    margin-bottom: 5px;
    gap: 2px;
  }

  .role-badge {
    font-size: 0.5rem;
    padding: 1px 4px;
  }

  .team-info-block {
    padding: 15px 20px;
    font-size: 1rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 400px;
  }

  .team-member-card {
    height: 230px;
    padding: 10px;
  }

  .member-avatar {
    width: 72px;
    height: 96px;
  }

  .member-name {
    font-size: 0.72rem;
  }

  .member-main-role {
    font-size: 0.58rem;
    margin-bottom: 4px;
    gap: 2px;
  }

  .role-badge {
    font-size: 0.45rem;
    padding: 1px 3px;
  }

  .team-info-block {
    padding: 12px 15px;
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
}

/* Frontend Factions Page Styles */
.faction-category-grid {
  display: flex;
  flex-wrap: wrap;
}

.faction-category-grid .col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 0.75rem;
}

.faction-category-grid .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.75rem;
}

@media (max-width: 767px) {
  .faction-category-grid .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .faction-category-grid .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
  }
}

@media (min-width: 992px) {
  .faction-category-grid .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.75rem;
  }
}

.faction-item {
  display: flex;
  flex-direction: column;
}

.faction-card {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  min-height: 280px !important;
  display: flex;
  flex-direction: column;
  height: 100% !important;
}

.faction-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem !important;
}

.faction-card .d-flex.align-items-start {
  flex-shrink: 0;
}

.faction-card .flex-grow-1 {
  flex: 1;
  min-width: 0;
}

.faction-card .faction-description {
  flex-shrink: 0;
}

.faction-card .faction-stats {
  flex-shrink: 0;
}

.faction-card .faction-badges {
  flex-shrink: 0;
}

.faction-card .faction-recruitment-notice {
  flex-shrink: 0;
}

.faction-card .d-flex.gap-2 {
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
}

/* Bootstrap Grid Fix */
.row {
  display: flex;
  flex-wrap: wrap;
}

.row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.row > [class*="col-lg-6"] {
  flex: 0 0 50%;
}

.row > [class*="col-xl-4"] {
  flex: 0 0 33.333333%;
}

@media (min-width: 992px) {
  .row > [class*="col-lg-6"] {
    flex: 0 0 50%;
  }

  .row > [class*="col-xl-4"] {
    flex: 0 0 33.333333%;
  }
}

.faction-card .faction-description {
  flex-shrink: 0;
}

.faction-card .faction-stats {
  flex-shrink: 0;
}

.faction-card .faction-badges {
  flex-shrink: 0;
}

.faction-card .faction-recruitment-notice {
  flex-shrink: 0;
}

.faction-card .d-flex.gap-2 {
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
}

.faction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.faction-card .faction-logo {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover !important;
  border-radius: 8px;
}

.faction-card .faction-logo.d-flex {
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Faction Card Layout Improvements */
.faction-card .faction-name {
  font-size: 1.3rem !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.faction-card .faction-category-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  display: inline-block;
  height: 24px;
  line-height: 14px;
  vertical-align: middle;
}

.faction-card .faction-status-badge-sm {
  font-size: 0.6rem !important;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  font-weight: 500;
  height: 24px;
  line-height: 14px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

.faction-card .faction-category {
  font-size: 0.75rem !important;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.faction-card .faction-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.faction-card .faction-stat {
  font-size: 0.7rem !important;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.faction-card .faction-description {
  font-size: 0.8rem !important;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.faction-card .faction-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.faction-card .faction-badge {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
}

/* Status and Recruitment Separation */
.faction-status-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.faction-status-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  text-align: center;
}

.faction-recruitment-notice {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  color: #ffc107;
  text-align: center;
}

.faction-takeover-notice {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  background: rgba(13, 202, 240, 0.2);
  border: 1px solid rgba(13, 202, 240, 0.3);
  border-radius: 8px;
  color: #0dcaf0;
  text-align: center;
}

/* Button Styles */
.faction-card .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  background: transparent !important;
  font-size: 0.75rem !important;
  padding: 0.25rem 0.5rem !important;
}

.faction-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}

.faction-card .btn-sm {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
}

/* Modal Styles */
.faction-detail-modal .modal-content {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.faction-detail-modal .modal-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.faction-detail-modal .modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
}

.faction-detail-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.faction-detail-modal .btn-close:hover {
  opacity: 1;
}

.faction-detail-modal .modal-body {
  background: #1a1a1a;
  padding: 1.5rem;
  color: #fff;
}

.faction-detail-modal .modal-footer {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 12px;
  padding: 1rem;
}

.faction-detail-modal .faction-logo-large {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.faction-detail-modal .faction-info-section {
  margin-bottom: 1.5rem;
}

.faction-detail-modal .faction-info-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faction-detail-modal .faction-info-content {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Modal positioning fix */
.faction-detail-modal {
  z-index: 1055;
}

.faction-detail-modal .modal-dialog {
  margin: 2rem auto;
  max-width: 600px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faction-card .faction-name {
    font-size: 1rem !important;
  }

  .faction-card .faction-category {
    font-size: 0.7rem !important;
  }

  .faction-card .faction-stat {
    font-size: 0.65rem !important;
  }

  .faction-detail-modal .modal-dialog {
    margin: 1rem;
    max-width: none;
  }
}
