@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
/* Global box-sizing reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    /*overflow-x: hidden;*/
}

/* CSS Variables for theming */
:root {
    --primary_color: #1a1a1a;
    --secondary_color: #2a2a2a;
    --background_color: #121212;
    --text_color: #ffffff;
    --link_color: #ed145b;
    --border_color: #a01442;
    --accent-color: #ed145b;
	  --sub-color: #828282;
	  --font-color: #fff;
	  --font-accent-color: #f2a1bb;
}

html, body {
    height: 100%;
}

body {
    background: url("https://agaar.in/vrs_new/bg.jpg");
	background-color: #242424;
	background-size: cover;
	font-family: "Open Sans", sans-serif;
	margin: 0px;
	padding: 0px;
}

#wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	position: relative;
	overflow: hidden;
	height: 100%;
	background-color: rgba(41, 41, 41, 0.8);
	overflow-y: scroll;
}

/* Modern Header Styling with Combat Background */
.main-header {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	position: sticky;
	margin-right: auto;
	padding: 20px 0px;
	top: 0;
	z-index: 1;
	border-top: 5px solid var(--accent-color);
}

#logo {
	position: relative;
	margin-left: 20px;
}

#logo, #logo img {
	height: 145px;
	transition: 0.5s;
}

#logo img:hover {
	filter: grayscale(100%);
}

#wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 0 0 600px;
	margin-top: 20px;
}

#nav {
	display: flex;
	flex-direction: column;
	margin-left: 20px;
	padding: 40px;
	padding-right: 80px;
    font-family: 'Bebas Neue', sans-serif;
	background-color: rgba(24, 24, 24, 0.4);
	clip-path: polygon(0 0,100% 0,100% calc(100% - 80.00px),calc(100% - 80.00px) 100%,0 100%);
	backdrop-filter: blur(20px);
}

#primary {
	display: flex;
	gap: 10px;
	padding: 0;
	flex-wrap: wrap;
}

.nav {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--font-color);
	font-size: 18px;
	border-radius: 0px;
	width: 80px;
	transition: 0.5s;
	border: 2px solid #fff;
	border-radius: 5px;
}

.nav:hover {
	color: var(--accent-color);
	border-color: var(--accent-color);
	}

.nav.active {
    color: var(--border_color);
    border-color: var(--border_color);
}

.icon {
	height: 42px;
	width: 42px;
	font-size: 24px;
	border: none;
}

.disabled {
	color: #a2a2a2;
	border-style: dashed;
	border-color: #a2a2a2;
}

a {
    color: var(--link_color);
}

video {
	object-fit: cover;
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -99;
}

::-webkit-scrollbar {
    width: 5px;
	height: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(88, 88, 88, .8);
    border-radius: 5px
}

::-webkit-scrollbar-thumb:hover {
    background: #555
}

#statbox-wrapper::-webkit-scrollbar {
	width: 0px;
}

.tooltip_wrap, .tooltiptext_wrap, .tooltipinfo_wrap {
    font-family: 'Bebas Neue', sans-serif;
    transition: all 0.15s ease;
    padding: 10px;
	backdrop-filter: blur(20px);
    border-radius: 5px;
}

.tooltip_wrap {
	background-color: rgba(24, 24, 24, 0.6);
    color: #fff;
}

.tooltiptext_wrap, .tooltipinfo_wrap {
	background-color: rgba(255, 255, 255, 0.6);
    color: #242424;
}

.tooltipbox .tooltiptitle {
	font-size: 24px;
}

.tooltipbox .description {
	font-size: 18px;
	margin-top: 5px;
	color: #484848;
}

.tooltip_wrap .title {
	display: block;
	width: 100%;
	font-size: 18px;
	margin-bottom: 5px;	
}

.admin-link {
    position: relative;
}

