/* Cura Header Widget - Clean & Minimal */

.cura-hw-wrap {
	position: relative;
	display: inline-block;
}

.cura-hw-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent !important;
	cursor: pointer;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.cura-hw-trigger:hover,
.cura-hw-trigger:focus,
.cura-hw-trigger:active {
	background: transparent !important;
	outline: none;
}

.cura-hw-trigger img,
.cura-hw-trigger .avatar {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	max-width: 40px !important;
	max-height: 40px !important;
	border-radius: 50% !important;
	display: block;
	object-fit: cover;
	flex-shrink: 0;
	border: none !important;
}

.cura-hw-trigger .cura-hw-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.cura-hw-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.cura-hw-icon svg {
	width: 32px;
	height: 32px;
}

.cura-hw-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 280px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(228, 232, 237, 0.5);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 99999;
}

.cura-hw-wrap.active .cura-hw-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.cura-hw-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border-bottom: 1px solid rgba(228, 232, 237, 0.5);
	background: rgba(248, 249, 250, 0.5);
}

.cura-hw-header img.avatar {
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	border: none !important;
}

.cura-hw-user {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cura-hw-name {
	font-weight: 700;
	font-size: 15px;
	color: #1A2933;
}

.cura-hw-role {
	font-size: 12.5px;
	color: #678295;
}

.cura-hw-menu {
	padding: 8px;
}

.cura-hw-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 8px;
	text-decoration: none;
	color: #223542;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease;
}

.cura-hw-item:hover {
	background: rgba(248, 249, 250, 0.8);
}

.cura-hw-item svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.cura-hw-item span:first-of-type {
	flex: 1;
}

.cura-hw-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #F28E87;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.cura-hw-footer {
	padding: 8px;
	border-top: 1px solid rgba(228, 232, 237, 0.5);
	background: rgba(248, 249, 250, 0.3);
}

.cura-hw-logout {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: #F28E87;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease;
}

.cura-hw-logout:hover {
	background: rgba(253, 236, 234, 0.8);
}

.cura-hw-logout svg {
	width: 18px;
	height: 18px;
}

/* Auth dropdown */
.cura-hw-auth {
	min-width: 240px;
	max-width: 280px;
}

.cura-hw-auth-header {
	padding: 16px;
	border-bottom: 1px solid rgba(228, 232, 237, 0.5);
	background: rgba(248, 249, 250, 0.5);
}

.cura-hw-auth-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1A2933;
	text-align: center;
}

.cura-hw-auth-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cura-hw-auth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.cura-hw-auth-btn svg {
	width: 18px;
	height: 18px;
}

.cura-hw-auth-login {
	background: #73B1DD;
	color: #fff;
	border: 2px solid #73B1DD;
}

.cura-hw-auth-login:hover {
	background: #5da0c4;
	border-color: #5da0c4;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(115, 177, 221, 0.3);
}

.cura-hw-auth-register {
	background: rgba(255, 255, 255, 0.8);
	color: #223542;
	border: 2px solid rgba(196, 207, 214, 0.5);
}

.cura-hw-auth-register:hover {
	background: rgba(255, 255, 255, 1);
	border-color: #73B1DD;
	transform: translateY(-1px);
}

.cura-hw-auth-tabs {
	display: flex;
	gap: 8px;
	padding: 16px 16px 0;
}

.cura-hw-tab {
	flex: 1;
	padding: 10px;
	border: 1px solid rgba(196, 207, 214, 0.5);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.8);
	color: #223542;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.cura-hw-tab:hover {
	border-color: #73B1DD;
	background: rgba(255, 255, 255, 1);
}

.cura-hw-tab.active {
	background: #73B1DD;
	color: #fff;
	border-color: #73B1DD;
}

.cura-hw-auth-content {
	padding: 16px;
	max-height: none;
	overflow-y: visible;
}

.cura-hw-form {
	display: none;
}

.cura-hw-form.active {
	display: block;
}

/* Override cura form styles inside widget */
.cura-hw-dropdown .cura-form {
	max-width: 100%;
}

.cura-hw-dropdown .cura-form input {
	max-width: 100%;
}

/* Mobile */
@media (max-width: 480px) {
	.cura-hw-dropdown {
		right: -10px;
		min-width: 240px;
	}
	
	.cura-hw-auth {
		min-width: 240px;
		max-width: 90vw;
	}
}
