html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-primary: #0c3b6f;
  --bs-primary-rgb: 12, 59, 111;
}

h3, .h3 {
  font-weight: 500;
}

.btn {
  font-weight: 500;
}

.btn-primary {
  background-color: #0c3b6f;
  border-color: #0c3b6f;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #092c53;
  border-color: #092c53;
}

.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-bottom: 60px;
}

.login-layout {
  margin: 0;
  margin-bottom: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f3f5fb 0%, #ffffff 50%, #f3f5fb 100%);
  display: flex;
}

.login-root {
  flex: 1;
  display: flex;
}

.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
}

.login-brand {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 5;
}

.login-brand img {
  max-width: 200px;
  height: auto;
}

.login-hero {
  flex: 0 0 55%;
  position: relative;
  min-height: 100vh;
  background-image: linear-gradient(130deg, rgba(7, 20, 39, 0.6), rgba(7, 20, 39, 0.25)), url("../images/login.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
}

.login-content {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem clamp(2rem, 6vw, 4rem);
}

.login-box {
  width: 100%;
  border: 1px solid #e0e5ef;
  border-radius: 0.3rem;
  background-color: #ffffff;
  padding: clamp(2.75rem, 5vw, 3.25rem);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.login-title {
  letter-spacing: 0.01em;
}

.login-subtitle {
  font-size: 0.96rem;
  line-height: 1.6;
}

.login-input {
  padding: 0.85rem 1rem;
  border-radius: 0.3rem;
  border: 1px solid #d4d9e3;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
  border-color: #164b84;
  box-shadow: 0 0 0 0.15rem rgba(22, 75, 132, 0.18);
}

.btn-login {
  background-color: #0d3f82;
  border-color: #0d3f82;
  border-radius: 0.3rem;
  padding: 1rem 1.25rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.btn-login:hover,
.btn-login:focus {
  background-color: #0b356d;
  border-color: #0b356d;
  color: #ffffff;
}

.btn-login:focus {
  box-shadow: 0 0 0 0.15rem rgba(13, 63, 130, 0.26);
}

.login-links {
  margin-top: 1.25rem;
}

@media (max-width: 1199.98px) {
  .login-hero {
    flex-basis: 45%;
  }

  .login-content {
    max-width: 520px;
  }
}

@media (max-width: 991.98px) {
  .login-layout {
    background: #f7f9fc;
  }

  .login-page {
    flex-direction: column;
  }

  .login-brand {
    position: static;
    display: flex;
    justify-content: center;
    margin: 2rem 0 0;
  }

  .login-brand img {
    max-width: 180px;
  }

  .login-hero {
    display: none;
  }

  .login-content {
    width: 100%;
    max-width: 100%;
    padding: 3rem 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .login-content {
    padding: 2.5rem 1.5rem;
  }

  .login-box {
    padding: 2.25rem 1.75rem;
  }
}

/* Tire Library Dashboard */

.tl-home {
  background-color: #ffffff;
  min-height: calc(100vh - 120px);
}

.tl-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #dbe1ea;
  padding: 0.75rem 0;
}

.tire-detail-page .specs-grid {
  margin-top: 0;
  margin-bottom: 0;
}

.tire-detail-media-card {
  display: flex;
  flex-direction: column;
}

.tire-detail-image {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
}

.tire-detail-image__img {
  max-height: 190px;
  width: auto;
  max-width: 100%;
}

.tire-detail-image__placeholder {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
}

.tire-detail-actions {
  width: 100%;
}

.tire-detail-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tire-detail-action-stack form {
  width: 100%;
}

.tire-detail-action-btn {
  width: 100%;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.pattern-detail-media {
  min-height: 220px;
  border-radius: 0.3rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.pattern-detail-media__img {
  max-height: 200px;
  width: auto;
  max-width: 100%;
}

.pattern-detail-media__placeholder {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.pattern-sizes-legend {
  font-size: 0.85rem;
}

.pattern-size-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern-size-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.pattern-rebate-card {
  border-width: 1px;
  border-color: #dee3ed;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern-rebate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
}

@media (max-width: 767.98px) {
  .tire-detail-action-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}


.tl-topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tl-topbar__brand {
  display: flex;
  align-items: center;
}

.tl-topbar__logo {
  height: 44px;
  width: auto;
}

.tl-topbar__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid #cbd4e1;
  border-radius: 0.3rem;
  max-width: 520px;
  background-color: #ffffff;
}

.tl-topbar__search .form-control {
  border: none;
  padding: 0;
  font-size: 0.95rem;
}

.tl-topbar__search .form-control:focus {
  box-shadow: none;
}

.tl-topbar__search-icon {
  display: inline-flex;
  color: #56759a;
}

.tl-topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.tl-topbar__nav-link {
  color: #113a67;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.3rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tl-topbar__nav-link:hover,
.tl-topbar__nav-link:focus {
  background-color: rgba(12, 59, 111, 0.08);
  color: #0c3b6f;
}

.tl-topbar__nav-link.is-active {
  background-color: rgba(12, 59, 111, 0.12);
  color: #0c3b6f;
}

.tl-topbar__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #113a67;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tl-topbar__profile {
  position: relative;
  display: flex;
  align-items: center;
}

.tl-topbar__avatar-btn {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tl-topbar__avatar-btn:hover .tl-topbar__avatar,
.tl-topbar__avatar-btn:focus .tl-topbar__avatar {
  background-color: #0d447a;
}

.tl-topbar__avatar-btn:focus-visible {
  outline: 3px solid rgba(17, 58, 103, 0.25);
  outline-offset: 3px;
}

.tl-topbar__avatar-btn.is-active .tl-topbar__avatar {
  box-shadow: 0 0 0 3px rgba(17, 58, 103, 0.12);
}

.tl-topbar__menu {
  padding: 0.5rem 0;
  border: 1px solid #dbe1ea;
  border-radius: 0.3rem;
  min-width: 200px;
}

.tl-topbar__menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
  color: #113a67;
  font-size: 0.9rem;
}

.tl-topbar__menu-item:hover,
.tl-topbar__menu-item:focus {
  background-color: #f0f4fa;
  color: #0a2953;
}

.tl-topbar__menu-form .tl-topbar__menu-item {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.tl-topbar__menu-form .tl-topbar__menu-item:focus-visible {
  outline: none;
}

.tl-topbar__menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: #4a5a6a;
}

.tl-topbar__menu-item:hover .tl-topbar__menu-icon,
.tl-topbar__menu-item:focus .tl-topbar__menu-icon {
  color: #113a67;
}

.tl-topbar__menu-form {
  margin: 0;
}

.tl-topbar__menu .dropdown-divider {
  margin: 0.35rem 0;
  border-color: #e4eaf2;
}

.tl-dashboard {
  padding: 3rem 0 4rem;
}

.compare-page .compare-content {
  min-height: calc(100vh - 120px);
}

.compare-table-wrapper {
  overflow-x: auto;
}

.compare-table {
  min-width: 640px;
}

.compare-table__sticky {
  position: sticky;
  left: 0;
  background-color: #ffffff;
  z-index: 2;
  font-weight: 600;
  width: 180px;
}

.compare-table__sticky.bg-primary {
  background-color: var(--bs-primary);
  color: #fff;
}

.compare-table thead th {
  background-color: var(--bs-primary);
  color: #fff;
}

.compare-table__image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  border: 1px solid #e4eaf2;
  border-radius: 0.3rem;
  background-color: #f8fafc;
  overflow: hidden;
}

.compare-table__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.compare-table__remove-form {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.compare-table tbody tr:nth-child(odd) {
  background-color: #f8fafc;
}

.tl-primary-action {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2.5rem;
  border-radius: 0.3rem;
  background-color: #0c3b6f;
  border-color: #0c3b6f;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tl-primary-action:hover,
.tl-primary-action:focus {
  background-color: #092c53;
  border-color: #092c53;
}

.tl-filter-intro {
  font-size: 1rem;
  color: #4a5a6a;
}

.tl-filter-row {
  margin-top: -0.5rem;
}

footer .tl-footer-link,
.footer .tl-footer-link {
  color: rgb(241, 186, 11) !important;
  text-decoration: none;
}

footer .tl-footer-link:hover,
footer .tl-footer-link:focus,
.footer .tl-footer-link:hover,
.footer .tl-footer-link:focus {
  color: rgb(220, 170, 10) !important;
  text-decoration: underline;
}

.tl-panel {
  border: 1px solid #000000;
  border-radius: 0.3rem;
  padding: 1.75rem;
  background-color: #ffffff;
}

.tl-panel__title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #102a43;
}

.tl-select {
  border-radius: 0.3rem;
  padding: 0.7rem 0.95rem;
  border-color: #ccd3df;
  font-size: 0.95rem;
}

.tl-select:focus {
  border-color: #0c3b6f;
  box-shadow: 0 0 0 0.2rem rgba(12, 59, 111, 0.15);
}

.tl-search-btn {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  padding-inline: 1.75rem;
  border-radius: 0.3rem;
}

.tl-reset-btn {
  border-radius: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  padding-inline: 1.5rem;
}

.tl-panel__brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem 1.25rem;
}

.tl-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  background-color: transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tl-brand-item img {
  max-width: 110px;
  max-height: 40px;
  width: auto;
}

.tl-brand-item:hover,
.tl-brand-item:focus {
  border-color: #0c3b6f;
  transform: translateY(-1px);
}

@media (max-width: 1199.98px) {
  .tl-topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo . profile"
      "nav nav nav"
      "search search search";
    gap: 0.75rem 0;
    align-items: center;
  }

  .tl-topbar__brand {
    grid-area: logo;
  }

  .tl-topbar__profile {
    grid-area: profile;
    justify-self: end;
  }

  .tl-topbar__nav {
    grid-area: nav;
    justify-content: center;
  }

  .tl-topbar__search {
    grid-area: search;
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .tl-topbar__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  .tl-topbar__brand {
    flex: 0 0 auto;
  }

  .tl-topbar__search {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.35rem 0.75rem;
  }

  .tl-topbar__profile {
    flex: 0 0 auto;
  }

  .tl-topbar__hamburger {
    flex: 0 0 auto;
  }

  .tl-panel {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-brand-item {
    transition: none;
  }
}

/* Settings Page */

.settings-page {
  background-color: #f7f8fc;
}

.settings-content {
  padding: 3rem 0;
}

.settings-container {
  max-width: 960px;
}

.settings-alert {
  border-radius: 0.3rem;
  border: 1px solid rgba(34, 111, 177, 0.2);
  background-color: rgba(34, 111, 177, 0.08);
  color: #0c3b6f;
}

.settings-card {
  background-color: #ffffff;
  border: 1px solid #ccd6e2;
  border-radius: 0.3rem;
  box-shadow: 0 8px 20px rgba(12, 29, 54, 0.04);
}

.settings-card-header {
  border-bottom: 1px solid #e0e7f1;
  padding: 1.5rem 1.75rem 1.25rem;
}

.settings-card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #102a43;
  margin-bottom: 0.35rem;
}

.settings-card-header p {
  margin: 0;
  color: #607086;
  font-size: 0.95rem;
}

.settings-card-body {
  padding: 1.75rem;
}

.settings-input {
  border-radius: 0.3rem;
  padding: 0.7rem 0.95rem;
  border-color: #cbd4e1;
}

.settings-input:focus {
  border-color: #0c3b6f;
  box-shadow: 0 0 0 0.18rem rgba(12, 59, 111, 0.16);
}

.settings-submit {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  padding-inline: 2rem;
  border-radius: 0.3rem;
  background-color: #0c3b6f;
  border-color: #0c3b6f;
}

.settings-submit:hover,
.settings-submit:focus {
  background-color: #092c53;
  border-color: #092c53;
}

.settings-logo-input input[type="file"] {
  padding: 0.6rem;
}

.settings-logo-preview {
  border: 1px dashed #c9d3e4;
  border-radius: 0.3rem;
  padding: 0.5rem 0.75rem;
  background-color: #f9fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-logo-preview img {
  max-height: 48px;
  width: auto;
}

@media (max-width: 767.98px) {
  .settings-card-header,
  .settings-card-body {
    padding: 1.25rem;
  }
}

.tire-catalog-page details.filter-panel {
  border: 1px solid #dbe1ea;
  border-radius: 0.3rem;
  padding: 0.75rem 1rem;
  background-color: #f7f9fd;
}

.tire-catalog-page details.filter-panel > summary {
  cursor: pointer;
  list-style: none;
}

.tire-catalog-page details.filter-panel > summary svg {
  transition: transform 0.2s ease;
}

.tire-catalog-page details.filter-panel[open] > summary {
  margin-bottom: 0.75rem;
}

.tire-catalog-page details.filter-panel[open] > summary svg {
  transform: rotate(180deg);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #44546a;
}

.filter-options {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e4e8f1;
  border-radius: 0.3rem;
  padding: 0.75rem;
  background-color: #ffffff;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.filter-check:last-child {
  margin-bottom: 0;
}

.filter-dropdown select {
  width: 100%;
}

.tire-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 1.5rem;
}

.tire-results-grid--classic {
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
}

.tire-card {
  border: 1px solid #cfd7e6;
  border-radius: 0.3rem;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.tire-card--classic {
  display: flex;
  padding: 1rem;
  gap: 1rem;
  align-items: stretch;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}

.tire-card--classic:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.tire-card__image-column {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
  background-color: #ffffff;
  overflow: hidden;
  min-height: 100px;
}

.tire-card__image {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.tire-card__media-placeholder {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #94a3b8;
}

.tire-card__classic-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tire-card__classic-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  padding-right: 80px;
}

.tire-card__brand img {
  max-height: 28px;
  width: auto;
}

.tire-card__brand span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
}

.tire-card__actions {
  display: inline-flex;
  gap: 0.25rem;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.tire-card__icon-form {
  margin: 0;
}

.tire-card__icon-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c3b6f;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
  z-index: 3;
  cursor: pointer;
}

.tire-card__icon-button span {
  pointer-events: none;
}

.tire-card__icon-button svg {
  width: 16px;
  height: 16px;
}

.tire-card__icon-button svg path,
.tire-card__icon-button svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tire-card__icon-button:hover {
  color: #092c53;
  background-color: rgba(12, 59, 111, 0.08);
}

.tire-card__icon-button.is-active {
  background-color: #0c3b6f;
  color: #fff;
}

.tire-card__title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tire-card__subtext {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.tire-card__spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.tire-card__spec-table th {
  font-weight: 500;
  color: #64748b;
  padding: 0.35rem 0.5rem;
  text-align: left;
  width: auto;
}

.tire-card__spec-table td {
  font-weight: 500;
  color: #0f172a;
  padding: 0.35rem 0.5rem;
  text-align: left;
  width: auto;
}

.tire-card__spec-table tr:nth-child(odd) {
  background-color: #f8fafc;
}

.tire-card__footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tire-card__footer .btn {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.375rem 0.75rem;
}

@media (max-width: 767.98px) {
  .tire-card--classic {
    flex-direction: column;
    padding: 1rem;
  }

  .tire-results-grid {
    grid-template-columns: 1fr;
  }

  .tire-card__image-column {
    width: 100%;
    min-height: 150px;
    flex: none;
  }

  .tire-card__image {
    max-height: 150px;
  }
}

/* Mobile Hamburger Menu */

.tl-topbar__hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #113a67;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 0.3rem;
  transition: background-color 0.15s ease;
}

.tl-topbar__hamburger:hover,
.tl-topbar__hamburger:focus {
  background-color: #f0f4fa;
}

.tl-mobile-nav {
  background-color: #ffffff;
  border-left: 1px solid #dbe1ea;
}

.tl-mobile-nav .offcanvas-header {
  border-bottom: 1px solid #e4eaf2;
  padding: 1rem 1.25rem;
}

.tl-mobile-nav .offcanvas-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #113a67;
}

.tl-mobile-nav .offcanvas-body {
  padding: 1rem 0;
}

.tl-mobile-nav__menu {
  display: flex;
  flex-direction: column;
}

.tl-mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: #113a67;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}

.tl-mobile-nav__link:hover,
.tl-mobile-nav__link:focus {
  background-color: #f0f4fa;
  color: #0a2953;
}

.tl-mobile-nav__link.is-active {
  background-color: #e8f0f8;
  color: #0c3b6f;
  border-right: 3px solid #0c3b6f;
}

.tl-mobile-nav__link .mdi {
  font-size: 1.25rem;
  color: #56759a;
}

.tl-mobile-nav__link:hover .mdi,
.tl-mobile-nav__link:focus .mdi,
.tl-mobile-nav__link.is-active .mdi {
  color: #0c3b6f;
}

.tl-mobile-nav__link--button {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.tl-mobile-nav__form {
  margin: 0;
}

.tl-mobile-nav__divider {
  margin: 0.5rem 1.25rem;
  border-color: #e4eaf2;
}

/* Enhanced Search Dropdown */

.tl-topbar__search-wrapper {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.tl-search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #dbe1ea;
  border-radius: 0.3rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 1050;
  display: none;
  overflow: hidden;
}

.tl-search-dropdown.is-open {
  display: block;
}

.tl-search-dropdown__tabs {
  display: flex;
  border-bottom: 1px solid #e4eaf2;
  background-color: #f8fafc;
}

.tl-search-dropdown__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border: none;
  background: transparent;
  color: #607086;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tl-search-dropdown__tab:hover,
.tl-search-dropdown__tab:focus {
  background-color: #e8f0f8;
  color: #113a67;
}

.tl-search-dropdown__tab.is-active {
  background-color: #ffffff;
  color: #0c3b6f;
  border-bottom: 2px solid #0c3b6f;
  margin-bottom: -1px;
}

.tl-search-dropdown__tab .mdi {
  font-size: 1rem;
}

.tl-search-dropdown__content {
  max-height: 360px;
  overflow-y: auto;
}

.tl-search-dropdown__panel {
  display: none;
  padding: 0.75rem 0;
}

.tl-search-dropdown__panel.is-active {
  display: block;
}

.tl-search-dropdown__section {
  margin-bottom: 0.5rem;
}

.tl-search-dropdown__section:last-child {
  margin-bottom: 0;
}

.tl-search-dropdown__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c8aa3;
}

.tl-search-dropdown__header .mdi {
  font-size: 0.9rem;
}

.tl-search-dropdown__list {
  display: flex;
  flex-direction: column;
}

.tl-search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: #113a67;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.tl-search-dropdown__item:hover,
.tl-search-dropdown__item:focus {
  background-color: #f0f4fa;
  color: #0a2953;
}

.tl-search-dropdown__item-img {
  width: 40px;
  height: 40px;
  border-radius: 0.3rem;
  object-fit: contain;
  background-color: #f8fafc;
  border: 1px solid #e4eaf2;
}

.tl-search-dropdown__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.3rem;
  background-color: #f0f4fa;
  color: #56759a;
  font-size: 1.25rem;
}

.tl-search-dropdown__item-content {
  flex: 1;
  min-width: 0;
}

.tl-search-dropdown__item-title {
  font-weight: 500;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-search-dropdown__item-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-search-dropdown__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  color: #7c8aa3;
}

.tl-search-dropdown__empty .mdi {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: #cbd4e1;
}

.tl-search-dropdown__empty p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .tl-topbar__search-wrapper {
    flex: 1;
    max-width: none;
    min-width: 0;
  }

  .tl-search-dropdown {
    position: fixed;
    top: 60px;
    left: 0.5rem;
    right: 0.5rem;
    max-height: calc(100vh - 80px);
  }

  .tl-search-dropdown__content {
    max-height: calc(100vh - 140px);
  }
}

