/* Main styles for WeedAI Dataset Map */

/* Page header */
.page-header {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.logo-section h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2C3E50;
  letter-spacing: 1px;
  cursor: pointer;
}

.logo-section p {
  margin: 0.25rem 0 0;
  color: #666;
  font-size: 1rem;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #2C3E50;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #3498db;
  border-bottom-color: #3498db;
}

.nav-links a.active {
  color: #3498db;
  border-bottom-color: #3498db;
}

/* Upload button - inverted style */
.nav-links a.btn-upload {
  background: #2C3E50;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  margin-left: 1rem;
}

.nav-links a.btn-upload:hover {
  background: #1a252f;
  color: white;
  border-bottom: none;
  transform: translateY(-1px);
}

/* Statistics panel */
.page-stats {
  background: #f9f9f9;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 2rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Leaderboard toggle button */
#toggle-leaderboard {
  margin-left: auto;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  background: #2C3E50;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
}

#toggle-leaderboard:hover {
  background: #1f2a38;
}

/* Legend card */
.legend {
  position: fixed;
  bottom: 6rem;
  right: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 1rem;
  line-height: 1.4;
  max-width: 240px;
  z-index: 9999;
}

.legend h5 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #2C3E50;
}

.legend ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.legend li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* Dot markers for classes */
.legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Pie chart icon for proportions */
.pie-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: conic-gradient(
    #003f5c 0% 50%,
    #bc5090 0% 100%
  );
  margin-right: 0.5rem;
}

/* Leaderboard sidebar */
#leaderboard {
  display: none;
  position: fixed;
  top: 160px;
  right: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  width: 200px;
  font-size: 1rem;
  z-index: 9999;
}

#leaderboard h5 {
  margin-top: 0;
}

#leaderboard ol {
  padding-left: 1.2em;
  margin: 0;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f1f1f1;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
  font-family: sans-serif;
  z-index: 10000;
}

footer .author {
  font-size: 1.3rem;
  color: #333;
}

footer .social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

footer .social-icons {
  display: flex;
  gap: 0.75rem;
  font-size: 1.3rem;
}

footer .social-icons a {
  color: inherit;
  text-decoration: none;
}

footer .version {
  font-family: monospace;
  font-size: 1.3rem;
  background: #ddd;
  padding: 0.2rem 0.7rem;
  border-radius: 0.25rem;
  color: #555;
}

/* Page container for non-map pages */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Table styles for datasets page */
.datasets-table {
  width: 100%;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.datasets-table th {
  background: #2C3E50;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.datasets-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.datasets-table tr:hover {
  background: #f8f9fa;
}

.datasets-table a {
  color: #3498db;
  text-decoration: none;
}

.datasets-table a:hover {
  text-decoration: underline;
}

/* About page styles */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

.about-content h2 {
  color: #2C3E50;
  margin-top: 2rem;
}

.about-content a {
  color: #3498db;
}

/* How to upload page styles */
.video-container {
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}