:root {
  --brand: #f59e0b;
  --brand-hover: #d97706;
  --app-bg: #04060a;
  --app-surface: rgba(12, 18, 31, 0.82);
  --app-surface-solid: #0b101a;
  --app-border: rgba(148, 163, 184, 0.18);
  --app-muted: #94a3b8;
  --app-text: #e5eefb;
  --app-heading: #f8fafc;
  --app-radius: 1.25rem;
  --app-shadow: 0 22px 60px rgba(15, 23, 42, 0.32);
  --app-sidebar-width: 280px;
  --app-sidebar-collapsed-width: 96px;
  --bs-primary: var(--brand);
  --bs-primary-rgb: 245, 158, 11;
  --bs-body-font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

html[data-bs-theme="light"] {
  --app-bg: #eef2f7;
  --app-surface: rgba(255, 255, 255, 0.88);
  --app-surface-solid: #ffffff;
  --app-border: rgba(148, 163, 184, 0.22);
  --app-muted: #64748b;
  --app-text: #0f172a;
  --app-heading: #020617;
  --app-shadow: 0 22px 60px rgba(148, 163, 184, 0.18);
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--app-text);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), var(--app-bg));
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
}

body::before {
  top: -8rem;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background: rgba(245, 158, 11, 0.12);
}

body::after {
  top: 3rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
  background: rgba(59, 130, 246, 0.08);
}

html[data-bs-theme="light"] body {
  background: linear-gradient(180deg, #f8fafc, var(--app-bg));
}

html[data-bs-theme="light"] body::before {
  background: rgba(245, 158, 11, 0.12);
}

html[data-bs-theme="light"] body::after {
  background: rgba(59, 130, 246, 0.06);
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--app-heading);
}

.text-muted,
.text-secondary {
  color: var(--app-muted) !important;
}

.bg-body-tertiary,
.bg-body-secondary {
  background-color: var(--app-surface) !important;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-color: #1f1300;
  font-weight: 700;
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: rgba(245, 158, 11, 0.4);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: #1f1300;
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
}

.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-light {
  --bs-btn-border-width: 1px;
}

.btn,
.form-control,
.form-select,
.input-group-text,
.card,
.dropdown-menu,
.offcanvas,
.modal-content,
.accordion-item {
  border-radius: var(--app-radius);
}

.form-control,
.form-select,
.input-group-text {
  min-height: 2.9rem;
  border-color: var(--app-border);
  background-color: rgba(15, 23, 42, 0.28);
  color: var(--app-text);
}

.form-control::placeholder,
.form-select::placeholder {
  color: var(--app-muted);
}

html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select,
html[data-bs-theme="light"] .input-group-text {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--app-text);
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn-check:focus + .btn {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 0.24rem rgba(245, 158, 11, 0.18);
}

.form-label,
label {
  font-weight: 600;
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.app-surface {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  flex: 0 0 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.42));
  color: #fff2d6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-mark i {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.theme-toggle {
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--app-text);
}

.theme-toggle:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.38);
}

.public-navbar {
  --bs-navbar-color: var(--app-muted);
  --bs-navbar-hover-color: var(--app-text);
  --bs-navbar-active-color: var(--app-text);
  --bs-navbar-brand-color: var(--app-text);
  --bs-navbar-brand-hover-color: var(--app-text);
  --bs-navbar-toggler-border-color: var(--app-border);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245, 158, 11, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background: rgba(15, 23, 42, 0.68);
  border-bottom: 1px solid var(--app-border);
  backdrop-filter: blur(18px);
}

html[data-bs-theme="light"] .public-navbar,
html[data-bs-theme="light"] .app-topbar,
html[data-bs-theme="light"] .public-footer {
  background: rgba(255, 255, 255, 0.82);
}

.public-navbar .nav-link {
  padding: 0.65rem 0.9rem;
  border-radius: 0.95rem;
  transition: 0.2s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
  color: var(--app-text);
  background: rgba(245, 158, 11, 0.12);
}

.public-user-chip {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--app-text);
}

.public-main {
  padding: 3rem 0 4rem;
}

.public-section {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: calc(var(--app-radius) + 0.35rem);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(18px);
}

.public-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.public-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.public-footer {
  border-top: 1px solid var(--app-border);
  background: rgba(15, 23, 42, 0.48);
}

