/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Keeps the footer pinned to the bottom on short pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* These rules keep the logo proportioned */
.navbar {
  min-height: 100px;
}

.navbar-brand .navbar-item img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.navbar-item.is-active {
  background-color: transparent !important;
  color: var(--bulma-text-strong) !important;
  font-weight: bold;
}

a {
  color: #00796b;
}

@media (prefers-color-scheme: dark) {
  a {
    color: #00D1B2;
  }
}

.card-full-height {
  height: 100%;
}

.processing-spinner {
  text-align: center;
  margin: 20px 0;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
  .spinner {
    border-color: #444;
    border-top-color: #3498db;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
