:root {
	--indexLayout-primary-bg: #e6f3ff;
	--indexLayout-card-bg: #ffffff;
	--indexLayout-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	--indexLayout-border-radius: 16px;
	--indexLayout-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--indexLayout-danger-color: #e74c3c;
	--indexLayout-success-color: #27ae60;
	--indexLayout-warning-color: #f39c12;
}

#page_indexLayout{
	margin: 0;
	padding: 0 0 58px 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--indexLayout-primary-bg);
	min-height: 100vh;
	width: 100%;
	overflow-x: hidden;
}

.indexLayout_container {
	width: 100%;
	min-height: 100vh;
	padding: 20px;
	position: relative;
}

.indexLayout_header {
	text-align: center;
	margin-bottom: 30px;
	animation: indexLayout_fadeInDown 0.6s ease-out;
}

.indexLayout_title {
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 10px;
}

.indexLayout_subtitle {
	font-size: 14px;
	color: #7f8c8d;
}

.indexLayout_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 20px;
	max-width: 600px;
	margin: 0 auto;
}

.indexLayout_app_item {
	background: var(--indexLayout-card-bg);
	border-radius: var(--indexLayout-border-radius);
	padding: 20px;
	text-align: center;
	box-shadow: var(--indexLayout-shadow);
	position: relative;
	cursor: pointer;
	overflow: hidden;
}

.indexLayout_app_item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.indexLayout_app_item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.6s;
}

.indexLayout_app_item:hover::before {
	left: 100%;
}

.indexLayout_delete_btn {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--indexLayout-danger-color);
	color: white;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--indexLayout-transition);
	z-index: 10;
}

.indexLayout_app_item:hover .indexLayout_delete_btn {
	opacity: 1;
}

.indexLayout_delete_btn:hover {
	background: #c0392b;
	transform: scale(1.1);
}

.indexLayout_app_icon {
	font-size: 36px;
	margin-bottom: 12px;
	color: #3498db;
	transition: var(--indexLayout-transition);
}

.indexLayout_app_item:hover .indexLayout_app_icon {
	transform: scale(1.2);
	color: #2980b9;
}

.indexLayout_app_name {
	font-size: 14px;
	font-weight: 500;
	color: #2c3e50;
	margin-bottom: 8px;
}

.indexLayout_app_selected {
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	transform: scale(1.05);
}

.indexLayout_app_selected .indexLayout_app_icon {
	color: white;
}

.indexLayout_app_selected .indexLayout_app_name {
	color: white;
}

.indexLayout_control_panel {
	margin-top: 20px;
	background: var(--indexLayout-card-bg);
	padding: 20px;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.indexLayout_control_buttons {
	display: grid;
	grid-template-areas: 
		". up ."
		"left . right"
		". down .";
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
	max-width: 200px;
	margin: 0 auto 15px auto;
}

.indexLayout_control_btn {
	background: #3498db;
	color: white;
	border: none;
	padding: 15px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	transition: var(--indexLayout-transition);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.indexLayout_control_btn:hover {
	background: #2980b9;
	transform: scale(1.1);
}

.indexLayout_control_btn:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	transform: none;
}

.indexLayout_move_up_btn {
	grid-area: up;
}

.indexLayout_move_down_btn {
	grid-area: down;
}

.indexLayout_move_left_btn {
	grid-area: left;
}

.indexLayout_move_right_btn {
	grid-area: right;
}

.indexLayout_action_buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 20px;
}

.indexLayout_action_btn {
	padding: 12px 24px;
	border: none;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--indexLayout-transition);
	display: flex;
	align-items: center;
	gap: 8px;
}

.indexLayout_confirm_btn {
	background: var(--indexLayout-success-color);
	color: white;
}

.indexLayout_confirm_btn:hover {
	background: #219a52;
	transform: translateY(-2px);
}

.indexLayout_reset_btn {
	background: var(--indexLayout-warning-color);
	color: white;
}

.indexLayout_reset_btn:hover {
	background: #e67e22;
	transform: translateY(-2px);
}

.indexLayout_empty_slot {
	background: transparent;
	border: 2px dashed #bdc3c7;
	box-shadow: none;
}

.indexLayout_empty_slot:hover {
	transform: none;
	border-color: #95a5a6;
}

.indexLayout_empty_slot::before {
	display: none;
}

.indexLayout_empty_slot .indexLayout_delete_btn {
	display: none;
}

.indexLayout_json_output {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 15px;
	margin-top: 15px;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	max-height: 200px;
	overflow-y: auto;
	display: none;
}

@keyframes indexLayout_fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes indexLayout_bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

.indexLayout_app_item.indexLayout_bounce {
	animation: indexLayout_bounce 0.6s ease-out;
}

@keyframes indexLayout_pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

.indexLayout_app_item.indexLayout_pulse {
	animation: indexLayout_pulse 0.4s ease-in-out;
}

@keyframes indexLayout_shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

.indexLayout_app_item.indexLayout_shake {
	animation: indexLayout_shake 0.5s ease-in-out;
}

@media (max-width: 768px) {
	.indexLayout_container {
		padding: 15px;
	}
	
	.indexLayout_app_item {
		padding: 15px;
	}
	
	.indexLayout_app_icon {
		font-size: 32px;
	}
	
	.indexLayout_action_buttons {
		flex-direction: column;
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.indexLayout_title {
		font-size: 20px;
	}
	
	.indexLayout_control_buttons {
		flex-wrap: wrap;
		gap: 10px;
	}
	
	.indexLayout_control_btn {
		padding: 12px 16px;
		font-size: 16px;
		width: 45px;
		height: 45px;
	}
}

.indexLayout_control_panel {
	padding: 15px 15px 30px 15px;
}

.indexLayout_control_buttons {
	gap: 10px;
	margin: 0 auto 10px auto;
	max-width: 150px;
}

.indexLayout_control_btn {
	width: 40px;
	height: 40px;
	padding: 10px;
	font-size: 14px;
}

.indexLayout_info {
	font-size: 11px;
}