body {
  background: var(--bg-page);
  color: var(--text-900);
  font-size: 15px;
  line-height: 1.6;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 25px rgba(2, 6, 23, 0.18);
}

.top-nav__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-nav__menu-toggle {
  border: 1px solid var(--border);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-700);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
}

.logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: var(--shadow-sm);
}

.top-nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
}

.top-link {
  text-decoration: none;
  color: var(--text-inverse);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.top-link:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.18);
  transform: translateY(-1px);
}

.top-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9));
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.top-nav__right {
  margin-left: auto;
}

.profile-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.profile-btn__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.layout {
  display: flex;
  min-height: calc(100vh - 70px);
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.09), transparent 32%),
    radial-gradient(circle at 8% 90%, rgba(124, 58, 237, 0.08), transparent 34%);
}

.context-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  transition: transform var(--transition-mid);
}

.context-sidebar__head h2 {
  margin: 2px 8px 16px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-700);
}

.context-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context-sidebar__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-700);
}

.context-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.context-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-700);
  font-weight: 500;
  border-radius: 10px;
  padding: 10px 12px;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.context-link i {
  width: 18px;
}

.context-link:hover {
  background: #e3eaf5;
  transform: translateX(2px);
}

.context-link.is-active {
  color: var(--primary-700);
  background: linear-gradient(135deg, #dbe8ff, #ede9fe);
  font-weight: 600;
}

.main-content {
  flex: 1;
  padding: 32px 28px;
  min-width: 0;
}

.page-head {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 9px 0 0;
  color: var(--text-500);
  max-width: 620px;
  font-size: 0.98rem;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px;
  height: 100%;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
}

.summary-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.summary-card p {
  margin: 0;
  color: var(--text-500);
  font-size: 0.92rem;
}

.summary-card h3 {
  margin: 5px 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.summary-card:hover {
  transform: translateY(-4px);
  border-color: #cbdaf7;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.11);
}

.content-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 22px;
  transition: box-shadow var(--transition-mid), transform var(--transition-mid);
}

.content-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.content-card__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

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

.recent-table thead th {
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-500);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.recent-table tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--text-700);
  border-color: #edf2f7;
  transition: background-color var(--transition-fast);
}

.recent-table tbody tr:hover td {
  background: #f8fbff;
}

.progress-sm {
  height: 8px;
  border-radius: 999px;
  background: #e8eef8;
}

.progress-sm .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.badge-soft {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 4px 10px;
  font-weight: 700;
}

.badge-soft--primary {
  color: #1d4ed8;
  background: #dbe8ff;
}

.badge-soft--info {
  color: #0369a1;
  background: #dff3ff;
}

.badge-soft--success {
  color: #166534;
  background: #dcfce7;
}

.layout-overlay {
  position: fixed;
  inset: 70px 0 0 0;
  background: rgba(15, 23, 42, 0.44);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1025;
}

@media (max-width: 991.98px) {
  .top-nav__menu {
    display: none;
  }

  .context-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: 285px;
    transform: translateX(-100%);
    z-index: 1030;
    transition: transform var(--transition-mid);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.2);
  }

  body.sidebar-open .context-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .layout-overlay {
    opacity: 1;
    visibility: visible;
  }

  .main-content {
    width: 100%;
    padding: 20px 14px 18px;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .content-card {
    padding: 14px;
  }
}


.welcome-popup
{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.6);
	display:none;
	display:flex;
	justify-content:center;
	align-items:center;
	z-index:9999;
}

.popup-box
{
	background:#fff;
	padding:40px;
	border-radius:12px;
	width:320px;
	text-align:center;
	box-shadow:0 15px 40px rgba(0,0,0,0.2);
	animation:popup 0.4s ease;
}

@keyframes popup
{
	from
	{
		transform:scale(0.7);
		opacity:0;
	}
	to
	{
		transform:scale(1);
		opacity:1;
	}
}

.popup-box h4
{
	color:#28a745;
	/*color:#0f172a;*/
	margin-bottom:10px;
}

.popup-box button
{
	margin-top:20px;
	padding:10px 25px;
	border:none;
	background:linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9));
	color:white;
	border-radius:6px;
	cursor:pointer;
}