/*
Theme Name: Basic Block Theme
Theme URI: 
Author: Andrew Twigg with initial generation from ChatGPT educational license (OpenAI)
Author URI: 
Description: A basic WordPress theme with featured images, primary and secondary navigation menus, and block-friendly content structure.
Version: 2.1.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: basic-block-theme
*/

/* Last revised 2026.04.21 */

:root {
  --bbt-max-width: 1100px;
  --bbt-content-width: 760px;
  --bbt-gap: 1.5rem;
  --bbt-border: #e5e7eb;
  --bbt-text: #1f2937;
  --bbt-muted: #6b7280;
  --bbt-bg: #ffffff;
  --bbt-accent: #111827;
  --bbt-primary-container: #ffdca4b3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bbt-text);
  background: var(--bbt-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header,
.site-footer,
.site-main,
.site-topbar {
  width: min(100% - 2rem, var(--bbt-max-width));
  margin-inline: auto;
}

/* see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/min for min() values */
/* see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/calc for how calc works */

.site-topbar-wrap,
.site-header-wrap,
.site-footer-wrap {
  border-bottom: 1px solid var(--bbt-border);
}

.site-footer-wrap {
  border-top: 1px solid var(--bbt-border);
  border-bottom: 0;
  margin-top: 4rem;
}

.site-topbar,
.site-header,
.site-footer {
  padding: 0.85rem 0;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
}

.site-title a,
.site-description {
  text-decoration: none;
}

.site-description {
  margin: 0;
  color: var(--bbt-muted);
}

.header-layout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.site-nav .menu,
.site-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.site-nav li {
  position: relative;
}

.site-nav .menu > li > a,
.site-nav .sub-menu a {
  display: block;
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-nav .menu > li > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
  background: var(--bbt-bg);
  border: 1px solid var(--bbt-border);
  z-index: 20;
}

.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu {
  display: block;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--bbt-text);
  cursor: pointer;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.menu-toggle-label {
  display: none;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.menu-toggle-icon::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-main {
  padding-block: 2rem;
}

.content-area {
  width: min(100%, var(--bbt-content-width));
}

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title,
.page-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.entry-meta,
.archive-description {
  color: var(--bbt-muted);
  font-size: 0.95rem;
}

.post-thumbnail {
  margin: 0 0 1.5rem;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.entry-content > *.alignwide {
  width: min(100% - 2rem, 1000px);
  max-width: 1000px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content > *.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-block-group,
.wp-block-cover,
.wp-block-columns {
  margin-bottom: 1.5rem;
}

.posts-list {
  display: grid;
  gap: 2rem;
}

.post-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bbt-border);
}

.read-more {
  font-weight: 600;
}

.pagination {
  margin-top: 2rem;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* Book library grid */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--bbt-gap);
  padding: 1rem 0;
}

.book-card {
  display: block;
  text-decoration: none;
  border-radius: 1px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--bbt-primary-container);
}

a.book-card {
  position: relative;
}

.book-card h2 {
  position: absolute;
  top: 0;
  left: 0;
}

.book-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.book-card img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 1px;
}

.book-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.book-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.book-card-subtitle {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--bbt-muted);
  margin: 0;
}

.book-card-meta {
  font-size: 0.85rem;
  color: var(--bbt-muted);
  margin: 0;
}

.book-card-genre {
  display: inline-block;
  background: #f0f0f0;
  border-radius: 1px;
  padding: 2px 8px;
  font-size: 0.8rem;
  color: var(--bbt-text);
  margin-top: 0.25rem;
  align-self: flex-start;
}

/* Single book detail page */

.single-book-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.single-book-cover {
  flex-shrink: 0;
  width: 220px;
}

.single-book-cover img {
  width: 100%;
  height: auto;
  border-radius: 1px;
  display: block;
}

.single-book-details {
  flex: 1;
  min-width: 0;
}

.single-book-subtitle {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--bbt-muted);
  margin: 0.25rem 0 0;
}

.single-book-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 1.5rem 0;
  padding: 0;
}

.single-book-meta dt {
  font-weight: 600;
  color: var(--bbt-text);
}

.single-book-meta dd {
  margin: 0;
  color: var(--bbt-muted);
}

@media (max-width: 700px) {
  .header-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    align-items: stretch;
  }

  .menu-toggle {
    display: flex;
    align-self: flex-start;
  }

  .site-nav .menu {
    display: block;
    width: 100%;
    padding-top: 0.5rem;
  }

  .site-nav .menu[hidden] {
    display: none;
  }

  .site-nav .menu > li {
    border-top: 1px solid var(--bbt-border);
  }

  .site-nav .menu > li:last-child {
    border-bottom: 1px solid var(--bbt-border);
  }

  .site-nav .menu > li > a,
  .site-nav .sub-menu a {
    padding: 0.75rem 0;
  }

  .site-nav .menu > li > .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0.5rem 1rem;
    border: 0;
    background: transparent;
  }

  .site-nav .sub-menu li {
    border-top: 0;
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .single-book-layout {
    flex-direction: column;
  }

  .single-book-cover {
    width: 160px;
  }
}

