/* App dashboard sidebar — scoped to my-dashboard.php only */

.dashboard-with-sidebar .dashboard-sidebar {
	display: flex;
	flex-direction: column;
	width: 17.5rem;
	min-width: 17.5rem;
	background: var(--sidebar-bg);
	border-right: 1px solid color-mix(in srgb, var(--sidebar-text) 12%, transparent);
	box-shadow: 1px 0 0 color-mix(in srgb, var(--surface) 80%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	padding: 0.85rem 0.9rem;
	min-height: 3.5rem;
	border-bottom: 1px solid color-mix(in srgb, var(--sidebar-text) 10%, transparent);
	background: color-mix(in srgb, var(--surface) 55%, var(--sidebar-bg));
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-brand-wrap {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	flex: 1;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-logo-mark {
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: var(--surface);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 25%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-brand {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--sidebar-text);
	letter-spacing: -0.01em;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border-radius: var(--radius-sm);
	border: 1px solid color-mix(in srgb, var(--sidebar-text) 14%, transparent);
	background: var(--surface);
	color: color-mix(in srgb, var(--sidebar-text) 75%, transparent);
	flex-shrink: 0;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-toggle:hover {
	background: color-mix(in srgb, var(--sidebar-hover) 80%, var(--surface));
	color: var(--sidebar-text);
	border-color: color-mix(in srgb, var(--sidebar-text) 22%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-user {
	padding: 0.65rem 0.75rem 0.5rem;
	flex-shrink: 0;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-user-card {
	padding: 0.75rem 0.8rem;
	border: 1px solid color-mix(in srgb, var(--sidebar-text) 12%, transparent);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 1px 0 color-mix(in srgb, var(--sidebar-text) 4%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-welcome {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--sidebar-text);
	line-height: 1.35;
	margin-bottom: 0.55rem !important;
}

.dashboard-with-sidebar .dashboard-sidebar .subscription-progress-wrap {
	gap: 0.4rem;
}

.dashboard-with-sidebar .dashboard-sidebar .subscription-progress-meta {
	font-size: 0.6875rem;
}

.dashboard-with-sidebar .dashboard-sidebar .subscription-progress-label {
	font-weight: 600;
	opacity: 0.72;
}

.dashboard-with-sidebar .dashboard-sidebar .subscription-progress-value {
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--sidebar-text);
}

.dashboard-with-sidebar .dashboard-sidebar .subscription-progress-bar {
	height: 5px;
	background: color-mix(in srgb, var(--sidebar-text) 10%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav {
	flex: 1;
	min-height: 0;
	padding: 0;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-scroll {
	padding: 0.4rem 0.55rem 0.85rem;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--sidebar-text) 18%, transparent) transparent;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-scroll::-webkit-scrollbar {
	width: 5px;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-scroll::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--sidebar-text) 16%, transparent);
	border-radius: 999px;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
	background: color-mix(in srgb, var(--sidebar-text) 28%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-group {
	margin: 0 0 0.35rem;
	border-bottom: none;
	border-radius: var(--radius-sm);
	background: transparent;
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-group-summary {
	padding: 0.5rem 0.55rem 0.4rem;
	margin: 0.15rem 0 0;
	border-radius: var(--radius-sm);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--sidebar-text) 58%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-group-summary:hover {
	background: color-mix(in srgb, var(--sidebar-hover) 65%, transparent);
	color: color-mix(in srgb, var(--sidebar-text) 82%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-group-icon {
	font-size: 0.75rem;
	opacity: 1;
	color: var(--sidebar-active-text);
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-group-chevron {
	font-size: 0.5rem;
	opacity: 0.38;
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-group-links {
	padding: 0.1rem 0.2rem 0.35rem 0.35rem;
	gap: var(--osinv-sidebar-link-gap, 0.25rem);
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-subgroup {
	display: flex;
	flex-direction: column;
	gap: var(--osinv-sidebar-link-gap, 0.25rem);
	padding: 0.15rem 0 0.25rem;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-group-label {
	margin: 0;
	padding: 0.55rem 0.55rem 0.25rem 0.65rem;
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--sidebar-text) 48%, transparent);
	opacity: 1;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-divider {
	height: 1px;
	margin: 0.35rem 0.65rem 0.25rem;
	background: color-mix(in srgb, var(--sidebar-text) 10%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-link {
	padding: 0.45rem 0.55rem 0.45rem 0.65rem;
	margin: 0;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-subgroup .osinv-nav-link {
	padding-left: 0.85rem;
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-link-icon {
	font-size: 0.72rem;
	opacity: 0.68;
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-link.active {
	background: var(--sidebar-active);
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-link.active .osinv-nav-link-icon {
	opacity: 1;
	color: var(--sidebar-active-text);
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-group-title {
	text-transform: uppercase;
}

.dashboard-with-sidebar .dashboard-sidebar .osinv-nav-group-links .nav-label {
	text-transform: uppercase;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-nav-group-label {
	text-transform: uppercase;
}

.dashboard-with-sidebar .dashboard-sidebar .sidebar-logout-link {
	margin-top: 0.15rem;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.dashboard-with-sidebar .dashboard-sidebar.collapsed {
	width: 3.25rem;
	min-width: 3.25rem;
}

.dashboard-with-sidebar .dashboard-sidebar.collapsed .sidebar-header {
	flex-direction: column;
	align-items: center;
	padding: 0.65rem 0.4rem;
	gap: 0.5rem;
}

.dashboard-with-sidebar .dashboard-sidebar.collapsed .sidebar-toggle {
	width: 1.85rem;
	height: 1.85rem;
}

.dashboard-with-sidebar .dashboard-sidebar.collapsed .sidebar-user {
	padding: 0.45rem 0.35rem;
	border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 10%, transparent);
}

.dashboard-with-sidebar .dashboard-sidebar.collapsed .sidebar-user-card {
	padding: 0.35rem;
	border: none;
	box-shadow: none;
	background: transparent;
}

.dashboard-with-sidebar .dashboard-sidebar.collapsed .sidebar-nav-scroll {
	padding: 0.35rem 0.25rem 0.65rem;
}

@media (max-width: 768px) {
	.dashboard-with-sidebar .dashboard-sidebar {
		width: 3.25rem;
		min-width: 3.25rem;
	}
}
