/* styles.css */

/* Base Reset and Theme */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: rgb(50, 55, 61);
  color: white;
}

/* Layout Structure */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  display: flex;
  flex-grow: 1;
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background-color: #343a40;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.sidebar img {
  max-width: 100%;
  max-height: 60px;
  height: auto;
}

/* Navigation Links */
.nav-link {
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.nav-link.active,
.nav-link:hover {
  background-color: #495057;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

/* Main Content Grid Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 1rem;
  flex-grow: 1;
  padding: 2rem;
  background-color: rgb(50, 55, 61);
}

.main-content>.grid-item:first-child {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 1rem;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

/* Grid Panels */
.grid-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: rgb(42, 46, 51);
  padding: 1rem;
  border-radius: 0.5rem;
  color: white;
  height: 100%;
  width: 100%;
}

/* Player Profile Page */
#player-info {
  width: 100%;
  background-color: rgb(42, 46, 51);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#player-info img {
  display: block;
  margin: 0 auto 1.5rem;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

#player-info h1 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: white;
}

#player-info p {
  font-size: 1rem;
  margin: 0.5rem 0;
  line-height: 1.5;
  color: #ccc;
}

/* Map Container */
#map {
  flex-grow: 1;
  height: 100%;
  width: 100%;
  min-height: 300px;
  border-radius: 0.25rem;
}

/* DataTables Customization */
div.dt-container .dt-length select.dt-input {
  background-color: rgb(64, 67, 70);
}

/* Responsive Fix for Map Resizing */
.leaflet-container {
  width: 100% !important;
  height: 100% !important;
}

/* Responsive Heading for Section Titles */
.grid-item h1.h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: white;
}

/* Top Insights Section */
.top-insights-card {
  background-color: #1f2937;
  color: white;
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 1.15rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  margin-top: 1rem;
}

.top-insights-card h1 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.5rem;
}

.top-insight-row {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .top-insights-card {
    font-size: 1rem;
    padding: 1rem;
  }
}