/* Global styles */
html {
  height: 100%;
}
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

/* Dark theme styles */
[data-theme="dark"] body {
  background-color: #1e1e1e;
}

/* YASGUI container */
#yasgui {
  height: 100%;
  margin-top: 0px;
  /* height: calc(100vh - 60px); */
}

/* Footer styles */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f5f5f5;
  padding: 8px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition:
    transform 0.3s ease-in-out,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

[data-theme="dark"] #footer {
  background-color: #2d2d30;
  border-top: 1px solid #3e3e42;
}

.footer-left {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
}

.footer-center {
  text-align: center;
}

#logo {
  height: 20px;
  width: auto;
  transition: opacity 0.2s;
}

#logo:hover {
  opacity: 0.8;
}

.logo-primary {
  fill: #2384eb;
  transition: fill 0.3s ease;
}

[data-theme="dark"] .logo-primary {
  fill: #4fc3f7;
}

#footer a {
  color: #0066cc;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

[data-theme="dark"] #footer {
  color: #d4d4d4;
}

[data-theme="dark"] #footer a {
  color: #4fc3f7;
}

[data-theme="dark"] #footer a:hover {
  color: #81d4fa;
}

/* Footer toggle button */
#footer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #0066cc;
  color: white;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 999;
  font-size: 20px;
  transition: all 0.3s ease;
}

#footer-toggle:hover {
  background-color: #0052a3;
  transform: scale(1.1);
}

#footer-toggle:active {
  transform: scale(0.95);
}

#footer-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
}

/* Footer hidden by default on all screens */
#footer {
  transform: translateY(100%);
}

#footer.expanded {
  transform: translateY(0);
}

/* Responsive behavior for small screens */
@media (max-width: 768px) {
  .footer-left {
    position: relative;
    left: 0;
    margin-bottom: 10px;
  }

  #footer {
    flex-direction: column;
    padding: 15px 20px;
  }

  .footer-center {
    margin-top: 10px;
  }
}

/* To remove when Thib geo plugin released the PR */
.leaflet-container {
  height: 100% !important;
  min-width: 500px;
}
