@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  /* Modern color scheme */
  --accent: #e53935;
  --accent-hover: #f44336;
  --accent-active: #d32f2f;
  --navBarButtonHover: rgb(0, 0, 0);
  --textColor: #ffffff;
  --textColor2: #b0b0b0;
  --mainColor: rgba(31, 31, 31, 0.95);
  --contentColor: rgba(24, 24, 24, 1);
  --contentColor2: rgba(24, 24, 24, 0.8);
  --tableHover: rgba(17, 17, 17, 0.8);
  --inputBorder: rgba(255, 255, 255, 0.2);
  --notifsucces: #4CAF50;
  --notifechec: #FF5252;
  --scrollbar: #444444;
  --scrollbar-thumb: #686868;

  /* UI Elements */
  --borderRadius: 0.5rem;
  --boxShadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --cardShadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --fonsSize: 1rem;

  /* Glow Effects */
  --glow-accent: 0 0 15px rgba(229, 57, 53, 0.5);
  --glow-text: 0 0 5px rgba(255, 255, 255, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5;
  user-select: none;
  font-family: 'Montserrat', sans-serif;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  background: linear-gradient(217deg, rgba(15, 15, 15, 0.9), rgba(25, 25, 25, 0.9)),
    url('img/bg-texture.png');
  background-size: cover;
  color: var(--textColor);
  overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

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

  50% {
    transform: scale(1.02);
  }

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

@keyframes glowBorder {
  0% {
    box-shadow: 0 0 5px var(--accent);
  }

  50% {
    box-shadow: 0 0 15px var(--accent);
  }

  100% {
    box-shadow: 0 0 5px var(--accent);
  }
}

@keyframes spring {
  15% {
    transform: scale(1.1);
  }

  40% {
    transform: scale(0.95);
  }

  75% {
    transform: scale(1.05);
  }

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

.container {
  animation: fadeIn 0.5s ease-out;
}

h2 {
  font-size: 1.65vw;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2vw;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Top Bar Styling */
.topbar {
  margin-top: 2vh;
  margin-left: 2vh;
  width: 45vw;
  animation: slideInUp 0.5s ease-out;
}

.NVDtitle {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 38.1vw;
}

#neverdie {
  color: var(--accent);
  padding-left: var(--borderRadius);
  border-bottom: 0.5vh solid white;
  position: relative;
  transition: var(--transition);
}

#crewTexte {
  padding-right: var(--borderRadius);
  border-bottom: 0.5vh solid white;
}

#crewname {
  margin-top: var(--borderRadius);
  padding-left: 0.4vw;
  border-left: 0.42vw solid var(--accent);
}

#CrewRankTitle {
  margin-left: auto;
  margin-top: 0.3vw;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
  padding: 0.2vw 0.6vw;
  border-radius: var(--borderRadius);
  transition: var(--transition);
}

/* Leaderboard Section */
.LeaderTitle {
  background-color: var(--contentColor);
  color: white;
  text-align: center;
  padding: 1vh;
  border-top-left-radius: var(--borderRadius);
  border-top-right-radius: var(--borderRadius);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--boxShadow);
}

.Leaderboard {
  width: 40vw;
  height: 80vh;
  margin-top: 2vh;
  margin-left: 2vh;
  background-color: var(--mainColor);
  overflow-y: scroll;
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
  border-radius: var(--borderRadius);
  box-shadow: var(--boxShadow);
  animation: slideInUp 0.6s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
  scroll-behavior: smooth;
}

.Leaderboard::-webkit-scrollbar {
  width: 8px;
  background-color: var(--contentColor);
}

.Leaderboard::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 10px;
}

.Leaderboard::-webkit-scrollbar-track {
  background-color: var(--scrollbar);
  border-radius: 10px;
}

/* Tables */
.custom-table {
  table-layout: fixed;
  border-collapse: collapse;
}

.LeaderBoardTableTitle {
  text-align: left;
  position: sticky;
  top: 0;
  background-color: var(--contentColor);
  z-index: 5;
}

.LeaderBoardTableContent {
  text-align: center;
}

.LeaderBoardTableContent tr {
  transition: var(--transition);
}

.LeaderBoardTableContent tr:hover {
  background-color: var(--tableHover);
  transform: translateX(5px);
  cursor: pointer;
}