.hero-stat,
.stat-card,
.table-card,
.form-card,
.detail-card,
.empty-state,
.news-card,
.company-card,
.gallery-thumb,
.metric-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: calc(var(--app-radius) + 0.1rem);
  box-shadow: var(--app-shadow);
}

.hero-stat,
.metric-card,
.stat-card {
  padding: 1.25rem;
}

.hero-stat small,
.stat-card small,
.metric-card small {
  color: var(--app-muted);
}

.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1,
.page-header .h1,
.page-header .h2,
.page-header .h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.breadcrumb {
  margin-bottom: 0.5rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--app-muted);
}

.breadcrumb-item.active {
  color: var(--app-text);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  width: var(--app-sidebar-collapsed-width);
  background: rgba(2, 6, 23, 0.82);
  border-right: 1px solid var(--app-border);
  backdrop-filter: blur(18px);
  transition: width 0.22s ease;
  overflow: hidden;
}

html[data-bs-theme="light"] .app-sidebar {
  background: rgba(255, 255, 255, 0.88);
}

.app-sidebar .offcanvas-body,
.app-sidebar-inner {
  min-height: 100%;
}

.app-sidebar .app-sidebar-inner {
  gap: 0.75rem !important;
}

.app-sidebar .brand-mark {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  flex-basis: 3rem;
  border-radius: 0.95rem;
}

.sidebar-brand-copy,
.sidebar-company,
.sidebar-label {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.9rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.25rem 0.25rem;
}

.sidebar-brand-copy {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  padding-top: 0.1rem;
}

.sidebar-brand-copy .small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.sidebar-brand-copy .h5 {
  font-size: 1rem;
  line-height: 1.2;
}

.app-sidebar-link {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.85rem;
  width: 100%;
  min-height: 3rem;
  margin-inline: 0;
  padding: 0.55rem 0.85rem;
  color: var(--app-muted);
  border: 1px solid transparent;
  border-radius: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.app-sidebar-link:hover,
.app-sidebar-link.active {
  color: var(--app-text);
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05));
}

.app-sidebar-link i {
  color: var(--brand);
  min-width: 1.25rem;
  text-align: center;
  font-size: 1rem;
}

.sidebar-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.app-sidebar .btn {
  min-height: 3rem;
}

.app-sidebar nav {
  gap: 0.45rem !important;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: rgba(15, 23, 42, 0.72);
  border-bottom: 1px solid var(--app-border);
  backdrop-filter: blur(18px);
}

.user-chip {
  min-width: 12rem;
}

.app-topbar-search {
  max-width: 420px;
}

.app-main {
  flex: 1;
  min-width: 0;
}

.app-main-content {
  padding: 1.5rem;
}

.card,
.table-card,
.form-card,
.detail-card {
  border-color: var(--app-border);
  background: var(--app-surface);
}

.card-header,
.table-card .card-header,
.form-card .card-header {
  background: transparent;
  border-bottom-color: var(--app-border);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--app-text);
  --bs-table-border-color: var(--app-border);
  --bs-table-hover-bg: rgba(245, 158, 11, 0.08);
  margin-bottom: 0;
}

.table thead th {
  color: var(--app-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-width: 1px;
}

.table-card .card-body {
  padding: 0;
}

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

.detail-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

html[data-bs-theme="light"] .detail-item {
  background: rgba(15, 23, 42, 0.03);
}

.detail-item small {
  display: block;
  color: var(--app-muted);
  margin-bottom: 0.35rem;
}

.detail-item strong,
.detail-item span {
  display: block;
}

.empty-state {
  padding: 2.75rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: rgba(245, 158, 11, 0.16);
  color: var(--brand);
  font-size: 1.6rem;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-soft-warning {
  color: #ffecb5;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.24);
}

.badge-soft-success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.2);
}

.badge-soft-danger {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.2);
}

.badge-soft-info {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.2);
}

.badge-soft-secondary {
  color: var(--app-text);
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="light"] .badge-soft-warning {
  color: #92400e;
}

html[data-bs-theme="light"] .badge-soft-success {
  color: #166534;
}

html[data-bs-theme="light"] .badge-soft-danger {
  color: #991b1b;
}

html[data-bs-theme="light"] .badge-soft-info {
  color: #1d4ed8;
}

