/**
 * Navbar & Topbar Custom Styles
 * RS Emanuel Aplikasi Karyawan
 */

/* Topbar Navigation Custom Styling */
.topbar-custom {
	height: 4.25rem;
	background: #ffffff !important;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	padding: 0 1.25rem;
	z-index: 1020;
}

.brand-link {
	display: flex;
	align-items: center;
	text-decoration: none !important;
	gap: 10px;
}

.brand-icon-box {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
	transition: transform 0.2s ease;
}

.brand-link:hover .brand-icon-box {
	transform: scale(1.05);
}

.brand-text-main {
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: -0.01em;
	color: #0f172a;
	line-height: 1.1;
	display: block;
}

.brand-text-sub {
	font-size: 0.68rem;
	font-weight: 600;
	color: #64748b;
	display: block;
}

/* Top Quick Nav Links */
.topbar-quick-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 1.5rem;
}

.topbar-quick-link {
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #475569;
	text-decoration: none !important;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.topbar-quick-link:hover {
	color: #2563eb;
	background: #f1f5f9;
}

.topbar-quick-link.active {
	color: #2563eb;
	background: #eff6ff;
}

/* User Dropdown Profile Button */
.btn-user-profile {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 10px;
	border-radius: 30px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	transition: all 0.2s ease;
	text-decoration: none !important;
	cursor: pointer;
}

.btn-user-profile:hover,
.btn-user-profile:focus {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.user-avatar-circle {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.85rem;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
	border: 2px solid #ffffff;
	flex-shrink: 0;
}

.user-name-text {
	font-size: 0.82rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
	max-width: 140px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.user-role-text {
	font-size: 0.66rem;
	font-weight: 600;
	color: #64748b;
	display: block;
	line-height: 1;
}

.user-chevron-icon {
	color: #64748b;
	font-size: 0.75rem;
	transition: transform 0.2s ease, color 0.2s ease;
	display: inline-block;
}

.btn-user-profile:hover .user-chevron-icon,
.show > .btn-user-profile .user-chevron-icon {
	color: #2563eb;
}

.show > .btn-user-profile .user-chevron-icon {
	transform: rotate(180deg);
}

@media (max-width: 575.98px) {
	.topbar-custom {
		padding: 0 0.85rem;
	}

	.btn-user-profile {
		padding: 4px 8px 4px 4px;
		gap: 6px;
		border-radius: 20px;
	}

	.user-avatar-circle {
		width: 32px;
		height: 32px;
		font-size: 0.8rem;
	}

	.user-chevron-icon {
		font-size: 0.72rem;
		color: #475569;
		display: inline-block !important;
		margin-left: 2px !important;
	}
}

/* Dropdown Menu Custom */
.dropdown-menu-user {
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	padding: 0.5rem;
	min-width: 240px;
	margin-top: 0.5rem;
}

.dropdown-header-user {
	padding: 0.75rem 0.85rem;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 10px;
	margin-bottom: 0.4rem;
}

.dropdown-item-user {
	padding: 0.55rem 0.85rem;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #334155;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all 0.18s ease;
}

.dropdown-item-user:hover {
	background: #f1f5f9;
	color: #2563eb;
	transform: translateX(3px);
}

.dropdown-item-user.item-logout {
	color: #e11d48;
}

.dropdown-item-user.item-logout:hover {
	background: #fff1f2;
	color: #be123c;
}

.dropdown-item-icon {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.82rem;
	flex-shrink: 0;
}

.icon-blue {
	background: #eff6ff;
	color: #2563eb;
}

.icon-green {
	background: #ecfdf5;
	color: #059669;
}

.icon-amber {
	background: #fffbeb;
	color: #d97706;
}

.icon-rose {
	background: #fff1f2;
	color: #e11d48;
}

/* Modal Logout Styling */
.modal-logout-dialog .modal-content {
	border-radius: 18px;
	border: none;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.logout-icon-circle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #fff1f2;
	color: #e11d48;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	margin: 0 auto 1rem auto;
}