.LeaderBoardTableContent td:nth-child(2) {
  max-width: 6vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-table th,
.custom-table td {
  padding: 12px;
  text-align: center;
}

.custom-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-table th:first-child {
  text-align: center;
  vertical-align: middle;
  width: 2.5vw;
}

.custom-table td:first-child {
  vertical-align: middle;
}

.custom-table th:nth-child(2),
.custom-table td:nth-child(2) {
  width: 20vw;
}

.custom-table th:nth-child(3),
.custom-table td:nth-child(3),
.custom-table th:nth-child(4),
.custom-table td:nth-child(4) {
  width: 10vw;
}

.custom-table thead th {
  background-color: var(--contentColor);
  color: var(--textColor);
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 15px 12px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.custom-table tbody tr {
  background-color: var(--mainColor);
  color: var(--textColor2);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table tbody tr:hover {
  background-color: var(--tableHover);
  color: var(--textColor);
  transform: translateX(5px);
  cursor: pointer;
}

.custom-table tbody tr:active {
  transform: translateX(8px);
}

.Content {
  display: flex;
  gap: 18vw;
}

/* Right Content */
.right-content {
  margin-top: -9vh;
  width: 45vw;
  height: 91vh;
}

/* No Crew Panel */
.nocrewpanel {
  margin-top: 35%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.8s ease-out;
}

.Nvdcrewpanel {
  background-color: var(--mainColor);
  width: 35vw;
  height: 35vh;
  border-radius: var(--borderRadius);
  box-shadow: var(--boxShadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.8s ease-out;
}

/* Navigation */
.navbar-ul {
  display: flex;
  width: 100%;
  margin: auto;
  justify-content: space-between;
  text-align: center;
  background-color: var(--contentColor);
  list-style: none;
  border-top-left-radius: var(--borderRadius);
  border-top-right-radius: var(--borderRadius);
}

.navbar-li {
  padding: 1rem 2rem 1.15rem;
  text-transform: uppercase;
  cursor: pointer;
  color: #ebebeb;
  min-width: 80px;
  margin: auto;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.navbar-li:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.navbar-li:hover:before {
  left: 100%;
}

.navbar-li:hover {
  color: var(--accent);
  background-color: rgba(0, 0, 0, 0.2);
  font-weight: bold;
  animation: spring 300ms ease-out;
  letter-spacing: 1px;
}

.navbar-li:active {
  transform: translateY(4px);
}

/* Crew Creation */
.CrewCreation {
  margin-top: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.5s ease-out;
}

.CrewCreation input[type="text"] {
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  background-color: var(--contentColor2);
  color: var(--textColor);
  width: 30vw;
  font-size: var(--fonsSize);
  border-radius: var(--borderRadius);
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--inputBorder);
}

.CrewCreation input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.3);
}

.CrewCreation input[type="text"]::placeholder {
  color: var(--textColor2);
}

.CrewCreation button {
  padding: 12px 25px;
  margin-top: 2vh;
  border: none;
  background-color: var(--accent);
  color: var(--textColor);
  font-size: var(--fonsSize);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--borderRadius);
  transition: var(--transition);
  box-shadow: var(--boxShadow);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.CrewCreation button: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: 0.5s;
}

.CrewCreation button:hover:before {
  left: 100%;
}

.CrewCreation button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.CrewCreation button:active {
  background-color: var(--accent-active);
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Crew Invitation */
.CrewInvitation {
  background-color: var(--contentColor);
  padding: 0.2vw;
  height: 30vh;
  text-align: start;
  color: #fff;
  animation: slideInUp 0.5s ease-out;
}

.CrewInvitation h3 {
  font-size: 20px;
  margin-bottom: 15px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.invitationList {
  list-style: none;
  background-color: var(--mainColor);
  padding: 0;
  height: 29vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

.invitationList::-webkit-scrollbar {
  width: 8px;
  background-color: var(--contentColor);
}

.invitationList::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 10px;
}

.invitationList::-webkit-scrollbar-track {
  background-color: var(--scrollbar);
  border-radius: 10px;
}

.invitationItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  transition: var(--transition);
}

.invitationItem:hover {
  background-color: var(--tableHover);
  transform: translateX(5px);
}

.crewName {
  margin-left: 10px;
  font-size: 1.1vw;
}

.buttonContainer {
  display: flex;
  gap: 10px;
}

/* Button Styles */
.declineButton,
.acceptButton {
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  color: #fff;
  border-radius: var(--borderRadius);
  outline: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.declineButton:before,
.acceptButton: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: 0.5s;
}

.declineButton:hover:before,
.acceptButton:hover:before {
  left: 100%;
}

.acceptButton {
  background: var(--notifsucces);
  box-shadow: 0 4px 0 0 rgba(46, 166, 46, 0.7);
}

.acceptButton:hover {
  background: #66BB6A;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(46, 166, 46, 0.7);
}

.acceptButton:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(46, 166, 46, 0.7);
}

.declineButton {
  background: var(--notifechec);
  box-shadow: 0 4px 0 0 rgba(203, 73, 73, 0.7);
}

.declineButton:hover {
  background: #FF7373;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(203, 73, 73, 0.7);
}

.declineButton:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(203, 73, 73, 0.7);
}

