/* ========================================== */
/* СТРАНИЦА ПРОВЕРКИ ЗАКАЗА */
/* ========================================== */

.check-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	min-height: calc(100vh - 400px);
}

.check-content {
	background: white;
	border-radius: 20px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
	padding: 40px;
	text-align: center;
	width: 100%;
}

.check-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-bottom: 30px;
}

.check-icon {
	font-size: 3.5rem;
	color: #8b7355;
	background: rgba(139, 115, 85, 0.1);
	width: 90px;
	height: 90px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.check-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	text-align: center;
}

.check-subtitle {
	color: #666;
	font-size: 1.1rem;
	margin-bottom: 40px;
	line-height: 1.6;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Форма */
.check-form {
	background: #f9f7f3;
	border-radius: 16px;
	padding: 30px;
	margin-bottom: 30px;
	text-align: left;
}

.form-group {
	margin-bottom: 25px;
}

.form-group label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #4a4a4a;
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 8px;
}

.form-group label i {
	color: #8b7355;
	font-size: 1.1rem;
	width: 20px;
}

.check-form input,
.admin-form input,
.user-form input {
	width: 100%;
	padding: 15px 20px;
	border: 2px solid #e8dfd0;
	border-radius: 12px;
	font-family: 'Comfortaa', cursive;
	font-size: 1rem;
	color: #1a1a1a;
	transition: all 0.3s ease;
	background: white;
	box-sizing: border-box;
}

