/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* = 16px by default in most browsers */
}

body {
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f9f9f9;
  padding-top: 52px;
}

/* Header */
header {
  background-color: #222;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1em 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
}


/* Main */
main {
  padding-bottom: 15px;
}

.container {
  max-width: 1000px;
  margin: auto;
}

h1, h2 {
  text-align: center;
  color: #222;
}

h1 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h2 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}




/* Table */
table {
  width: 100%;
  background-color: #fff;
  border-collapse: collapse;
}

table.dataTable thead th {
  background-color: #eee;
  position: sticky;
  top: 0; 
}

th, td {
  padding: 5px;
  text-align: left;
}

.allPassesFilters {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topMapSelectors {
  margin-right: 5px;
}






/* Map */
#map {
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 50px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ccc;
  margin-top: 50px;
}

.map-legend {
  padding-left: 10px;
}

.blue-ridden {
  color: #568cc2;
}

.red-toride {
  color: #ba4b5b;
}



/* Admin page */
.update-message {
  padding: .75rem .9rem;
  border-radius: 10px;
  font-size: .95rem;
  margin: 0 auto 1.5rem auto;
  width: 80%;
  text-align: center;

}

.update-hide { display: none; }

.update-success {
  border: 1px solid #b7ebc6;
  background: #f6ffed;
  color: #237804;
}

.update-error {
  border: 1px solid #ffd7d7;
  background: #fff3f3;
  color: #b00020;
}





.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem;
}

.form-actions form { margin: 0; }

.btn-logout,
.btn-gpx {
  width: 100%;
  padding: .8rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #1f6feb;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .02s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 16px rgba(31,111,235,.25);
}

.btn-logout:hover,
.btn-gpx:hover { background: #195ed0; }

.btn-logout:active,
.btn-gpx:active { transform: translateY(1px); }







/* Statistics */
canvas {
  max-width: 100%;
  height: auto;
  margin-bottom: 50px;
}


/* Footer */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 87.5%;
  }
}