/* Profile Page Styles - Modern Redesign */

.profile-page-wrapper {
	padding: 0;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

/* Заголовок профиля */
.profile-header {
	background: linear-gradient(135deg, rgba(165, 95, 230, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
}

.profile-name {
	font-size: 24px;
	font-weight: 700;
	color: #2B2B3A;
	margin: 0 0 20px 0;
}

/* Форма поиска */
.profile-search-form {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
}

.profile-search-form .form-group {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 200px;
	max-width: 100%;
	box-sizing: border-box;
}

.profile-search-form label {
	font-size: 13px;
	font-weight: 600;
	color: #2B2B3A;
	margin: 0;
}

.profile-search-form .form-control {
	width: 100%;
	max-width: 100%;
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.2s ease;
	background: #fff;
	box-sizing: border-box;
}

.profile-search-form .form-control:focus {
	border-color: rgba(165, 95, 230, 0.5);
	box-shadow: 0 0 0 3px rgba(165, 95, 230, 0.1);
	outline: none;
}

.profile-search-form .btn-primary {
	padding: 10px 24px;
	border-radius: 8px;
	font-weight: 600;
	background: linear-gradient(135deg, rgba(165, 95, 230, 0.9) 0%, rgba(165, 95, 230, 1) 100%);
	border: none;
	box-shadow: 0 2px 6px rgba(165, 95, 230, 0.3);
	transition: all 0.2s ease;
	height: fit-content;
	color: #fff;
	flex-shrink: 0;
	white-space: nowrap;
    margin-bottom: 0px;
}

.profile-search-form .btn-primary:hover {
	background: linear-gradient(135deg, rgba(165, 95, 230, 1) 0%, rgba(140, 70, 200, 1) 100%);
	box-shadow: 0 4px 12px rgba(165, 95, 230, 0.4);
	transform: translateY(-1px);
}

/* Навигация табов */
.profile-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid rgba(165, 95, 230, 0.15);
	margin-bottom: 24px;
	padding: 0;
	list-style: none;
}

.profile-tab {
	padding: 12px 20px;
	border: none;
	border-radius: 8px 8px 0 0;
	color: #6B7280;
	font-weight: 500;
	font-size: 14px;
	background: transparent;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.profile-tab:hover {
	background: rgba(165, 95, 230, 0.05);
	color: rgba(165, 95, 230, 0.9);
	text-decoration: none;
}

.profile-tab.active {
	background: linear-gradient(135deg, rgba(165, 95, 230, 0.1) 0%, rgba(165, 95, 230, 0.05) 100%);
	color: rgba(165, 95, 230, 1);
	border-bottom: 2px solid rgba(165, 95, 230, 1);
	font-weight: 600;
}

.profile-tab .badge {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 1) 100%);
	color: #fff;
	box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.profile-tab .label {
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
}

.profile-tab .label.label-info {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 1) 100%);
	color: #fff;
	box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Контент */
.profile-content {
	padding: 0;
}

/* Форма выбора типа в секции value */
.profile-value-selector {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding: 20px;
	background: linear-gradient(135deg, rgba(165, 95, 230, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
	border: 1px solid rgba(165, 95, 230, 0.15);
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(165, 95, 230, 0.08);
	box-sizing: border-box;
	width: 100%;
}

.profile-value-selector .form-group {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 200px;
	max-width: 100%;
	box-sizing: border-box;
}

.profile-value-selector label {
	font-size: 13px;
	font-weight: 600;
	color: #2B2B3A;
	margin: 0;
}

.profile-value-selector select.form-control {
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.2s ease;
	background: #fff;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	width: 100%;
	box-sizing: border-box;
    height: 40px;
}

.profile-value-selector select.form-control:focus {
	border-color: rgba(165, 95, 230, 0.5);
	box-shadow: 0 0 0 3px rgba(165, 95, 230, 0.1);
	outline: none;
}

.profile-value-selector .btn-primary {
	padding: 10px 24px;
	border-radius: 8px;
	font-weight: 600;
	background: linear-gradient(135deg, rgba(165, 95, 230, 0.9) 0%, rgba(165, 95, 230, 1) 100%);
	border: none;
	box-shadow: 0 2px 6px rgba(165, 95, 230, 0.3);
	transition: all 0.2s ease;
	height: fit-content;
	color: #fff;
	flex-shrink: 0;
	white-space: nowrap;
    margin-bottom: 0px;
}

.profile-value-selector .btn-primary:hover {
	background: linear-gradient(135deg, rgba(165, 95, 230, 1) 0%, rgba(140, 70, 200, 1) 100%);
	box-shadow: 0 4px 12px rgba(165, 95, 230, 0.4);
	transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
	.profile-header {
		padding: 16px;
	}
	
	.profile-name {
		font-size: 20px;
	}
	
	.profile-search-form,
	.profile-value-selector {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}
	
	.profile-search-form .form-group {
		max-width: 100%;
		min-width: 100%;
		width: 100%;
	}
	
	.profile-search-form .form-control,
	.profile-value-selector select.form-control {
		width: 100%;
		min-width: 100%;
		max-width: 100%;
	}
	
	.profile-tabs {
		flex-direction: column;
		border-bottom: none;
	}
	
	.profile-tab {
		border-radius: 8px;
		margin-bottom: 4px;
		width: 100%;
		justify-content: center;
	}
	
	.profile-tab.active {
		border-bottom: 2px solid rgba(165, 95, 230, 1);
		border-left: 3px solid rgba(165, 95, 230, 1);
	}
}