.check-form input:focus,
.admin-form input:focus,
.user-form input:focus {
	outline: none;
	border-color: #8b7355;
	box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.check-form input::placeholder,
.admin-form input::placeholder,
.user-form input::placeholder {
	color: #999;
}

.check-btn {
	width: 100%;
	padding: 18px;
	font-size: 1.1rem;
	font-weight: 600;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s ease;
	background: linear-gradient(135deg, #8b7355 0%, #a89176 100%);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
}

.check-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.check-btn.loading {
	position: relative;
	color: transparent;
}

.check-btn.loading:after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin-top: -10px;
	margin-left: -10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Секция для всех пользователей (поиск по email) */
.user-section {
	margin: 40px 0;
	padding: 25px;
	background: #f9f9f9;
	border-radius: 16px;
	border: 2px solid #8b7355;
}

.user-form {
	background: white;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 20px;
	border: 1px solid #e8e8e8;
}

.user-form-title {
	font-size: 1.3rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.user-form-title i {
	color: #8b7355;
}

.user-email-info {
	background: rgba(139, 115, 85, 0.1);
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #4a4a4a;
}

.user-email-info i {
	color: #8b7355;
	font-size: 1.2rem;
}

.user-email-info strong {
	color: #1a1a1a;
	font-weight: 600;
}

.user-login-notice {
	background: rgba(139, 115, 85, 0.08);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
	text-align: center;
	border-left: 4px solid #8b7355;
}

.user-login-notice p {
	color: #4a4a4a;
	margin-bottom: 15px;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.user-login-notice i {
	color: #ffffff;
}

.btn-login-notice {
	background: linear-gradient(135deg, #8b7355 0%, #a89176 100%);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 25px;
	font-family: 'Comfortaa', cursive;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.btn-login-notice:hover {
	background: linear-gradient(135deg, #a89176 0%, #8b7355 100%);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.user-btn {
	width: 100%;
	padding: 16px;
	font-size: 1.1rem;
	font-weight: 600;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, #8b7355 0%, #a89176 100%);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.user-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #a89176 0%, #8b7355 100%);
	transform: translateY(-2px);
}

.user-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #cccccc;
}

.user-btn.loading {
	position: relative;
	color: transparent;
}

.user-btn.loading:after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin-top: -10px;
	margin-left: -10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.user-note {
	background: rgba(139, 115, 85, 0.05);
	border-radius: 8px;
	padding: 12px 15px;
	margin-top: 15px;
	font-size: 0.9rem;
	color: #666;
	text-align: left;
	border-left: 3px solid #8b7355;
}

.user-note i {
	color: #8b7355;
	margin-right: 8px;
}

/* Результаты поиска пользователя */
.user-result {
	background: white;
	border-radius: 16px;
	padding: 25px;
	margin-top: 20px;
	text-align: left;
	border: 2px solid #8b7355;
	animation: fadeIn 0.5s ease;
}

.user-result-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.user-result-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	background: #8b7355;
	color: white;
}

.user-result-header h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	flex: 1;
}

/* Стиль для кнопки скачивания */
.download-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
	color: white;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	margin-left: 10px;
}

.download-link-btn:hover {
	background: linear-gradient(135deg, #45a049 0%, #4caf50 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.download-link-btn i {
	font-size: 0.9rem;
}

/* Админская секция */
.admin-section {
	margin: 40px 0;
	padding: 25px;
	background: #f9f9f9;
	border-radius: 16px;
	border: 2px solid #2c3e50;
}

.section-divider {
	position: relative;
	text-align: center;
	margin-bottom: 25px;
}

.section-divider:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #ddd;
	z-index: 1;
}

.divider-text {
	position: relative;
	display: inline-block;
	background: #f9f9f9;
	padding: 0 15px;
	color: #8b7355;
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	z-index: 2;
}

.admin-section .divider-text {
	background: #f9f9f9;
	color: #2c3e50;
}

.admin-form {
	background: white;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 20px;
	border: 1px solid #e8e8e8;
}

.admin-form-title {
	font-size: 1.3rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.admin-form-title i {
	color: #2c3e50;
}

.admin-btn {
	width: 100%;
	padding: 16px;
	font-size: 1.1rem;
	font-weight: 600;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.admin-btn:hover {
	background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
	transform: translateY(-2px);
}

.admin-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.admin-btn.loading {
	position: relative;
	color: transparent;
}

.admin-btn.loading:after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin-top: -10px;
	margin-left: -10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* Результаты админского поиска */
.admin-result {
	background: white;
	border-radius: 16px;
	padding: 25px;
	margin-top: 20px;
	text-align: left;
	border: 2px solid #2c3e50;
	animation: fadeIn 0.5s ease;
}

.admin-result-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.admin-result-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	background: #2c3e50;
	color: white;
}

.admin-result-header h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	flex: 1;
}

.orders-count {
	font-size: 1.1rem;
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 15px;
}

.orders-list {
	display: grid;
	gap: 10px;
	margin: 20px 0;
}

.order-id-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	background: #f8f9fa;
	border-radius: 10px;
	border: 1px solid #e9ecef;
	transition: all 0.2s ease;
	cursor: pointer;
}

.order-id-item:hover {
	background: #e9ecef;
	border-color: #2c3e50;
	transform: translateX(5px);
}

.order-id-number {
	font-family: 'Courier New', monospace;
	font-size: 1.1rem;
	font-weight: 600;
	color: #2c3e50;
}

.order-id-click {
	font-size: 0.85rem;
	color: #666;
	margin-left: auto;
	font-style: italic;
}

.no-orders-found {
	text-align: center;
	padding: 30px;
	color: #666;
	font-size: 1rem;
}

/* Результаты */
.check-result {
	background: white;
	border-radius: 16px;
	padding: 30px;
	margin: 30px 0;
	text-align: left;
	border: 1px solid #f0e6d6;
	animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.result-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f5f0e8;
}

.result-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.result-icon.success {
	background: #e8f5e9;
	color: #4caf50;
}

.result-icon.error {
	background: #ffebee;
	color: #f44336;
}

.result-icon.warning {
	background: #fff3e0;
	color: #ff9800;
}

.result-icon.info {
	background: #e3f2fd;
	color: #2196f3;
}

.result-icon.pastel-red {
	background: #ffebee;
	color: #e57373;
}

.result-header h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	flex: 1;
}

.order-details {
	display: grid;
	gap: 15px;
	margin-bottom: 25px;
}

.detail-row {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #f5f0e8;
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-label {
	color: #666;
	font-weight: 500;
	flex: 1;
}

.detail-value {
	color: #1a1a1a;
	font-weight: 600;
	text-align: right;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	flex-wrap: wrap;
}

.detail-value.success {
	color: #4caf50;
}

.detail-value.error {
	color: #f44336;
}

.detail-value.warning {
	color: #ff9800;
}

.detail-value.info {
	color: #2196f3;
}

.detail-value.pastel-red {
	color: #e57373;
}

/* Стили для блока скачивания с уведомлением */
.download-notice {
	display: block !important;
	font-size: 0.9rem;
	color: #666;
	line-height: 1.4;
}

.login-link {
	color: #8b7355;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #8b7355;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 2px 4px;
	border-radius: 3px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: inherit;
}

.login-link:hover {
	background: rgba(139, 115, 85, 0.1);
	text-decoration-color: #a89176;
}

/* Действия */
.order-actions {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 2px solid #f5f0e8;
}

.action-buttons {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.action-btn {
	flex: 1;
	min-width: 200px;
	padding: 15px;
	border-radius: 12px;
	font-family: 'Comfortaa', cursive;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
}

.action-btn i {
	font-size: 1.1rem;
}

.btn-email {
	background: #f5f5f5;
	color: #4a4a4a;
	border: 2px solid #e8e8e8;
	width: 100%;
}

.btn-email:hover {
	background: #e8e8e8;
	transform: translateY(-2px);
}

.btn-email.disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: #f5f5f5 !important;
	color: #999 !important;
	border-color: #ddd !important;
	white-space: normal !important;
	height: auto !important;
	min-height: 60px;
	padding: 12px 20px !important;
	text-align: left;
	line-height: 1.4;
}

.btn-email.disabled i {
	margin-right: 10px;
	float: left;
	margin-top: 3px;
}

.btn-email.disabled:hover {
	transform: none !important;
	background: #f5f5f5 !important;
	box-shadow: none !important;
}

.btn-home {
	background: linear-gradient(135deg, #8b7355 0%, #a89176 100%);
	color: white;
	width: 100%;
	margin-top: 10px;
	text-decoration: none;
}

.btn-home:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

/* Информационный блок */
.check-info {
	background: rgba(139, 115, 85, 0.05);
	border-radius: 16px;
	padding: 25px;
	margin: 30px 0;
	text-align: left;
	border-left: 4px solid #8b7355;
}

.check-info h3 {
	color: #1a1a1a;
	font-size: 1.2rem;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.check-info h3 i {
	color: #8b7355;
}

.check-info ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.check-info li {
	color: #666;
	padding: 8px 0;
	padding-left: 25px;
	position: relative;
	line-height: 1.5;
}

.check-info li:before {
	content: '•';
	color: #8b7355;
	font-weight: bold;
	position: absolute;
	left: 10px;
}

/* Загрузка */
.loading-spinner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(139, 115, 85, 0.1);
	border-top: 4px solid #8b7355;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}

.loading-text {
	color: #666;
	font-size: 1.1rem;
}

/* Сообщения */
.status-message {
	padding: 20px;
	border-radius: 12px;
	margin: 20px 0;
	text-align: left;
}

.status-message.error {
	background: #ffebee;
	border-left: 4px solid #e57373;
	color: #c62828;
}

.status-message.warning {
	background: #fff3e0;
	border-left: 4px solid #ff9800;
	color: #ef6c00;
}

.status-message.info {
	background: #e3f2fd;
	border-left: 4px solid #2196f3;
	color: #1565c0;
}

.status-message.success {
	background: #e8f5e9;
	border-left: 4px solid #4caf50;
	color: #2e7d32;
}

.status-message.pastel-red {
	background: #ffebee;
	border-left: 4px solid #e57373;
	color: #c62828;
}

/* ID для скачивания */
.download-id-note {
	font-size: 0.9rem;
	color: #666;
	font-style: italic;
	margin-top: 5px;
	text-align: right;
}

/* Адаптивность */
@media (max-width: 900px) {
	.check-container {
		max-width: 95%;
	}
}

@media (max-width: 768px) {
	.check-container {
		padding: 20px 15px;
	}

	.check-content {
		padding: 30px 20px;
	}

	.check-header {
		gap: 15px;
	}

	.check-icon {
		width: 70px;
		height: 70px;
		font-size: 2.8rem;
	}

	.check-title {
		font-size: 1.8rem;
	}

	.check-form,
	.user-form,
	.admin-form {
		padding: 25px 20px;
	}

	.user-section,
	.admin-section {
		padding: 20px;
	}

	.user-form,
	.admin-form {
		padding: 20px 15px;
	}

	.action-buttons {
		flex-direction: column;
	}

	.action-btn {
		min-width: 100%;
	}

	.check-info {
		padding: 20px 15px;
	}

	.check-info li {
		padding-left: 20px;
	}

	.detail-row {
		flex-direction: column;
		gap: 5px;
	}

	.detail-value {
		text-align: left;
		justify-content: flex-start;
	}

	.download-notice {
		font-size: 0.85rem;
		margin-top: 5px;
	}

	.login-link {
		padding: 3px 6px;
		font-size: 0.9rem;
	}

	.btn-email.disabled {
		font-size: 0.9rem;
		min-height: 70px;
		padding: 10px 15px !important;
	}
}

@media (max-width: 576px) {
	.check-title {
		font-size: 1.6rem;
	}

	.check-subtitle {
		font-size: 1rem;
	}

	.form-group label {
		font-size: 0.95rem;
	}

	.check-form input,
	.user-form input,
	.admin-form input {
		padding: 12px 15px;
		font-size: 0.95rem;
	}

	.check-btn,
	.user-btn,
	.admin-btn {
		padding: 15px;
		font-size: 1rem;
	}

	.result-header,
	.user-result-header,
	.admin-result-header {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.user-form-title,
	.admin-form-title {
		font-size: 1.1rem;
	}

	.download-link-btn {
		padding: 8px 15px;
		font-size: 0.9rem;
		margin-left: 0;
		margin-top: 5px;
	}

	.login-link {
		padding: 2px 4px;
		font-size: 0.85rem;
	}

	.btn-email.disabled {
		font-size: 0.85rem;
		min-height: 80px;
	}
}

/* ========================================== */
/* УВЕДОМЛЕНИЕ ОБ УСПЕШНОЙ ОТПРАВКЕ ПИСЬМА */
/* ========================================== */

.success-notification {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.success-notification.show {
	opacity: 1;
	visibility: visible;
}

.notification-content {
	background: white;
	border-radius: 20px;
	padding: 40px;
	text-align: center;
	max-width: 400px;
	width: 90%;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	transform: translateY(20px);
	transition: all 0.4s ease;
	animation: notificationAppear 0.5s ease forwards;
}

.success-notification.show .notification-content {
	transform: translateY(0);
}

.success-icon-circle {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 25px;
	animation: iconPulse 2s infinite;
}

.success-icon-circle i {
	font-size: 3rem;
	color: white;
}

@keyframes iconPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
	}
	70% {
		box-shadow: 0 0 0 20px rgba(76, 175, 80, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
	}
}

@keyframes notificationAppear {
	0% {
		opacity: 0;
		transform: scale(0.8) translateY(20px);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.notification-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #2e7d32;
	margin: 0 0 10px;
}

.notification-message {
	font-size: 1.1rem;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

/* Адаптивность для уведомления */
@media (max-width: 576px) {
	.notification-content {
		padding: 30px 20px;
		max-width: 320px;
	}

	.success-icon-circle {
		width: 80px;
		height: 80px;
		margin-bottom: 20px;
	}

	.success-icon-circle i {
		font-size: 2.5rem;
	}

	.notification-title {
		font-size: 1.5rem;
	}

	.notification-message {
		font-size: 1rem;
	}
}
