/*
 * From md up, Bootstrap turns .md:drawer into a static horizontal bar
 * (navbar style). We use it as a vertical sidebar instead.
 */
.app-sidebar {
	--rr-accent: #5fd3b4;
	--rr-hover: color-mix(in srgb, currentColor 7%, transparent);
	--rr-active: color-mix(in srgb, currentColor 11%, transparent);
	--rr-muted: color-mix(in srgb, currentColor 60%, transparent);
}

@media (width >= 768px) {
	.app-sidebar {
		flex: 0 0 15rem;
		flex-direction: column !important;
		align-items: stretch;
		border-inline-end: 1px solid var(--bs-border-color, #8884);
	}
}

.app-sidebar .drawer-body {
	padding: 0.75rem !important;
	gap: 1rem;
}

/* Brand */
.app-brand {
	align-items: center;
	gap: 0.625rem;
	padding: 0.375rem 0.5rem;
	font-weight: 650;
	font-size: 1rem;
	letter-spacing: -0.01em;
	color: inherit;
	text-decoration: none;
}

.app-brand img {
	border-radius: 7px;
	flex: none;
}

/* Header bar shown below md */
header > .app-brand {
	display: flex;
}

/* Navigation */
.app-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.app-nav-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.4375rem 0.625rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	color: var(--rr-muted);
	text-decoration: none;
	transition: background-color 120ms, color 120ms;
}

a.app-nav-item:hover {
	background: var(--rr-hover);
	color: inherit;
}

.app-nav-item.is-active {
	background: var(--rr-active);
	color: inherit;
	font-weight: 600;
}

/* Accent marker on the active entry */
.app-nav-item.is-active::before {
	content: "";
	position: absolute;
	inset-block: 0.4375rem;
	inset-inline-start: -0.75rem;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--rr-accent);
}

.app-nav-item:focus-visible,
.app-logout:focus-visible {
	outline: 2px solid var(--rr-accent);
	outline-offset: 1px;
}

.app-nav-icon {
	flex: none;
}

.app-nav-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-nav-item.is-soon {
	cursor: default;
	opacity: 0.55;
}

.app-nav-soon {
	padding: 0.0625rem 0.4375rem;
	border-radius: 999px;
	background: var(--rr-hover);
	font-size: 0.6875rem;
	font-weight: 500;
}

/* Account row at the bottom */
.app-account {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0.75rem;
	padding: 0.5rem;
	border-radius: 0.625rem;
	background: var(--rr-hover);
}

.app-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #13201c;
	color: var(--rr-accent);
	font-size: 0.8125rem;
	font-weight: 600;
}

.app-account-email {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.8125rem;
}

.app-account form {
	display: contents;
}

.app-logout {
	flex: none;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 0.5rem;
	background: none;
	color: var(--rr-muted);
	cursor: pointer;
	transition: background-color 120ms, color 120ms;
}

.app-logout:hover {
	background: var(--rr-active);
	color: inherit;
}

/* Login cards: Bootstrap has no fixed-width card utility. */
.auth-card {
	width: min(100%, 26rem);
}

/* DNS records on the verify page: value and copy button side by side; long
   tokens wrap instead of widening the table. */
.dns-value {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.dns-value code {
	word-break: break-all;
}
