/* Shared styles used by both landing page and dashboard */

/* Remove box shadows from Bulma boxes */
.box {
  box-shadow: none;
  border: 1px solid #dbdbdb;
}

/* Softer border color for boxes in dark mode */
[data-theme="dark"] .box {
  border-color: #666666;
}

/* Sticky footer solution */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

section.section {
  flex: 1;
}

.footer {
  margin-top: auto;
  padding: 1.5rem 1.5rem !important;
}

.footer .content p {
  margin-bottom: 0 !important;
}

/* Enhanced navbar styling */
.navbar.is-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

a.navbar-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Remove mobile tap highlight on logo */
.navbar-brand > a.navbar-item {
  -webkit-tap-highlight-color: transparent;
}

/* Accent color for the brand icon - theme-aware for WCAG contrast compliance */
[data-theme="light"] .has-text-primary {
  color: #00796b !important; /* Darker teal for light mode - 4.88:1 contrast ratio */
}

[data-theme="dark"] .has-text-primary {
  color: #00d1b2 !important; /* Bright teal for dark mode - 8.92:1 contrast ratio */
}

/* Navbar always has dark background, so always use bright teal for contrast */
.navbar.is-dark .has-text-primary {
  color: #00d1b2 !important;
}

/* Button styling in navbar */
.navbar.is-dark .button.is-light {
  background-color: #f5f5f5;
  color: #363636;
  border: none;
}

.navbar.is-dark .button.is-light:hover {
  background-color: #00d1b2;
  color: white;
}

.navbar.is-dark .button.is-primary {
  background-color: #00d1b2;
  border: none;
}

.navbar.is-dark .button.is-primary:hover {
  background-color: #00c4a7;
}

/* Theme toggle styling */
#theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Light mode theme toggle hover */
[data-theme="light"] #theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#theme-toggle .fa-sun {
  color: #ffd700;
  font-size: 1.25rem;
  transition: filter 0.2s ease;
}

#theme-toggle .fa-moon {
  color: #9b59b6;
  font-size: 1.25rem;
  transition: filter 0.2s ease;
}

#theme-toggle:hover .fa-sun,
#theme-toggle:hover .fa-moon {
  filter: brightness(1.2);
}

#theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Prevent navbar-item hover effect on theme toggle container */
.navbar-item:has(#theme-toggle) {
  background-color: transparent !important;
}

.navbar-item:has(#theme-toggle):hover {
  background-color: transparent !important;
}

/* Navbar brand icon sizing */
.navbar-brand > .navbar-item .icon-text .icon {
  width: 28px;
  height: 28px;
}

.navbar-brand > .navbar-item img {
  max-height: 28px;
}

/* Footer styling */
.footer ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

/* Page Title Styling */
h1.title {
  font-size: 1.75rem;
  /* font-size: 2.0rem; Bulma default */
  font-weight: 600;
  /* font-weight: 700; Bulma default */
  color: #363636;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

[data-theme="dark"] h1.title {
  color: #f5f5f5;
}