/* Notifications */
#crewSuccessnotification,
#crewEchecnotification {
  font-size: 1.2vw;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: var(--borderRadius);
  animation: fadeIn 0.3s ease-out;
  box-shadow: var(--boxShadow);
}

#crewSuccessnotification {
  color: white;
  background-color: rgba(76, 175, 80, 0.9);
  border-left: 4px solid var(--notifsucces);
}

#crewEchecnotification {
  color: white;
  background-color: rgba(255, 82, 82, 0.9);
  border-left: 4px solid var(--notifechec);
}

/* Search Input */
.search-container {
  padding: 10px;
  background-color: var(--contentColor);
}

#searchInput {
  padding: 12px 15px;
  margin: 0 auto 10px;
  border: none;
  background-color: var(--mainColor);
  color: var(--textColor);
  width: 20vw;
  font-size: var(--fonsSize);
  display: block;
  border-radius: var(--borderRadius);
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--inputBorder);
}

#searchInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.3);
  width: 22vw;
}

#searchInput::placeholder {
  color: var(--textColor2);
}

/* Crew Content */
.CrewTitle,
.search-container {
  background-color: var(--contentColor);
  color: white;
  text-align: center;
  padding: 1vh;
  border-top-left-radius: var(--borderRadius);
  border-top-right-radius: var(--borderRadius);
}

.crewcontent {
  width: 40vw;
  height: 91.2vh;
  background-color: var(--mainColor);
  overflow-y: scroll;
  overflow-x: hidden;
  border-radius: var(--borderRadius);
  box-shadow: var(--boxShadow);
  animation: slideInUp 0.7s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.crewcontent>h2 {
  text-align: center;
}

.crewcontent::-webkit-scrollbar {
  width: 8px;
  background-color: var(--contentColor);
}

.crewcontent::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 10px;
}

.crewcontent::-webkit-scrollbar-track {
  background-color: var(--scrollbar);
  border-radius: 10px;
}

/* Crew Table */
.CrewTable {
  width: 100%;
  border-collapse: collapse;
}

.CrewTable th,
.CrewTable td {
  padding: 12px;
  text-align: center;
}

.CrewTableTitle th {
  padding: 15px;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.CrewTableTitle th:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.CrewTableTitle th:first-child {
  padding: 15px;
  width: 10vw;
  max-width: 15vw;
  text-align: center;
}

.CrewTable td:first-child {
  vertical-align: middle;
  width: 3vw;
  max-width: 3vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.CrewTable th:nth-child(2),
.CrewTable td:nth-child(2) {
  width: 20vw;
}

.CrewTable th:nth-child(3),
.CrewTable td:nth-child(3),
.CrewTable th:nth-child(4),
.CrewTable td:nth-child(4) {
  width: 10vw;
}

.CrewTable thead th {
  background-color: var(--contentColor);
  color: var(--textColor);
  position: sticky;
  top: 0;
  z-index: 5;
}

.CrewTable tbody tr {
  background-color: var(--mainColor);
  color: var(--textColor2);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.CrewTable tbody tr:hover {
  background-color: var(--tableHover);
  color: var(--textColor);
  transform: translateX(5px);
  cursor: pointer;
}

.CrewTable tbody tr:active {
  transform: translateX(8px);
}

/* Player Info */
.PlayerInfo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30vw;
  height: auto;
  min-height: 30vh;
  background-color: var(--mainColor);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--borderRadius);
  transform: translate(-50%, -50%);
  box-shadow: var(--cardShadow);
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.PlayerInfoTitle,
.PlayerInfoRank {
  text-align: center;
  margin-bottom: 15px;
}

.PlayerInfoTitle {
  max-width: 20vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  margin: 0 auto 5px;
  color: var(--accent);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.PlayerInfoRank {
  font-size: 1.2vw;
  color: var(--textColor2);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.Info-Container {
  background-color: var(--contentColor);
  padding: 15px;
  border-radius: var(--borderRadius);
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.Info-main,
.KD-main,
.Other-main {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.Other-main {
  border-bottom: none;
}

#LastSeen p,
#LastSeenContent,
#Kills p,
#KillsContent,
#Death p,
#DeathContent,
#KD p,
#KDContent,
#Airdrop p,
#AirdropContent,
#Serial p,
#SerialContent {
  padding-left: var(--borderRadius);
  font-size: 1.1vw;
  transition: var(--transition);
}

#LastSeen p,
#Kills p,
#Death p,
#KD p,
#Airdrop p,
#Serial p {
  color: var(--textColor2);
  font-weight: 500;
  width: 10vw;
}

#LastSeenContent,
#KillsContent,
#DeathContent,
#KDContent,
#AirdropContent,
#SerialContent {
  color: var(--textColor);
  font-weight: 600;
}

.InfoButtonContainer {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.InfoButton {
  padding: 10px 20px;
  border: none;
  background-color: var(--contentColor);
  color: var(--textColor);
  font-size: var(--fonsSize);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--borderRadius);
  transition: var(--transition);
  box-shadow: var(--boxShadow);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.InfoButton: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: 0.5s;
}

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

.InfoButton:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.InfoButton:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#PromoteButton:hover {
  background-color: var(--notifsucces);
}

#KickButton:hover {
  background-color: var(--notifechec);
}



.CrewInfoTitle,
.CrewInfoRank {
  text-align: center;
  margin-bottom: 10px;
}

.CrewInfoTitle {
  max-width: 20vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  margin: 0 auto 5px;
  color: var(--accent);
  font-family: 'Rajdhani', sans-serif;
}

/* Player Info Container */
.PlayerInfo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30vw;
  height: auto;
  min-height: 30vh;
  background-color: var(--mainColor);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--borderRadius);
  transform: translate(-50%, -50%);
  box-shadow: var(--cardShadow);
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
  z-index: 100;
}

