

:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --background-color: #f5f7fa;
  --container-bg: #ffffff;
  --text-color: #333333;
  --border-color: #e0e0e0;
  --hover-color: #f0f0f0;
  --button-color: #3498db;
  --button-text: #ffffff;
  --header-bg: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --table-bg: #f2f2f2;
  --table-header-bg: #f7f7f7;
}
.dark-mode {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --background-color: #0e0f0f;
  --container-bg: #1a1a1a;
  --text-color: #e0e0e0;
  --border-color: #333333;
  --hover-color: #252525;
  --button-color: #2980b9;
  --button-text: #ffffff;
  --header-bg: #0e0f0f;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  --table-bg: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: visible !important;
}

body.dark-mode {
  background-color: #0e0f0f !important;
}

.container {
  max-width: 880px;
  min-width: 701px;
  margin: 0px auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: visible !important;
}
	
.chart-wrapper {
  background-color: var(--container-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 14px 20px;
  margin-bottom: 30px;
  position: relative;
  width: 100%;
  overflow: visible !important;
}

.radar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0px -15px;
  position: relative;
  margin-bottom: 28px;
}
svg.radar {
  width: 100%;
  max-width: 497px;  
  min-width: 497px;  
  height: 504px;  
  display: block;
  margin: 0 auto;
}

svg.radar > g {
  transform-origin: center;
  transform: translate(50%, 50%);
}


/* SPECIFIC CSS */


.search-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  width: 70%;
  min-width: 500px;
  position: relative;
  overflow: visible !important;
}

.search-container {
  position: relative;
  margin-bottom: 15px;
  min-width: 500px;
  overflow: visible !important;
}

#matchingNames {
  flex: 1;
  background-color: var(--container-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: #c4c4c4 #f1f1f1;
  z-index: 9999;
  max-height: 267px;
  overflow-y: auto;
  margin-bottom: 15px;
  min-height: 0;
}

#matchingNames:empty {
  margin-bottom: 0;
  min-height: 0;
  display: none !important;
}

/* matching names styles */

.name {
  padding: 9px 12px;
  font-size: 15px;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease-in-out;
  font-family: 'Inter', sans-serif;
  position: relative;
}
.name:hover {
  background-color: var(--hover-color);
}
.fullName {
  font-weight: bold;
  margin-right: 6px;
}
.age, .team {
  color: #777777;
  margin-right: 4px;
}
.dark-mode .age, .dark-mode .team, .dark-mode .fullName {
  color: var(--text-color);
}

/* searchbar styles */


#searchInput1 {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  background-color: var(--container-bg);
  color: var(--text-color);
  transition: border-color 0.2s;
  height: 40px;
}

#searchInput1:focus {
  border-color: var(--primary-color);
}

#searchInput1::placeholder {
  color: #999;
}

#searchButton1 {
  background-color: var(--button-color);
  color: var(--button-text) !important;
  border: none;
  border-radius: 6px;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 18px;
  font-weight: bold;
}

#searchButton1:hover {
  background-color: #2980b9;
}

body.dark-mode #searchButton1:hover {
  background-color: #2980b9;
}

body.dark-mode #searchButton1 {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Button styles for screenshot */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background-color: var(--button-color);
  color: var(--button-text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  height: 36px;
  box-sizing: border-box;
}
.btn:hover {
  background-color: #2980b9;
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}
.btn-outline:hover {
  background-color: var(--hover-color);
}
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
}
.icon2::before {
  font-family: "Ionicons";
  content: "\f147";
  font-size: 18px;
  color: var(--button-text);
}


/* Table styling */
.metrics-table {
  width: 100%;
  background-color: var(--container-bg);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: var(--shadow);
  table-layout: fixed;
  max-width: 100%;
}
.metrics-table th {
  color: var(--text-color);
  padding: 8px;
  font-size: 12px;
  text-align: center;
  font-weight: 500;
  background-color: var(--table-header-bg);
  border-bottom: 1px solid var(--border-color);
  line-height: 1.2;
}
.dark-mode .metrics-table th {
  color: #aeaeae;
}
/* Match the first header with the first column styling */
.metrics-table th:first-child {
  padding-left: 15px;
  padding-right: 15px;
  width: 20%;
  font-style: italic;
}

