html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar Logo Styling */
.navbar-logo {
  height: 45px;
  width: auto;
  max-width: 280px;
  transition: opacity 0.2s ease;
}

.navbar-logo:hover {
  opacity: 0.8;
}

/* Ensure navbar brand has proper spacing */
.navbar-brand {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-right: 2rem;
  margin-left: 0;
  padding-left: 0;
}

/* Responsive logo adjustments */
@media (max-width: 576px) {
  .navbar-logo {
    height: 35px;
    max-width: 200px;
  }
}

/* Site Layout Structure */
.site-header {
  width: 100%;
  position: relative;
  z-index: 1030;
}

.navbar-full-width {
  width: 100%;
  background: white;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,.04);
  margin-bottom: 0;
  padding: 0;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-tabs {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-main {
  flex: 1;
  padding: 1rem 10px 0 10px;
  min-height: calc(100vh - 140px); /* Adjust based on header/footer height */
}

.site-footer {
  border-top: 1px solid #e5e5e5;
  color: #6c757d;
  background: #f8f9fa;
  padding: 1rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

/* Navbar Component Styling */
.navbar-toggler {
  border: 1px solid #e9ecef;
  padding: 0.25rem 0.5rem;
  font-size: 1.125rem;
  line-height: 1;
  background-color: transparent;
  border-radius: 0.25rem;
  cursor: pointer;
}

.navbar-toggler:hover {
  background-color: #f8f9fa;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml;charset=utf8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav .nav-item {
  margin-right: 0.25rem;
}

/* Account Block Styling */
.account-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.2;
  margin-right: 15px;
}

.account-email {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 2px;
  font-weight: 500;
}

.account-logout {
  margin: 0;
}

.logout-btn {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.logout-btn:hover {
  color: #495057;
  text-decoration: underline;
}

/* Mobile navbar */
.navbar-collapse {
  display: none;
  width: 100%;
  margin-top: 1rem;
}

.navbar-collapse.show {
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 1rem 0;
  border-top: 1px solid #e9ecef;
}

/* Navigation Tab Styling */
.nav-tab {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-right: 0.5rem;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-tab:hover {
  background-color: #e9ecef;
  color: #495057;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid #667eea;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-tab.active:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Navigation item adjustments */
.navbar-nav .nav-item {
  margin-right: 0.25rem;
}

/* Ensure consistent spacing */
.navbar-nav.flex-grow-1 {
  align-items: center;
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
  .navbar-tabs {
    display: none;
  }
  
  .navbar-toggler {
    display: block;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .navbar-inner {
    flex-wrap: wrap;
  }
  
  .mobile-nav .nav-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .mobile-nav .nav-tab {
    width: 100%;
    text-align: center;
    margin-right: 0;
    padding: 0.75rem 0;
    display: block;
  }
}

@media (min-width: 769px) {
  .navbar-toggler {
    display: none;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .navbar-tabs {
    display: flex;
  }
  
  /* Ensure tabs maintain proper sizing on desktop */
  .nav-tab {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    width: auto;
    min-width: auto;
  }
}