/* Book scanner page */

.scanner-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

#interactive.viewport {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 120px;
  margin: 0 auto 15px auto;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000;
  display: none;
  border: 3px solid #4caf50;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#interactive.viewport video,
#interactive.viewport canvas.drawingBuffer {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#interactive.viewport::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 0, 0, 0.8);
  box-shadow: 0 0 8px red;
  transform: translateY(-50%);
  z-index: 10;
}

#book-info {
  border: 1px solid var(--bbt-border);
  padding: 20px;
  border-radius: 8px;
  display: none;
  background-color: #f9f9f9;
  margin-top: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#book-info h3 {
  margin-bottom: 5px;
}

.scanner-subtitle {
  margin-top: 0;
  color: var(--bbt-muted);
  font-weight: normal;
}

.scanner-author {
  font-weight: bold;
  margin-bottom: 5px;
}

.scanner-publisher {
  margin-top: 0;
  font-size: 0.9em;
}

.scanner-pages {
  color: var(--bbt-muted);
  font-size: 0.85em;
}

#book-cover {
  max-width: 150px;
  margin: 10px auto 0 auto;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.scanner-wrap .controls {
  margin-bottom: 20px;
}

.scanner-wrap .controls button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#stop-btn {
  background-color: #ff4c4c;
  color: white;
  border: none;
  display: none;
}

#start-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.btn-icon {
  vertical-align: middle;
  flex-shrink: 0;
}

/* Duplicate book action panel */

#duplicate-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bbt-border);
}

.scanner-status {
  font-size: 0.9em;
  color: var(--bbt-muted);
  margin-bottom: 1rem;
}

.action-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.action-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--bbt-border);
  background: var(--bbt-bg);
  color: var(--bbt-text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.action-btn:hover {
  background: var(--bbt-text);
  color: var(--bbt-bg);
}

.action-remove {
  border-color: #dc2626;
  color: #dc2626;
}

.action-remove:hover {
  background: #dc2626;
  color: #fff;
}

.action-shelf {
  border-color: #2563eb;
  color: #2563eb;
}

.action-shelf:hover {
  background: #2563eb;
  color: #fff;
}

.action-loan {
  border-color: #d97706;
  color: #d97706;
}

.action-loan:hover {
  background: #d97706;
  color: #fff;
}

.action-add {
  border-color: #16a34a;
  color: #16a34a;
}

.action-add:hover {
  background: #16a34a;
  color: #fff;
}

.action-return {
  border-color: #7c3aed;
  color: #7c3aed;
}

.action-return:hover {
  background: #7c3aed;
  color: #fff;
}

#loanee-name {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 0.75rem;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
  text-align: center;
}

/* Login prompt */

.login-prompt {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bbt-muted);
}

.login-prompt a {
  font-weight: 600;
  text-decoration: underline;
}

.library-actions {
  margin-bottom: 1rem;
}

/* Shelf filter tabs */

.shelf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.shelf-tab {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--bbt-border);
  color: var(--bbt-text);
  background: var(--bbt-bg);
  transition: background 0.2s, color 0.2s;
}

.shelf-tab:hover {
  background: var(--bbt-accent);
  color: var(--bbt-bg);
}

.shelf-tab--active {
  background: var(--bbt-accent);
  color: var(--bbt-bg);
}

/* Star ratings */

.star {
  font-size: 1rem;
  line-height: 1;
}

.star-full {
  color: #f59e0b;
}

.star-half {
  color: #f59e0b;
  opacity: 0.6;
}

.star-empty {
  color: #d1d5db;
}

.book-card-rating {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  pointer-events: none;
}

.book-card-rating .star {
  font-size: 0.75rem;
}

.book-card-rating .star-full,
.book-card-rating .star-half {
  color: #facc15;
}

.book-card-rating .star-empty {
  color: rgba(255, 255, 255, 0.3);
}

/* Single book owner link */

.single-book-owner {
  color: var(--bbt-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.single-book-owner a {
  font-weight: 600;
  text-decoration: underline;
}

.single-book-borrowed {
  color: var(--bbt-accent, #2563eb);
  font-weight: 600;
}

/* Owner controls on single book page */

.owner-controls {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--bbt-border);
  border-radius: 8px;
  background: var(--bbt-card);
}

.owner-controls h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.owner-control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bbt-border);
}

.owner-control-row:last-child {
  border-bottom: none;
}

.owner-control-label {
  font-weight: 600;
  min-width: 4rem;
}

.owner-control-value {
  flex: 1;
  color: var(--bbt-muted);
}

.owner-shelf-options,
.owner-loan-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0 0.5rem;
}

