/**
 * User Account Menu Styles
 */

/* Wrapper - ensure vertical alignment with other header elements */
.vce-user-account-wrapper {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	line-height: 1;
}

/* Wrapper */
.vce-user-account-dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

/* Logged Out - Icon Link */
.vce-user-account-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
	border-radius: 50%;
	vertical-align: middle;
}

.vce-user-account-link:hover {
	opacity: 0.8;
	background-color: rgba(0, 0, 0, 0.05);
}

.vce-user-account-logged-out .vce-user-icon {
	width: 22px;
	height: 22px;
	vertical-align: middle;
}

/* Logged In - Trigger Button */
.vce-user-account-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 4px;
	background: transparent;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	color: inherit;
	white-space: nowrap;
	transition: background-color 0.2s ease;
	max-width: 100%;
	vertical-align: middle;
	line-height: 1.4;
}

.vce-user-account-trigger:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

/* Avatar */
.vce-user-account-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	vertical-align: middle;
}

.vce-user-account-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: middle;
}

/* User Name */
.vce-user-account-name {
	max-width: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
	line-height: 1.2;
}

/* Chevron */
.vce-user-account-chevron {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: transform 0.2s ease;
	vertical-align: middle;
}

.vce-user-account-dropdown.active .vce-user-account-chevron {
	transform: rotate(180deg);
}

/* Dropdown Menu */
.vce-user-account-menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 150px;
	max-width: 200px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 1000;
	overflow: hidden;
}

.vce-user-account-dropdown.active .vce-user-account-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Dropdown Items */
.vce-user-account-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	color: #333;
	text-decoration: none;
	font-size: 13px;
	transition: background-color 0.15s ease;
	white-space: nowrap;
}

.vce-user-account-item:hover {
	background-color: #f5f5f5;
}

.vce-user-account-item svg {
	flex-shrink: 0;
	color: #666;
	width: 16px;
	height: 16px;
}

.vce-user-account-logout {
	color: #d63638;
}

.vce-user-account-logout:hover {
	background-color: #fef2f2;
}

.vce-user-account-logout svg {
	color: #d63638;
}

/* Tablet */
@media (max-width: 1024px) {
	.vce-user-account-name {
		max-width: 80px;
	}
	
	.vce-user-account-trigger {
		padding: 4px 8px 4px 4px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.vce-user-account-name {
		display: none;
	}

	.vce-user-account-trigger {
		padding: 4px;
		width: auto;
	}

	.vce-user-account-avatar {
		width: 28px;
		height: 28px;
	}

	.vce-user-account-link {
		width: 36px;
		height: 36px;
	}

	.vce-user-account-logged-out .vce-user-icon {
		width: 20px;
		height: 20px;
	}

	.vce-user-account-menu {
		right: 0;
		left: auto;
		min-width: 130px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.vce-user-account-link {
		width: 32px;
		height: 32px;
	}

	.vce-user-account-logged-out .vce-user-icon {
		width: 18px;
		height: 18px;
	}
}

.um.um-profile .um-header {
	border-bottom: none;
}
.um.um-profile .um-profile-navbar,
.um.um-profile .um-profile-body {
	display: none;
}

/**
 * My Submissions table (My Account page).
 */
.vce-my-submissions {
	max-width: 100%;
	overflow-x: auto;
}

.vce-my-submissions h2 {
	margin-bottom: 16px;
}

.vce-submissions-table-wrap {
	overflow-x: auto;
}

.vce-submissions-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #dcdcde;
	font-size: 14px;
}

.vce-submissions-table th,
.vce-submissions-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: middle;
}

.vce-submissions-table th {
	background: #f6f7f7;
	font-weight: 600;
	color: #1d2327;
	white-space: nowrap;
}

.vce-submissions-table tbody tr:hover {
	background: #f0f6fc;
}

.vce-status-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.vce-submission-action {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.12s ease;
}

.vce-submission-edit {
	background: #2271b1;
	color: #fff;
}

.vce-submission-edit:hover {
	background: #135e96;
	color: #fff;
}

.vce-submission-view {
	background: #f6f7f7;
	color: #2271b1;
	border: 1px solid #dcdcde;
}

.vce-submission-view:hover {
	background: #f0f6fc;
}

@media (max-width: 600px) {
	.vce-submissions-table thead {
		display: none;
	}

	.vce-submissions-table tr {
		display: block;
		margin-bottom: 12px;
		border: 1px solid #dcdcde;
		border-radius: 6px;
		padding: 8px;
	}

	.vce-submissions-table td {
		display: block;
		text-align: right;
		padding: 6px 8px;
		border: none;
	}

	.vce-submissions-table td::before {
		content: attr(data-label);
		float: left;
		font-weight: 600;
		color: #646970;
	}
}