/*
 * AnnGhar UI — Sidebar Navigation
 * ------------------------------------------------------------------
 * Desktop: a sticky 280px column, part of the .ag-shell grid.
 * Tablet/Mobile: becomes a true offcanvas panel — fixed position,
 * slid off-screen via transform, revealed by the mobile bar's toggle
 * button with a click-to-close backdrop. See responsive.css for the
 * breakpoint that activates this behavior, and account-theme.js for
 * the toggle logic (adds/removes .is-open, sets aria-expanded).
 */

.ag-sidebar {
	background: var(--ag-white);
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius);
	box-shadow: var(--ag-shadow);
	padding: 24px 16px;
	position: sticky;
	top: 40px;
}

.ag-sidebar__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px 20px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--ag-border);
}

.ag-sidebar__brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--ag-primary), var(--ag-primary-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ag-white);
	flex-shrink: 0;
}

.ag-sidebar__brand-text {
	display: flex;
	flex-direction: column;
}

.ag-sidebar__brand-name {
	font-weight: 700;
	color: var(--ag-primary-dark);
	font-size: 15px;
}

.ag-sidebar__brand-tagline {
	font-size: 11px;
	color: var(--ag-muted);
}

.ag-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ag-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: var(--ag-radius-sm);
	color: var(--ag-text);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.ag-nav__link:hover {
	background: var(--ag-cream);
	color: var(--ag-primary-dark);
	transform: translateX(2px);
}

.ag-nav__item.is-active .ag-nav__link {
	background: var(--ag-primary);
	color: var(--ag-white);
	box-shadow: 0 4px 14px rgba(47, 107, 63, .28);
}

.ag-nav__item.is-logout {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--ag-border);
}

.ag-nav__item.is-logout .ag-nav__link {
	color: var(--ag-danger);
}

.ag-nav__item.is-logout .ag-nav__link:hover {
	background: var(--ag-danger-bg);
}

/* Mobile trigger bar (hidden on desktop — see responsive.css) */

.ag-mobile-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	background: var(--ag-white);
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius-sm);
	box-shadow: var(--ag-shadow);
	padding: 14px 16px;
	margin-bottom: 16px;
}

.ag-mobile-bar__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	font-weight: 600;
	color: var(--ag-primary-dark);
	font-size: 15px;
	cursor: pointer;
	padding: 4px;
}

/* Offcanvas backdrop, only ever visible on narrow viewports while the
   sidebar is open (see responsive.css). */
.ag-sidebar__backdrop {
	display: none;
}
