body {
	overflow-x: hidden;
}

/* --- Layout --- */
.sidebar {
	flex: 0 0 70px;
	background: #222;
	color: #f8f9fa;
	min-height: 100dvh;
	align-self: stretch;
	overflow-x: hidden;
}

	.sidebar a {
		color: #fff;
		text-decoration: none;
		display: block;
		padding: 12px;
	}

		.sidebar a:hover {
			background: #444;
		}

	.sidebar .btn-link {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		border: none;
		background: none;
		color: #f8f9fa;
		font-size: 1.5rem;
		text-decoration: none;
		margin: 10px 0px;
	}

		.sidebar .btn-link:focus, .sidebar .btn-link:hover {
			background: #343a40;
			color: #fff;
			text-decoration: none;
		}

	.sidebar svg {
		width: 28px;
		height: 28px;
		display: block;
	}

.btn-square {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-radius: 0.5rem;
	transition: background 0.2s, color 0.2s;
	margin: 5px auto;
}

	.btn-square:focus, .btn-square:hover {
		background: #343a40;
		color: #fff;
		outline: none;
	}

	.btn-square.active, .btn-square:active {
		background: #495057;
		color: #fff;
	}

.container-my {
	flex: 1 1 auto;
	min-width: 0; /* критично, щоб широкі елементи не "проштовхували" сторінку */
	margin: 5px;
	overflow-x: hidden;
}

.btn-square,
.btn-link {
	color: #fff; /* робить currentColor білим */
}

	.btn-square svg,
	.btn-link svg {
		width: 28px;
		height: 28px;
	}

.menu-divider-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	margin: 8px 0;
	flex: 0 0 auto;
}

.menu-divider {
	width: 32px;
	height: 2px;
	background-color: #6b7280;
	border-radius: 2px;
}

/* --- Mobile offcanvas sidebar --- */
#mobileSidebar {
	--bs-offcanvas-width: 70px;
	width: 70px;
}

	#mobileSidebar .offcanvas-header {
		padding: 8px 4px;
		justify-content: center;
	}

	#mobileSidebar .offcanvas-title {
		display: none;
	}

	#mobileSidebar .offcanvas-body {
		padding: 0;
	}


.user-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #0d6efd, #6610f2);
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
}

.user-avatar-sm {
	width: 38px;
	height: 38px;
	font-size: 0.9rem;
}

.user-avatar-md {
	width: 48px;
	height: 48px;
	font-size: 1.1rem;
}

.user-avatar-xl {
	width: 84px;
	height: 84px;
	font-size: 2rem;
}

.user-avatar-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.user-avatar-placeholder {
	line-height: 1;
}

.sidebar-footer {
	padding: 0.5rem 0.35rem 0.75rem;
}

.sidebar-profile-link {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0.35rem !important;
	border-radius: 0.75rem;
}

.sidebar-profile-name {
	max-width: 58px;
	font-size: 0.7rem;
	line-height: 1.2;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#mobileSidebar .sidebar-footer {
	padding-bottom: 1rem;
}

#mobileSidebar .sidebar-profile-name {
	max-width: none;
}