.owner-loan-input input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--bbt-border);
  border-radius: 4px;
  font-size: 0.95rem;
}

.owner-controls .action-btn,
.owner-library-toggle .action-btn {
  min-width: 8rem;
  text-align: center;
}

.owner-library-toggle {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bbt-border);
  text-align: center;
}

@media (max-width: 700px) {
  .owner-control-row {
    flex-wrap: wrap;
  }

  .owner-control-value {
    width: 100%;
    order: 3;
  }
}

/* Rating & review section on single book */

.single-book-rating-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bbt-border);
}

.single-book-rating-section h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.star-display {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.star-display .star {
  font-size: 1.25rem;
}

.rating-number {
  font-size: 0.85rem;
  color: var(--bbt-muted);
  margin-left: 0.5rem;
}

.single-book-review {
  font-style: italic;
  border-left: 3px solid var(--bbt-border);
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: var(--bbt-text);
}

.muted {
  color: var(--bbt-muted);
  font-size: 0.9rem;
}

.review-edit-panel {
  margin-top: 1rem;
}

.review-edit-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--bbt-accent);
}

.review-form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.review-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

.star-selector {
  display: flex;
  gap: 4px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f59e0b;
  padding: 0;
  line-height: 1;
}

.star-btn:hover {
  transform: scale(1.2);
}

/* Also owned by section */

.also-owned-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bbt-border);
}

.also-owned-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.also-owned-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.also-owned-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
}

.also-owned-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.also-owned-name {
  font-weight: 600;
  text-decoration: underline;
}

.also-owned-rating .star {
  font-size: 0.85rem;
}

.also-owned-avail {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.avail-available {
  background: #dcfce7;
  color: #166534;
}

.avail-loaned {
  background: #fef3c7;
  color: #92400e;
}

.avail-reading {
  background: #dbeafe;
  color: #1e40af;
}

.avail-removed {
  background: #f3f4f6;
  color: #6b7280;
}

/* Browse libraries filter bar */

.browse-filters {
  margin-bottom: 1.5rem;
}

.browse-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.browse-filter-form select,
.browse-filter-form input[type="text"] {
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
  font-family: inherit;
}

.browse-filter-form select {
  min-width: 160px;
}

.browse-filter-form input[type="text"] {
  flex: 1;
  min-width: 200px;
}

/* Book search form (scanner page) */

.book-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 1rem auto;
}

.book-search-form input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
  font-family: inherit;
}

#search-results {
  max-width: 500px;
  margin: 0 auto;
}

.search-loading,
.search-empty {
  text-align: center;
  color: var(--bbt-muted);
  padding: 1rem;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
  background: var(--bbt-bg);
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.5rem;
  font-family: inherit;
  font-size: inherit;
  transition: background 0.15s;
}

.search-result-card:hover {
  background: #f9fafb;
}

.search-thumb {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.search-thumb-placeholder {
  background: #e5e7eb;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-result-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-info span {
  font-size: 0.85rem;
  color: var(--bbt-muted);
}

/* Notifications page */

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
}

.notification-pending {
  border-left: 3px solid #f59e0b;
}

.notification-approved {
  border-left: 3px solid #16a34a;
}

.notification-declined {
  border-left: 3px solid #dc2626;
}

.notification-returned {
  border-left: 3px solid #2563eb;
}

.notification-completed,
.notification-dismissed {
  border-left: 3px solid var(--bbt-muted);
  opacity: 0.7;
}

.notif-cover {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.notif-details {
  flex: 1;
  min-width: 0;
}

.notif-text {
  margin: 0 0 0.25rem;
}

.notif-date {
  font-size: 0.8rem;
  color: var(--bbt-muted);
}

.notif-status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.notif-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.notif-status-approved {
  background: #dcfce7;
  color: #166534;
}

.notif-status-declined {
  background: #fee2e2;
  color: #991b1b;
}

.notif-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Account settings page */

.settings-section {
  max-width: 500px;
}

.account-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.settings-field input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
  font-family: inherit;
}

.settings-fieldset {
  border: 1px solid var(--bbt-border);
  border-radius: 6px;
  padding: 1rem;
}

.settings-fieldset legend {
  font-weight: 600;
  padding: 0 0.5rem;
}

.settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.settings-toggle:last-child {
  margin-bottom: 0;
}

.settings-toggle input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Responsive additions */

@media (max-width: 700px) {
  .shelf-tabs {
    gap: 0.35rem;
  }

  .shelf-tab {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .also-owned-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-actions {
    width: 100%;
  }

  .notif-actions .action-btn {
    flex: 1;
  }

  .browse-filter-form {
    flex-direction: column;
  }

  .browse-filter-form select,
  .browse-filter-form input[type="text"] {
    width: 100%;
    min-width: 0;
  }

  .book-search-form {
    flex-direction: column;
  }
}
