/**
 * Top navigation — Work Activity Tracker.
 *
 * Sticky pill nav rendered at the top of every WAT frontend page.
 *
 * @package WorkActivityTracker
 */

.wat-topnav {
	max-width: 1200px;
	margin: 16px auto 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	box-sizing: border-box;
}

.wat-topnav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	gap: 16px;
	flex-wrap: wrap;
}

/* ── Main list ─────────────────────────────── */

.wat-topnav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1;
	flex-wrap: wrap;
}

.wat-topnav__item { margin: 0; padding: 0; }

.wat-topnav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	color: #646970;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.wat-topnav__link:hover {
	background: #f0f6fc;
	color: #2271b1;
}

.wat-topnav__link--active {
	background: linear-gradient(135deg, #2271b1, #135e96);
	color: #fff;
	box-shadow: 0 2px 4px rgba(34, 113, 177, 0.25);
}

.wat-topnav__link--active:hover {
	background: linear-gradient(135deg, #135e96, #0a4b78);
	color: #fff;
}

.wat-topnav__link--primary .wat-topnav__icon svg {
	color: #f0b849;
}

.wat-topnav__link--primary.wat-topnav__link--active .wat-topnav__icon svg {
	color: #fff;
}

.wat-topnav__icon {
	display: inline-flex;
	align-items: center;
}

.wat-topnav__label { line-height: 1; }

/* ── Right aside (user + home/logout) ──────── */

.wat-topnav__aside {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-left: 12px;
	border-left: 1px solid #eef2f6;
}

.wat-topnav__user {
	color: #1d2327;
	font-size: 13px;
	font-weight: 600;
}

.wat-topnav__aux {
	color: #646970;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 10px;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
}

.wat-topnav__aux:hover {
	background: #f0f2f5;
	color: #1d2327;
}

.wat-topnav__aux--danger { color: #d63638; }
.wat-topnav__aux--danger:hover { background: #fce8e6; color: #a00; }

/* ── Responsive ───────────────────────────── */

@media (max-width: 780px) {
	.wat-topnav__inner { justify-content: center; }
	.wat-topnav__list  { justify-content: center; }
	.wat-topnav__aside { padding-left: 0; border-left: none; border-top: 1px solid #eef2f6; padding-top: 8px; width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
	.wat-topnav        { margin: 12px; border-radius: 10px; }
	.wat-topnav__inner { padding: 8px 10px; gap: 8px; }
	.wat-topnav__label { display: none; }
	.wat-topnav__link  { padding: 10px 12px; min-height: 44px; }
	.wat-topnav__list  { gap: 2px; }
	.wat-topnav__user  { display: none; }
	.wat-topnav__aux   { padding: 8px 10px; }
}
