.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 5, 0.52);
  backdrop-filter: blur(6px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background:
    linear-gradient(180deg, rgba(22, 29, 17, 0.88) 0%, rgba(11, 16, 8, 0.94) 100%);
  border-right: 1px solid rgba(210, 229, 154, 0.16);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  backdrop-filter: blur(16px) saturate(1.02);
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.sidebar-header {
  font-size: 15px;
  color: rgba(198, 210, 180, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
  padding: 0 12px;
  font-weight: 800;
}

.side-link {
  width: 100%;
  text-align: left;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--nav-item-bg), rgba(255, 255, 255, 0.012));
  color: #e5ecd8;
  border: 1px solid var(--nav-item-border);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  opacity: var(--nav-inactive-opacity);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  box-shadow:
    var(--nav-item-shadow),
    var(--nav-item-inner),
    0 0 0 1px rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(8px);
}

.side-link::before {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--nav-indicator);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.side-link:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.024));
  border-color: rgba(210, 229, 154, 0.18);
  transform: translateX(3px) scale(1.02);
  box-shadow:
    var(--nav-item-shadow-hover),
    0 0 18px rgba(125, 177, 72, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  opacity: 1;
}

.side-link.active-link,
.bottom-nav-link.active-link {
  background: linear-gradient(180deg, var(--nav-active-fill-top), var(--nav-active-fill-bottom));
  color: #f2f8e4;
  border: 1px solid var(--nav-active-border);
  box-shadow:
    0 0 0 1px rgba(222, 243, 189, 0.12) inset,
    0 0 24px rgba(123, 186, 72, 0.24),
    0 16px 30px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(198, 229, 146, 0.08);
  opacity: 1;
}

.side-link.active-link::before {
  opacity: 1;
  transform: scaleY(1);
  box-shadow: 0 0 14px rgba(145, 215, 78, 0.46);
}

.side-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.96;
  font-size: 18px;
  line-height: 1;
}

.side-icon svg {
  width: 100%;
  height: 100%;
}

.side-text {
  white-space: nowrap;
  flex: 1;
  line-height: 1.1;
}

html[dir="rtl"] .side-link {
  justify-content: flex-start;
  text-align: right;
  gap: 10px;
}

html[dir="rtl"] .side-text {
  flex: 0 1 auto;
  text-align: right;
}

.nav-unread-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
  background: linear-gradient(180deg, #f25e5e, #bc2f2f);
  color: #fffdf9;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 16px rgba(117, 18, 18, 0.24);
}

.nav-unread-badge.is-hidden {
  display: none;
}

.main-content {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.card {
  background: var(--bg-panel-soft);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.28);
  margin-bottom: 20px;
  backdrop-filter: blur(2px);
}

.page.page-loading .card,
.page.page-loading .user-item,
.page.page-loading .documents-summary-box {
  position: relative;
  overflow: hidden;
}

.page.page-loading .card::after,
.page.page-loading .user-item::after,
.page.page-loading .documents-summary-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: translateX(-100%);
  animation: page-loading-sheen 1.25s ease-in-out infinite;
}

.page.page-loading h2,
.page.page-loading h3,
.page.page-loading p,
.page.page-loading span,
.page.page-loading strong,
.page.page-loading label,
.page.page-loading pre {
  opacity: 0.56;
}

@keyframes page-loading-sheen {
  100% {
    transform: translateX(100%);
  }
}

.hero-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inner-card {
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #f3f7e8;
}
