/* ========================================
   Colors
======================================== */
/* ========================================
   Table
======================================== */
/* ========================================
   Badge
======================================== */
/* ========================================
   Form / Select
======================================== */
/* ========================================
   UI
======================================== */
/* ========================================
   Layout
======================================== */
/* ========================================
   Radius
======================================== */
/* ========================================
   Shadow
======================================== */
/* ========================================
   Transition
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  direction: rtl;
}

.layout {
  display: flex;
  flex-direction: row;
  overflow-x: hidden;
  min-height: 100vh;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.content {
  flex: 1;
}

.footer {
  padding: 14px 24px;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar__brand {
  padding: 20px 18px 18px;
}
.sidebar__brand-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.sidebar__brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sidebar__brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar__brand-icon svg {
  width: 20px;
  height: 20px;
}
.sidebar__nav {
  flex: 1;
  padding: 12px 0;
}
.sidebar__nav-list {
  list-style: none;
}
.sidebar__nav-item {
  position: relative;
}
.sidebar__nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 11px 18px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-right: 3px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.sidebar__nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.sidebar__nav-link--active .sidebar__nav-icon, .sidebar__nav-link:hover .sidebar__nav-icon {
  opacity: 1;
}
.sidebar__footer {
  padding: 12px 0 8px;
  margin-top: auto;
}
.sidebar__logout {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  direction: rtl;
}

.layout--public .topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
.layout--public .topbar__action-btn {
  background-color: #f0f2f5;
  color: #4a5568;
}
.layout--public .topbar__action-btn:hover {
  background-color: #e2e8f0;
}

.layout--portal {
  background-color: #f0f2f5;
  color: #1e2a3a;
}
.layout--portal .sidebar {
  background-color: #1a2744;
}
.layout--portal .sidebar__brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.layout--portal .sidebar__brand-name {
  color: #ffffff;
}
.layout--portal .sidebar__brand-icon {
  background: linear-gradient(135deg, #4a9fd4 0%, #2d7ab5 100%);
}
.layout--portal .sidebar__brand-icon svg {
  fill: #ffffff;
}
.layout--portal .sidebar__nav-link {
  color: #a8b8cc;
}
.layout--portal .sidebar__nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}
.layout--portal .sidebar__nav-link--active {
  color: #ffffff;
  background-color: rgba(74, 159, 212, 0.15);
  border-right-color: #4a9fd4;
}
.layout--portal .sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.layout--portal .sidebar__logout {
  color: #a8b8cc;
}
.layout--portal .sidebar__logout:hover {
  color: #ef4444;
}
.layout--portal .topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  color: #1e2a3a;
}
.layout--portal .topbar__hamburger {
  color: #1e2a3a;
}
.layout--portal .topbar__hamburger:hover {
  background-color: #f0f2f5;
}
.layout--portal .topbar__action-btn {
  background-color: #f0f2f5;
  color: #4a5568;
}
.layout--portal .topbar__action-btn:hover {
  background-color: #e2e8f0;
}
.layout--portal .footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
}

.layout--auth {
  background-color: #f4f9ff;
  color: #1e2a3a;
}
.layout--auth .topbar {
  background-color: transparent;
  border-bottom: 1px solid rgba(30, 42, 58, 0.08);
}
.layout--auth .topbar__action-btn {
  background-color: rgba(255, 255, 255, 0.6);
  color: #4a5568;
}
.layout--auth .topbar__action-btn:hover {
  background-color: #ffffff;
}
.layout--auth .content {
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout--auth .footer {
  background-color: transparent;
  border-top: 1px solid rgba(30, 42, 58, 0.08);
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.stat-card__label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
}
.stat-card__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2744;
}

.offcanvas.sidebar-offcanvas {
  width: 220px !important;
  background-color: #1a2744;
}
.offcanvas-header.sidebar-offcanvas__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px 18px;
}

.btn-close-white-custom {
  filter: invert(1) grayscale(1);
  opacity: 0.6;
}

@media (max-width: 991.98px) {
  .sidebar {
    display: none;
  }
  .layout--portal .topbar__hamburger {
    display: flex;
  }
}
@media (min-width: 992px) {
  .topbar__hamburger {
    display: none;
  }
}/*# sourceMappingURL=layout.css.map */