/* static/css/dashboard.css */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4f8;
  margin: 0;
  color: #333;
}

header {
  background-color: #0e8b9a;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-wrap: wrap; /* important for small screens */
  gap: 1rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background-color: #117d8a;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: #0b5f68;
  text-decoration: none;
}

main {
  max-width: 95%;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow-x: auto; /* Allow horizontal scroll inside if needed */
  box-sizing: border-box;
}


h1 {
  margin-bottom: 0.5rem;
  color: #007bff;
}

.user-info {
  font-style: italic;
  margin-bottom: 2rem;
  color: #555;
}

.filters {
  margin-bottom: 1.5rem;
}

.filters label {
  font-weight: 600;
  margin-right: 1rem;
}

select {
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat-box {
  flex: 1 1 300px;
  background: #e9f1ff;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: inset 0 0 8px #c0d4ff;
  text-align: center;
}

.stat-box h2 {
  margin-top: 0;
  color: #0056b3;
  margin-bottom: 1rem;
}

.stat-box p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003d7a;
}

section h2 {
  color: #007bff;
  margin-bottom: 0.5rem;
}

section p {
  color: #444444;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 720px) {
  .stats {
    flex-direction: column;
  }
  main {
    margin: 1rem;
    padding: 1rem;
  }
}

.logo {
  height: 50px;
  width: 40px;
  object-fit: contain;
  margin-right: 1.5rem; /* Use rem instead of hard pixels for responsiveness */
  vertical-align: middle;
}