.admin-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 25px;
    border: 2px solid rgba(255, 152, 0, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-button:hover {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.8);
    color: #ffb033;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.admin-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 25px;
    border: 2px solid rgba(76, 175, 80, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(237, 20, 91, 0.5);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.75rem;
    color: #4CAF50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Responsive header adjustments */
@media (max-width: 768px) {    
    .header-container {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        min-height: 100px;
        margin: 0;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .site-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    
    .status-indicator {
        padding: 8px 12px;
    }
    
    .admin-button {
        padding: 8px 12px;
    }
    
    .admin-button span {
        display: none;
    }
    
    .status-text {
        display: none;
    }
}

@media (max-width: 480px) {    
    .header-container {
        min-height: 80px;
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .admin-button {
        padding: 6px 10px;
    }
    
    .status-indicator {
        padding: 6px 10px;
    }
}

footer {
    font-family: 'Bebas Neue', sans-serif;
	margin: 20px 0px;
	width: 100%;
	color: #888888;
	font-size: 14px;
	text-align: center;
	clear: both;
}

main {
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive main content widths */
@media (min-width: 1400px) {
    main, .container {
        width: 80%;
        max-width: 1400px;
    }
}

@media (max-width: 1200px) {
    main, .container {
        width: 92%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    main, .container {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    main, .container {
        width: 100%;
        max-width: 100%;
        padding: 0.5rem;
        box-sizing: border-box;
    }
}

/* Dashboard Header Styling */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.dashboard-header h1 {
    width: fit-content;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin: auto;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px dashed var(--accent-color);
    border-radius: 10px;
}

.dashboard-subtitle {
    color: #ccc;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Ensure all h1 tags have consistent styling */
h1 {
    color: #fff;
    text-align: center;
}

h2 {
    color: #fff;
}

/* Alert styling for disabled features */
.alert {
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
}

.alert h2 {
    margin-bottom: 15px;
}

.alert p {
    color: #ccc;
    margin: 0;
}

/* Loading messages */
#leaderboard-loading {
    text-align: center;
    color: #ed145b;
    font-size: 1.2rem;
    padding: 20px;
}

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

.nav-bar {
    position: sticky;
    top: 168px;
    z-index: 1;
    width: fit-content;
    background-color: rgba(24, 24, 24, 0.4);
    backdrop-filter: blur(20px);
    padding: 0;
    margin: 0 auto;
    border-radius: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 0;
    flex-wrap: wrap;
    border-radius: 10px;
    overflow: hidden;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 1.5em;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    background-color: #00a9ce;
    color: #ffffff;
}

.nav-link:active {
    background-color: #3a4f58;
    color: #fff;
}

#leaderboardTable {
background: rgba(0, 0, 0, 0.6);
border: 1px solid rgba(237, 20, 91, 0.3);
}

#leaderboardTable tbody tr {
background: rgba(0, 0, 0, 0.3);
border-left: 3px solid transparent;
transition: all 0.2s ease;
}

#leaderboardTable tbody tr:hover {
background: rgba(237, 20, 91, 0.05);
border-left-color: #ed145b;
transform: translateX(3px);
}

.player-name a {
display: inline-block;
color: #e0e0e0;
text-decoration: none;
transition: color 0.2s ease;
font-weight: 500;
}

.player-name a:hover {
color: #ed145b;
}

/* Rank styling */
#leaderboardTable tbody tr td:first-child {
font-weight: 600;
color: #ed145b;
}

/* Top 3 Trophy Container - Consolidated */
#top3-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.top-3-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trophy-box {
    background: linear-gradient(135deg, rgba(237, 20, 91, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(237, 20, 91, 0.3);
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}
  
.trophy-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 20, 91, 0.2);
    border-color: #ed145b;
}
  
.trophy {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}
  
.trophy-box strong {
    color: #ed145b;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Credits table now uses unified table styling */


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-weight: bold;
}

.pagination button {
    padding: 6px 12px;
    background-color: #3b4a52;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #555;
    cursor: not-allowed;
}


.search-container {
    text-align: center;
    margin: 20px 0;
}

.search-container input[type="text"] {
    padding: 8px;
    width: 300px;
    max-width: 90%;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1f2b34;
    color: white;
}


/* Search Container - Consolidated */
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    width: 100%;
}

.search-container input[type="text"] {
    padding: 10px 12px;
    width: 300px;
    max-width: 90%;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #1f2b34;
    color: white;
}


/* Leaderboard table now uses unified table styling */

/* Server Status Table Specific Styles */
.server-table td:first-child {
  font-weight: bold;
  color: #fff;
}

.player-count {
  font-weight: bold;
}

.mission-info {
  font-size: 0.9rem;
  color: #ccc;
}

.pagination-controls span {
  color: #fff;
  margin: 0 10px;
}


/* Unified Table Styling */
.table-responsive {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, #2c2c2c 0%, #1e1e1e 100%);
  color: #fff;
  overflow: hidden;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(237, 20, 91, 0.2);
}

th {
  background-color: rgba(237, 20, 91, 0.1);
  font-weight: bold;
  color: #ed145b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(237, 20, 91, 0.3);
}

tr {
  transition: all 0.3s ease;
}

tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background-color: rgba(237, 20, 91, 0.1);
  transform: translateX(2px);
  box-shadow: -2px 0 0 #ed145b;
}

/* Unified Search Styling */
.search-container,
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px auto;
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  transform: translateX(20px);
}