.auth-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.auth-card {
  overflow: hidden;
}

.auth-visual {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(180, 83, 9, 0.9)),
    url("/static/images/kislik_bakim.png") center/cover;
  color: #fffaf0;
}

.news-card {
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.hover-lift {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
}

.company-hero {
  overflow: hidden;
}

.company-card {
  height: 100%;
  overflow: hidden;
}

.company-card__logo,
.company-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  object-fit: cover;
  border-radius: 1.15rem;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.04);
}

.company-card__logo--large {
  width: 88px;
  height: 88px;
  min-width: 88px;
}

.company-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.34));
  color: #fff4da;
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 1.35rem;
}

.company-avatar--large {
  width: 88px;
  height: 88px;
  min-width: 88px;
  font-size: 1.8rem;
}

.company-meta {
  display: grid;
  gap: 0.9rem;
}

.company-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--app-muted);
}

.company-meta li i {
  color: var(--brand);
  margin-top: 0.15rem;
}

.appointment-form-card .card-body {
  padding: 2rem;
}

.appointment-step-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--app-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

html[data-bs-theme="light"] .appointment-step-card {
  background: rgba(15, 23, 42, 0.03);
}

.appointment-step-card i {
  color: var(--brand);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.appointment-section-title {
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.success-icon {
  width: 5.5rem;
  height: 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.6rem;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 2.6rem;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.success-summary {
  padding: 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: calc(var(--app-radius) + 0.1rem);
  background: rgba(255, 255, 255, 0.03);
}

html[data-bs-theme="light"] .success-summary {
  background: rgba(15, 23, 42, 0.03);
}

.news-card-image,
.article-cover,
.gallery-thumb img,
.gallery-preview img {
  width: 100%;
  object-fit: cover;
}

.news-card-image {
  aspect-ratio: 16 / 10;
}

.article-cover {
  max-height: 460px;
  border-radius: calc(var(--app-radius) + 0.1rem);
}

.article-body {
  white-space: pre-line;
  line-height: 1.8;
}

.quill-editor {
  min-height: 320px;
}

.ql-container {
  min-height: 320px;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color) !important;
}

.ql-toolbar {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color) !important;
}

.ql-editor {
  min-height: 320px;
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .ql-toolbar .ql-stroke {
  stroke: #cbd5e1;
}

[data-bs-theme="dark"] .ql-toolbar .ql-fill {
  fill: #cbd5e1;
}

[data-bs-theme="dark"] .ql-toolbar .ql-picker {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .ql-picker-options {
  background: #111827;
  border-color: #334155;
}

.news-content {
  line-height: 1.8;
}

.news-content h1,
.news-content h2,
.news-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-content p,
.news-content ul,
.news-content ol,
.news-content blockquote {
  margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
  padding-left: 1.4rem;
}

.news-content a {
  color: var(--brand);
  text-decoration: underline;
}

.news-content blockquote {
  border-left: 4px solid var(--brand, #f59e0b);
  padding-left: 1rem;
  color: var(--bs-secondary-color);
}

.gallery-carousel .carousel-inner {
  border-radius: calc(var(--app-radius) + 0.3rem);
  overflow: hidden;
}

.gallery-carousel .carousel-item img {
  width: 100%;
  height: min(60vh, 540px);
  object-fit: cover;
}

.gallery-carousel .carousel-caption {
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  backdrop-filter: blur(16px);
}

html[data-bs-theme="light"] .gallery-carousel .carousel-caption {
  background: rgba(255, 255, 255, 0.88);
  color: var(--app-text);
  border-color: rgba(148, 163, 184, 0.24);
}

.gallery-thumb {
  overflow: hidden;
}

.gallery-thumb img {
  height: 180px;
}

.gallery-preview img {
  max-height: 320px;
  border-radius: calc(var(--app-radius) + 0.1rem);
}

.list-inline-item:not(:last-child) {
  margin-right: 0.65rem;
}

.alert {
  border-radius: 1rem;
  border-color: transparent;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.14);
  color: inherit;
}

.app-toast {
  border-radius: 1rem;
  box-shadow: var(--app-shadow, 0 1rem 2rem rgba(0, 0, 0, 0.15));
  overflow: hidden;
  border: 1px solid var(--app-border);
  background: var(--app-surface-solid);
  color: var(--app-text);
}

.app-toast .toast-header {
  background: transparent;
  color: var(--app-text);
  border-bottom: 1px solid var(--app-border);
}

.app-toast .toast-body {
  color: var(--app-text);
}

.toast-success {
  border-left: 4px solid var(--bs-success);
}

.toast-danger {
  border-left: 4px solid var(--bs-danger);
}

.toast-warning {
  border-left: 4px solid var(--bs-warning);
}

.toast-info {
  border-left: 4px solid var(--bs-info);
}

html[data-bs-theme="light"] .app-toast {
  background: #ffffff;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.12);
}

.invalid-feedback {
  font-size: 0.875rem;
}

.modal-content,
.offcanvas {
  background: var(--app-surface-solid);
  color: var(--app-text);
  border: 1px solid var(--app-border);
}

.btn-close {
  filter: invert(1) grayscale(1);
}

html[data-bs-theme="light"] .btn-close {
  filter: none;
}

.offcanvas-header,
.offcanvas-footer {
  border-color: var(--app-border);
}

.app-logout-form,
.inline-form {
  display: inline;
}

.section-stack > * + * {
  margin-top: 1.25rem;
}

html[data-bs-theme="light"] .theme-toggle {
  background: rgba(15, 23, 42, 0.03);
}

html[data-bs-theme="light"] .btn-outline-light {
  --bs-btn-color: var(--app-text);
  --bs-btn-border-color: var(--app-border);
  --bs-btn-hover-bg: rgba(15, 23, 42, 0.06);
  --bs-btn-hover-border-color: rgba(15, 23, 42, 0.12);
  --bs-btn-hover-color: var(--app-text);
  --bs-btn-active-bg: rgba(15, 23, 42, 0.1);
  --bs-btn-active-border-color: rgba(15, 23, 42, 0.18);
}

body.sidebar-collapsed .app-sidebar {
  width: var(--app-sidebar-collapsed-width);
}

.app-sidebar .sidebar-brand-copy,
.app-sidebar .sidebar-company,
.app-sidebar .sidebar-label {
  opacity: 0;
  transform: translateX(-0.4rem);
  pointer-events: none;
}

.app-sidebar:hover,
.app-sidebar:focus-within {
  width: var(--app-sidebar-width);
}

.app-sidebar:hover .sidebar-brand-copy,
.app-sidebar:hover .sidebar-company,
.app-sidebar:hover .sidebar-label,
.app-sidebar:focus-within .sidebar-brand-copy,
.app-sidebar:focus-within .sidebar-company,
.app-sidebar:focus-within .sidebar-label {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.app-sidebar .mt-auto .btn {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.85rem;
  width: 100%;
  min-width: 100%;
  min-height: 3rem;
  margin-inline: 0;
  padding: 0 0.85rem;
  border-radius: 0.95rem;
}

.app-sidebar .mt-auto .btn i {
  margin-right: 0 !important;
  min-width: 1.25rem;
  text-align: center;
}

.app-sidebar .mt-auto {
  margin-top: auto !important;
  padding-top: 1rem;
}

.search-summary-card,
.search-result-card,
.search-empty-state {
  border-color: var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}

.search-result-card .card-header,
.search-summary-card .card-header {
  background: transparent;
  border-bottom-color: var(--app-border);
}

.search-empty-state .card-body {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .app-main-content {
    padding: 1.25rem;
  }

  .public-main {
    padding-top: 2rem;
  }

  .app-sidebar {
    width: var(--app-sidebar-width);
  }

  .app-sidebar .sidebar-brand-copy,
  .app-sidebar .sidebar-company,
  .app-sidebar .sidebar-label {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (min-width: 992px) {
  .app-shell {
    min-height: 100vh;
    overflow: hidden;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    height: 100vh;
    padding: 1rem !important;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .app-sidebar .app-sidebar-inner {
    min-height: calc(100vh - 2rem);
    height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
  }

  .app-main {
    margin-left: var(--app-sidebar-collapsed-width);
    width: calc(100% - var(--app-sidebar-collapsed-width));
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

@media (max-width: 767.98px) {
  .app-main-content,
  .public-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery-carousel .carousel-item img {
    height: 320px;
  }

  .gallery-carousel .carousel-caption {
    position: static;
    margin-top: 1rem;
  }
}
