.navbar {
  background-color: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.library-icon {
  color: var(--emerald);
  transition: transform 0.5s ease;
}

.navbar-brand:hover .library-icon {
  transform: rotate(10deg);
  color: var(--gold);
}

.brand-text {
  font-family: 'Georgia', serif;
  font-weight: 700;
  color: var(--brown-dark);
}

.text-gold {
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.9;
}

.nav-link-library {
  color: var(--brown-dark);
  font-weight: 500;

.nav-link-library:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
  color: var(--emerald);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.nav-link-library:before {
  content: '';

.dropdown-item-library:focus-visible {
  background-color: rgba(26, 138, 103, 0.12);
  color: var(--brown-dark) !important;
  border-left: 4px solid var(--gold);
  padding-left: calc(1.5rem - 4px);
  outline: 2px solid var(--gold-dark);
  outline-offset: -2px;
}

.navbar-toggler:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;

body[data-theme='dark'] .nav-link-library:focus-visible {
  outline-color: #f2ce73;
  color: #9de7cd;
}
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  z-index: -1;

body[data-theme='dark'] .dropdown-item-library:focus-visible {
  color: #ffffff !important;
  background-color: rgba(111, 215, 178, 0.22);
  outline-color: #f2ce73;
}

body[data-theme='dark'] .navbar-toggler:focus-visible {
  outline-color: #f2ce73;
}
  opacity: 0;
}

.nav-link-library:hover {
  color: var(--emerald);
}

.nav-link-library:hover:before {
  width: 70%;
  opacity: 1;
}

.nav-link-library.active {
  color: var(--cream);
  background-color: var(--emerald);
  font-weight: 600;
}

.nav-link-library.active:before {
  display: none;
}

.nav-role-divider {
  display: block;
  width: 1px;
  height: 1.6rem;
  background-color: var(--border-soft);
  opacity: 0.9;
}

.dropdown-item-library {
  padding: 0.6rem 1.5rem;
  color: var(--brown-dark) !important;
  transition: all 0.3s ease;
  position: relative;
  border-left: 0 solid var(--gold);
}

.dropdown-item-library:hover {
  background-color: rgba(26, 138, 103, 0.12);
  color: var(--brown-dark) !important;
  border-left: 4px solid var(--gold);
  padding-left: calc(1.5rem - 4px);
}

.dropdown-item-library:active {
  background-color: var(--emerald-light);
  color: white;
}

.dropdown-item-library.active-item {
  color: #ffffff !important;
  background: linear-gradient(to right, var(--emerald), var(--emerald-light));
  font-weight: 600;
  border-left: 4px solid var(--gold);
  padding-left: calc(1.5rem - 4px);
}

body[data-theme='dark'] .dropdown-item-library {
  color: #f3f8ff !important;
}

body[data-theme='dark'] .dropdown-item-library:hover {
  color: #ffffff !important;
  background-color: rgba(111, 215, 178, 0.22);
}

body[data-theme='dark'] .dropdown-item-library.active-item {
  color: #ffffff !important;
}

body[data-theme='dark'] .navbar {
  background-color: #10171c;
  border-bottom-color: rgba(207, 218, 227, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

body[data-theme='dark'] .library-icon {
  color: #9de7cd;
}

body[data-theme='dark'] .brand-text {
  color: #f8fbff;
}

body[data-theme='dark'] .text-gold {
  color: #f2ce73;
}

body[data-theme='dark'] .nav-link-library {
  color: #e6f1fa;
}

body[data-theme='dark'] .nav-link-library:hover {
  color: #9de7cd;
}

body[data-theme='dark'] .nav-link-library.active {
  color: #ffffff;
}

body[data-theme='dark'] .nav-role-divider {
  background-color: rgba(230, 241, 250, 0.3);
}

.page-shell {
  max-width: 1280px;
}

.page-container {
  min-height: calc(100vh - 200px);
}

.page-title {
  max-width: 48rem;
}

.page-title h2 {
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.page-title p {
  margin-bottom: 0;
  color: var(--text-muted-theme);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.page-actions .btn {
  white-space: nowrap;
}

.library-footer {
  background-color: var(--cream);
  border-top: 3px solid var(--gold);
}

@media (max-width: 768px) {
  .page-actions {
    width: 100%;
  }

  .page-actions .btn,
  .page-actions .btn-group {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu {
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    display: block;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow-soft);
  }

  .nav-item.dropdown {
    position: relative;
  }

  .nav-item.dropdown:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 30%;
    width: 40%;
    height: 8px;
    background: transparent;
    z-index: 1001;
  }
}