input[type="text"]#searchInput,
input[type="text"]#playerSearchInput,
input[type="text"]#pilot-name,
.search-container input[type="text"],
.search-bar input[type="text"] {
  padding: 14px 20px;
  width: 400px;
  max-width: 400px;
  font-size: 16px;
  border: 2px solid rgba(237, 20, 91, 0.3);
  border-radius: 8px;
  background-color: rgba(28, 28, 28, 0.8);
  color: #fff;
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus {
  border-color: #ed145b;
  background-color: rgba(28, 28, 28, 1);
  box-shadow: 0 0 0 3px rgba(237, 20, 91, 0.2);
  transform: translateY(-1px);
}

input[type="text"]::placeholder {
  color: #888;
  opacity: 1;
}

/* Search Buttons */
.search-container button,
.search-button,
button[onclick*="search"] {
  padding: 14px 30px;
  background: linear-gradient(135deg, #ed145b 0%, #ed145b 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(237, 20, 91, 0.3);
  flex-shrink: 0;
}

.search-container button:hover,
.search-button:hover,
button[onclick*="search"]:hover {
  background: linear-gradient(135deg, #ed145b 0%, #ed145b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 20, 91, 0.4);
}

.search-container button:active,
.search-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(237, 20, 91, 0.3);
}

/* Unified Search Results Styling */
.results-list {
  max-width: 600px;
  margin: 20px auto;
  background-color: #2c2c2c;
  border-radius: 8px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.result-item {
  padding: 12px 20px;
  margin: 5px;
  background-color: #1e1e1e;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.3s;
}

.result-item:hover {
  background-color: #3a3a3a;
  color: #4CAF50;
}

/* Unified Pilot Card Styling */
.pilot-card {
  background-color: rgba(22, 22, 22, 0.4);;
  border-radius: 12px;
  padding: 30px;
  margin: 20px auto;
  width: 90%;
  max-width: 800px;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

/* Responsive pilot card adjustments */
@media (min-width: 1200px) {
  .pilot-card {
    width: 80%;
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .pilot-card {
    width: 95%;
    padding: 20px;
    margin: 15px auto;
  }
}

@media (max-width: 480px) {
  .pilot-card {
    width: 98%;
    padding: 15px;
    margin: 10px auto;
  }
}

.pilot-card h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #fff;
}

.pilot-stats {
  /* Container for all stats groups */
}

.stat-group {
  margin-bottom: 30px;
}

.stat-group h4 {
  color: #ccc;
  margin-bottom: 15px;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #1e1e1e;
  border-radius: 5px;
}

.stat-label {
  color: #ccc;
}

.stat-value {
  color: #fff;
  font-weight: bold;
}

.squadron-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.squadron-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

/* Responsive search styling */
@media (min-width: 1200px) {
  .search-container input[type="text"] {
    width: 500px;
    max-width: 500px;
  }
  
  .search-container {
    transform: translateX(25px);
  }
}

@media (max-width: 768px) {
  .search-container input[type="text"] {
    width: 280px;
    max-width: 280px;
  }
  
  .search-container {
    flex-direction: column;
    gap: 15px;
    transform: translateX(0);
  }
  
  .search-container button {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .search-container input[type="text"] {
    width: 250px;
    max-width: 250px;
  }
  
  .search-container button {
    max-width: 250px;
  }
}

/* Pagination controls */
.pagination-controls,
.pagination-container {
  text-align: center;
  margin: 30px 0;
}

.pagination-controls button,
.pagination-container button {
  background: linear-gradient(135deg, #3a3a3a 0%, #2c2c2c 100%);
  color: #ed145b;
  border: 1px solid rgba(237, 20, 91, 0.3);
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-controls button:hover,
.pagination-container button:hover {
  background: linear-gradient(135deg, #ed145b 0%, #ed145b 100%);
  color: white;
  border-color: #ed145b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 20, 91, 0.3);
}

.pagination-controls button:disabled,
.pagination-container button:disabled {
  background: #1a1a1a;
  color: #555;
  border-color: #333;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-controls span,
.pagination-container {
  color: #ccc;
  font-size: 1rem;
  margin: 0 10px;
}


.top-3-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.trophy-box {
  background-color: #2c2c2c;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  min-width: 150px;
}

.trophy {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}


.server-boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.server-box {
    background-color: #2c2c2c;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    max-width: 400px;
    flex: 1 1 300px;
    transition: transform 0.2s ease;
}

.server-box:hover {
    transform: scale(1.02);
}

.server-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Maintenance mode page */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.maintenance-icon {
    font-size: 5rem;
    color: var(--link_color);
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    color: #ccc;
    font-size: 1.1rem;
    opacity: 0.8;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: rgba(24, 24, 24, 1);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.stat-card.pop-in {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(237, 20, 91, 0.3);
    border-color: rgba(237, 20, 91, 0.5);
}

.stat-icon {
    font-size: 4rem;
    color: #00a9ce;
}

.stat-content h3 {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
}

.charts-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px auto;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 968px) {
    .charts-dashboard {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background: rgba(24, 24, 24, 1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-container h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.chart-container canvas {
    max-height: 350px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(76, 175, 80, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: var(--accent-color);
    margin-top: 20px;
    font-size: 1.2rem;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-data-message {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Chart info icon and tooltip styles */
.chart-info {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: #444;
    color: #ccc;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
    transition: all 0.3s ease;
}

.chart-info:hover {
    background-color: #ed145b;
    color: white;
    transform: scale(1.1);
}

.chart-container {
    position: relative;
}

.chart-container:hover {
    box-shadow: 0 12px 40px rgba(237, 20, 91, 0.3);
    border-color: rgba(160, 20, 66, 0.5);
}

.chart-container[title] {
    cursor: help;
}

/* Enhanced tooltip styling */
.chart-container:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: normal;
    max-width: 300px;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chart-container:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #333;
    margin-bottom: 2px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.gold { color: #FFD700; }
.silver { color: #C0C0C0; }
.bronze { color: #CD7F32; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .charts-dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
}