.metrics-table td {
    padding: 6px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600 !important;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Give more breathing room to the first column (name) */
.metrics-table td:first-child {
  padding: 12px 15px;
  text-align: center;
  white-space: normal;
  width: 30%;
  overflow: visible;
  text-overflow: clip;
  height: auto;
  min-height: 50px;
  line-height: 1.4;
  vertical-align: middle;
}
.metrics-table tr:last-child td {
  border-bottom: none;
}
@media (hover: hover) {
    .metrics-table tr:hover td {
        background-color: var(--hover-color);
      }
    }
/* X button styling */
.metrics-table td button {
  background-color: transparent;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.metrics-table td button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #666;
}
/* Dark mode specific table styling */
.dark-mode .metrics-table {
  background-color: var(--container-bg);
}
.dark-mode .metrics-table th {
  background-color: rgba(255, 255, 255, 0.03);
}
.dark-mode .metrics-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-mode .metrics-table td button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #aaa;
}




    

/* Similar players table */
.similar-table {
  width: 100%;
  background-color: var(--container-bg);
  font-family: 'Inter', sans-serif;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 38px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  overflow: visible !important;
}
.similar-table th {
  color: var(--text-color);
  padding: 10px;
  text-align: center;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border-color);
  line-height: 1.2;
}

.similar-table td {
  padding: 7px 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  line-height: 1.2;
}
.similar-table td:last-child {
  border-right: none;
}
.similar-table td:hover {
  background-color: var(--hover-color);
}
/* Dark mode specific similar table styling */
.dark-mode .similar-table {
  background-color: var(--container-bg);
}
.dark-mode .similar-table th {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-mode .similar-table td {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Position switcher */
.position-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.position-button {
  padding: 8px 16px;
  background-color: var(--container-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.position-button:hover {
  background-color: var(--hover-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Toggle controls */
.toggle-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.toggle-container {
  display: flex;
  align-items: center;
}
.toggle-label {
  font-size: 14px;
  margin-right: 10px;
}
.toggle-checkbox {
  width: 40px;
  height: 20px;
  position: relative;
  cursor: pointer;
}
.toggle-checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 20px;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: var(--primary-color);
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
/* Dark mode toggle */
.dark-mode-toggle {
border: 1px solid var(--border-color);
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--container-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: background-color 0.3s;
}
.toggle-icon::before {
  font-family: "Ionicons";
  content: "\f467";
  font-size: 30px;
  color: var(--text-color);
}
.dark-mode .toggle-icon::before {
  content: "\f3b0";
  font-size: 20px;
}
/* Color classes for radar chart */
.result-color-1 {
  color: #3062FB !important;
  stroke: #3062FB;
  fill: #3062FB;
  fill-opacity: 0;
}
.result-color-2 {
  color: #F62681 !important;
  stroke: #F62681;
  fill: #F62681;
  fill-opacity: 0;
}
.result-color-3 {
  color: #55d149 !important;
  stroke: #55d149;
  fill: #55d149;
  fill-opacity: 0;
}
.result-color-4 {
  color: #FFCF5F !important;
  stroke: #FFCF5F;
  fill: #FFCF5F;
  fill-opacity: 0;
}
.result-color-5 {
  color: rgb(153, 50, 204) !important;
  stroke: rgb(153, 50, 204);
  fill: rgb(153, 50, 204);
  fill-opacity: 0;
}
.result-color-6 {
  color: rgb(255, 140, 0) !important;
  stroke: rgb(255, 140, 0);
  fill: rgb(255, 140, 0);
  fill-opacity: 0;
}
.result-color-7 {
  color: rgb(30, 144, 255) !important;
  stroke: rgb(30, 144, 255);
  fill: rgb(30, 144, 255);
  fill-opacity: 0;
}
.result-color-8 {
  color: rgb(240, 128, 128) !important;
  stroke: rgb(240, 128, 128);
  fill: rgb(240, 128, 128);
  fill-opacity: 0;
}
.result-color-9 {
  color: rgb(144, 238, 144) !important;
  stroke: rgb(144, 238, 144);
  fill: rgb(144, 238, 144);
  fill-opacity: 0;
}
.result-color-10 {
  color: rgb(135, 206, 235) !important;
  stroke: rgb(135, 206, 235);
  fill: rgb(135, 206, 235);
  fill-opacity: 0;
}
.result-color-11 {
  color: rgb(246, 38, 129) !important;
  stroke: rgb(246, 38, 129);
  fill: rgb(246, 38, 129);
  fill-opacity: 0;
}
.result-color-12 {
  color: rgb(255, 69, 0) !important;
  stroke: rgb(255, 69, 0);
  fill: rgb(255, 69, 0);
  fill-opacity: 0;
}
.result-color-13 {
  color: rgb(60, 179, 113) !important;
  stroke: rgb(60, 179, 113);
  fill: rgb(60, 179, 113);
  fill-opacity: 0;
}
.result-color-14 {
  color: rgb(138, 40, 165) !important;
  stroke: rgb(138, 40, 165);
  fill: rgb(138, 40, 165);
  fill-opacity: 0;
}
.result-color-15 {
  color: rgb(70, 130, 180) !important;
  stroke: rgb(70, 130, 180);
  fill: rgb(70, 130, 180);
  fill-opacity: 0;
}
.result-color-16 {
  color: rgb(208, 32, 144) !important;
  stroke: rgb(208, 32, 144);
  fill: rgb(208, 32, 144);
  fill-opacity: 0;
}
.result-color-17 {
  color: rgb(220, 20, 60) !important;
  stroke: rgb(220, 20, 60);
  fill: rgb(220, 20, 60);
  fill-opacity: 0;
}
.result-color-18 {
  color: rgb(255, 223, 60) !important;
  stroke: rgb(255, 223, 60);
  fill: rgb(255, 223, 60);
  fill-opacity: 0;
}
.result-color-19 {
  color: rgb(238, 130, 238) !important;
  stroke: rgb(238, 130, 238);
  fill: rgb(238, 130, 238);
  fill-opacity: 0;
}
.result-color-20 {
  color: rgb(147, 112, 219) !important;
  stroke: rgb(147, 112, 219);
  fill: rgb(147, 112, 219);
  fill-opacity: 0;
}
.result-color-21 {
  color: rgb(34, 139, 34) !important;
  stroke: rgb(34, 139, 34);
  fill: rgb(34, 139, 34);
  fill-opacity: 0;
}
.result-color-22 {
  color: rgb(255, 198, 0) !important;
  stroke: rgb(255, 198, 0);
  fill: rgb(255, 198, 0);
  fill-opacity: 0;
}
.result-color-23 {
  color: rgb(255, 99, 71) !important;
  stroke: rgb(255, 99, 71);
  fill: rgb(255, 99, 71);
  fill-opacity: 0;
}
.result-color-24 {
  color: rgb(65, 105, 225) !important;
  stroke: rgb(65, 105, 225);
  fill: rgb(65, 105, 225);
  fill-opacity: 0;
}
.result-color-25 {
  color: rgb(255, 215, 0) !important;
  stroke: rgb(255, 215, 0);
  fill: rgb(255, 215, 0);
  fill-opacity: 0;
}
.result-color-26 {
  color: rgb(0, 206, 209) !important;
  stroke: rgb(0, 206, 209);
  fill: rgb(0, 206, 209);
  fill-opacity: 0;
}
.result-color-27 {
  color: rgb(197, 142, 255) !important;
  stroke: rgb(197, 142, 255);
  fill: rgb(197, 142, 255);
  fill-opacity: 0;
}
.result-color-28 {
  color: rgb(46, 139, 87) !important;
  stroke: rgb(46, 139, 87);
  fill: rgb(46, 139, 87);
  fill-opacity: 0;
}
.result-color-29 {
  color: rgb(255, 105, 180) !important;
  stroke: rgb(255, 105, 180);
  fill: rgb(255, 105, 180);
  fill-opacity: 0;
}
.result-color-30 {
  color: rgb(255, 165, 0) !important;
  stroke: rgb(255, 165, 0);
  fill: rgb(255, 165, 0);
  fill-opacity: 0;
}
.result-color-31 {
  color: rgb(255, 207, 95) !important;
  stroke: rgb(255, 207, 95);
  fill: rgb(255, 207, 95);
  fill-opacity: 0;
}
.result-color-32 {
  color: rgb(255, 182, 193) !important;
  stroke: rgb(255, 182, 193);
  fill: rgb(255, 182, 193);
  fill-opacity: 0;
}
.result-color-33 {
  color: rgb(102, 205, 170) !important;
  stroke: rgb(102, 205, 170);
  fill: rgb(102, 205, 170);
  fill-opacity: 0;
}
.result-color-34 {
  color: rgb(48, 98, 251) !important;
  stroke: rgb(48, 98, 251);
  fill: rgb(48, 98, 251);
  fill-opacity: 0;
}
.result-color-35 {
  color: rgb(186, 85, 211) !important;
  stroke: rgb(186, 85, 211);
  fill: rgb(186, 85, 211);
  fill-opacity: 0;
}
.result-color-36 {
  color: rgb(123, 104, 238) !important;
  stroke: rgb(123, 104, 238);
  fill: rgb(123, 104, 238);
  fill-opacity: 0;
}
.result-color-37 {
  color: rgb(0, 128, 128) !important;
  stroke: rgb(0, 128, 128);
  fill: rgb(0, 128, 128);
  fill-opacity: 0;
}
svg text.label{
  fill: #bcbcbc;
}
/* Add specific styling for resultsTable to reduce space */
#resultsTable {
  margin-top: -8px;
  padding-top: 0;
}
/* Position Switcher styling */
.position-switcher-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 700px;
  flex-wrap: wrap;
}
.position-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-width: 40px;
  width: 50px;
  background-color: var(--container-bg);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
}

.position-link:hover {
  background-color: var(--hover-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.position-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
/* Dark mode styles for position switcher */
.dark-mode .position-link {
  border-color: var(--border-color);
}
.dark-mode .position-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}






.custom-select-container {
    position: relative;
    width: 120px; /* Reduced from 172px */
    z-index: 10;
}

/* When open, increase z-index to ensure it appears above other elements */
.custom-select-container.active {
    z-index: 9999;
}


.custom-select-option {
    display: flex;
    align-items: center;
    padding: 6px 12px; /* Reduced padding */
    cursor: pointer;
    color: var(--text-color);
    background-color: var(--container-bg);
    font-size: 11px; /* Reduced font size */
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    padding: 5px 10px 7px; /* Reduced padding */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--container-bg);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 11px; /* Reduced font size */
    cursor: pointer;
    user-select: none;
    position: relative;
    height: 22px; /* Reduced height */
    box-sizing: border-box;
}

.custom-select-trigger span {
    display: inline-block;
    transform: translateY(1px);
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 20px); /* Account for the icon width and margin */
    line-height: normal; /* Ensure consistent line height */    
}

.custom-select-trigger::after {
    content: '';
    width: 5px; /* Smaller arrow */
    height: 5px; /* Smaller arrow */
    margin-left: auto;
    border-right: 1.5px solid var(--text-color);
    border-bottom: 1.5px solid var(--text-color);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s;
    opacity: 0.7;
    margin-right: 2px;
}

.custom-select-trigger.open::after {
    transform: rotate(-135deg) translateY(1px);
}

.custom-select-options {
    position: absolute;
    bottom: 100%; /* Changed from top to bottom */
    left: 0;
    right: 0;
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 4px; /* Changed from margin-top to margin-bottom */
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    font-size: 11px; /* Reduced font size */
    display: none;
    box-shadow: var(--shadow);
}


.custom-select-option:hover {
    background-color: var(--hover-color);
}


.custom-select-option.selected {
    background-color: var(--primary-color);
    color: white;
}



.custom-select-option.selected:hover {
    background: var(--primary-color);
}

.custom-select-option span {
    flex: 1;
}

.custom-select-option i {
    font-size: 14px;
}
.dark-mode .custom-select-option.selected {
    background-color: rgba(52, 152, 219, 0.3);
}



#SFctr {
	font-family: Arial, Helvetica, sans-serif !important;
  margin-left: 21.4px;
}

#SFusrlogpst strong:first-child {
  font-size: 0px;
}

#SFusrlogpst input[type="checkbox"],
#SFusrlogpwd input[type="checkbox"],
#SFusrlogpst i,
#SFusrlogpwd i {
  display: none !important;
}

#SFctr .SFfrm input[type="text"],
#SFctr .SFfrm input[type="password"],
#SFctr .SFfrm button {
  border-radius: 6px;
}

#SFusrlogpwd strong {
  visibility: hidden; /* Hide the original text */
  position: relative;
}

#SFusrlogpwd strong::after {
  content: "Forgot Password?";
  visibility: visible;
  position: absolute;
  font-size: 12px;
  font-weight: 400;
  left: 100px;
  white-space: nowrap;
}
body.dark-mode #SFctr {
color: #ffffff
}

#SFctr input {
  background-color: #ffffff !important;
color:#000000 !important;
border: 1px solid #c2c2c2 !important
}

.similar-text {
  font-size: 13.8px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.metrics-table td:first-child,
.metrics-table th:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