/* Crew Info Container */
.CrewInfo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: auto;
  /* min-height: 60vh; */
  background-color: var(--mainColor);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--borderRadius);
  transform: translate(-50%, -50%);
  box-shadow: var(--cardShadow);
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
  z-index: 100;
}

/* Info Titles */
.PlayerInfoTitle,
.CrewInfoTitle {
  font-size: 1.8vw;
  color: var(--accent);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  max-width: 25vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  margin: 0 auto 10px;
}

.PlayerInfoRank,
.CrewInfoRank {
  font-size: 1.2vw;
  color: var(--textColor2);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

/* Info Container */
.Info-Container {
  background-color: var(--contentColor);
  padding: 15px;
  border-radius: var(--borderRadius);
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.Info-main,
.KD-main,
.Other-main {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.Other-main {
  border-bottom: none;
}

/* Info Text Styles */
#LastSeen p,
#Kills p,
#Death p,
#KD p,
#Airdrop p,
#Serial p {
  color: var(--textColor2);
  font-weight: 500;
  width: 10vw;
  margin: 0;
  padding-left: var(--borderRadius);
  font-size: 1.1vw;
}

#LastSeenContent,
#KillsContent,
#DeathContent,
#KDContent,
#AirdropContent,
#SerialContent {
  color: var(--textColor);
  font-weight: 600;
  margin: 0;
  font-size: 1.1vw;
}

/* Info Button Styles */
.InfoButtonContainer {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.InfoButton {
  padding: 10px 20px;
  border: none;
  background-color: var(--contentColor);
  color: var(--textColor);
  font-size: var(--fonsSize);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--borderRadius);
  transition: var(--transition);
  box-shadow: var(--boxShadow);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.InfoButton: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: 0.5s;
}

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

.InfoButton:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.InfoButton:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#PromoteButton:hover {
  background-color: var(--notifsucces);
}

#KickButton:hover {
  background-color: var(--notifechec);
}

#DemoteButton:hover {
  background-color: #FF9800;
}

/* Crew Data - Upper Bar */
.crewdata-upbar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.square {
  background-color: var(--contentColor);
  border-radius: var(--borderRadius);
  padding: 15px;
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--boxShadow);
}

.square:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--tableHover);
}

.square img {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  filter: brightness(0) saturate(100%) invert(69%) sepia(75%) saturate(4692%) hue-rotate(334deg) brightness(95%) contrast(97%);
}

.square p {
  margin: 5px 0;
  font-size: 0.9vw;
}

.square p:first-of-type {
  color: var(--textColor2);
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 0.8vw;
  text-transform: uppercase;
}

.square p:last-of-type {
  color: var(--textColor);
  font-weight: 700;
  font-size: 1.2vw;
  font-family: 'Rajdhani', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .PlayerInfo {
    width: 40vw;
  }

  .CrewInfo {
    width: 70vw;
  }

  .square {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .PlayerInfo {
    width: 60vw;
  }

  .CrewInfo {
    width: 85vw;
    max-height: 80vh;
    overflow-y: auto;
  }

  .crewdata-upbar {
    flex-direction: column;
  }

  .square {
    width: 100%;
  }
}

/* Add this to your existing CSS file */

/* Close Button for Info Panels */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--contentColor);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 101;
}

.close-btn:hover {
  background-color: var(--accent);
  transform: rotate(90deg);
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  background-color: var(--textColor);
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

/* Animation for closing */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}