/* GLOBAL LAYOUT & TYPOGRAPHY */
html, body {
  min-height: 100%;
  height: auto;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  color: #333;
}

.main-content {
  flex: 1;
}

/* THEMED BACKGROUNDS */
body.theme-greenblue {
  background: linear-gradient(to bottom, #bdeccb, #96bbe3);
  background-attachment: fixed;
}

body.theme-orange {
  background: linear-gradient(to bottom, #f8a695, #ffc7ab);
  background-attachment: fixed;
}

body.theme-pink {
  background: linear-gradient(to bottom, #ffd2d1, #e9dcb2);
  background-attachment: fixed;
}

/* LOGO SECTION */
.logo {
  text-align: center;
  padding: 2em 1em 0.5em;
  background: #fff;
}

.logo img {
  max-width: 340px;
  height: auto;
}

/* NAVIGATION */
/* NAVIGATION */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  padding: 0.5em;
  gap: 0.3em;
}

nav a {
  display: inline-block;
  padding: 0.3em 0.3em;
  font-size: 1em;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

nav a:hover {
  text-decoration: underline;
}

/* Responsive nav layout for mobile */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    padding: 0.5em 0;
    gap: 0.2em;
  }

  nav a {
    padding: 0.1em 0;
    font-size: 0.95em;
  }
}



/* HEADER */
header {
  text-align: center;
  padding: 2em 1em 1em;
}

header h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

header p {
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* FOOTER */
footer {
  margin-top: auto;
  text-align: center;
  padding: 2em;
  font-size: 0.9em;
  color: #555;
}

footer a {
  margin: 0 1em;
  color: #555;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.clean-list {
  padding-left: 1.2em;
  background: transparent !important;
}

.clean-list li {
  background: transparent !important;
}


/* Make the search input responsive and clean */
#search {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 0.5em;
  font-size: 1em;
  margin: 1em auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Ensure input fields and textareas are responsive */
input[type="number"],
input[type="text"],
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure canvas charts don’t overflow */
canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  display: block;
  margin: 1em 0;
}

