// App Setup Page Styles

#edbi-app-setup-view {
	min-height: 100vh;
	background: #f0f0f1;
}

.edbi-app-setup {
	&__wrapper {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 100vh;
		padding: 20px;
	}

	&__card {
		background: #ffffff;
		border-radius: 12px;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
		max-width: 1200px;
		width: 100%;
		padding: 40px;
	}

	&__header {
		text-align: center;
		margin-bottom: 32px;

		h1 {
			font-size: 28px;
			font-weight: 600;
			color: #1d2327;
			margin: 0 0 12px 0;
		}
	}

	&__info-buttons {
		display: flex;
		gap: 12px;
		justify-content: center;
		margin-bottom: 32px;
		flex-wrap: wrap;
	}

	// Two Column Layout
	&__content {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	&__form-section {
		min-width: 0;
	}

	&__video-section {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	// Banner/Info Box
	&__banner {
		background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%) !important;
		border-left: 4px solid var(--edbi-primary-color, #5820e5) !important;
		border-radius: 12px;
		padding: 20px 24px !important;
		margin-bottom: 24px !important;
		flex-direction: column;
	}

	&__lead {
		font-size: 15px;
		color: #1d2327;
		margin: 0 0 16px 0;
		line-height: 1.6;
		font-weight: 500;
	}

	&__steps {
		p {
			font-size: 14px;
			font-weight: 600;
			color: #374151;
			margin: 0 0 12px 0;
		}

		ul {
			margin: 0;
			padding-left: 20px;
			list-style: none;

			li {
				font-size: 14px;
				color: #4b5563;
				margin-bottom: 8px;
				padding-left: 8px;
				position: relative;

				&:before {
					content: "•";
					position: absolute;
					left: -8px;
					color: var(--edbi-primary-color, #5820e5);
					font-weight: bold;
				}

				a {
					color: var(--edbi-primary-color, #5820e5);
					text-decoration: none;
					font-weight: 500;

					&:hover {
						text-decoration: underline;
					}
				}

				code {
					background: rgba(255, 255, 255, 0.7);
					padding: 2px 6px;
					border-radius: 4px;
					font-size: 13px;
					font-family: 'Monaco', 'Consolas', monospace;
					color: #dc2626;
				}
			}
		}
	}
}

// Badge styles
.edbi-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	// text-transform: uppercase;
	letter-spacing: 0.5px;

	&--info {
		background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
		color: #4338ca;
	}
}

// Info Buttons
.edbi-info-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;

	svg {
		flex-shrink: 0;
	}

	&--doc {
		background: #e7f3ff;
		color: #2271b1;

		&:hover {
			background: #d4e9f7;
		}
	}

	&--support {
		background: #fff4e5;
		color: #d63638;

		&:hover {
			background: #ffe8d6;
		}
	}

	&--video {
		background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
		color: white;

		&:hover {
			transform: translateY(-2px);
			box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
		}
	}

	&--whatsapp {
		background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
		color: white;

		&:hover {
			transform: translateY(-2px);
			box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
		}
	}
}

// Form Styles
.edbi-app-setup__form {
	label {
		display: block;
		font-size: 14px;
		font-weight: 500;
		color: #1d2327;
		margin-bottom: 8px;
	}
}

.edbi-form-group {
	margin-bottom: 20px;
}

.edbi-form-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font-size: 14px;
	color: #1d2327;
	background: #ffffff;
	transition: border-color 0.2s ease;

	&:focus {
		outline: none;
		border-color: #2271b1;
		box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
	}

	&:disabled {
		background: #f0f0f1;
		color: #646970;
		cursor: not-allowed;
	}

	&--readonly {
		background: #f0f0f1;
		color: #646970;
		cursor: text;
		user-select: all;
	}
}

.edbi-form-help {
	font-size: 13px;
	color: #646970;
	margin: 6px 0 0 0;
	line-height: 1.5;
}

// Input with copy button
.edbi-input-with-copy {
	display: flex;
	gap: 8px;
}

.edbi-input-with-copy .edbi-form-input {
	flex: 1;
}

.edbi-copy-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	background: white;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;

	&:hover {
		background: #f9fafb;
		border-color: #9ca3af;
		color: #374151;
	}

	&--copied {
		background: #d1fae5 !important;
		border-color: #10b981 !important;
		color: #059669 !important;
	}
}

// Submit Button
.edbi-submit-button {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	background: linear-gradient(135deg, var(--edbi-primary-color, #5820e5) 0%, #6366f1 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(88, 32, 229, 0.3);

	&:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 20px rgba(88, 32, 229, 0.4);
	}

	&:disabled {
		opacity: 0.7;
		cursor: not-allowed;
		transform: none;
	}
}

.edbi-button-spinner {
	animation: edbi-spin 1s linear infinite;
}

@keyframes edbi-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.edbi-spinner {
	animation: edbi-spin 1s linear infinite;
}

// Video Wrapper
.edbi-video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

	iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border: none;
	}
}

.edbi-video-info {
	h3 {
		font-size: 18px;
		font-weight: 600;
		color: #1d2327;
		margin: 0 0 8px 0;
	}

	p {
		font-size: 14px;
		color: #646970;
		margin: 0;
		line-height: 1.6;
	}
}

// Responsive adjustments
@media (max-width: 1024px) {
	.edbi-app-setup {
		&__content {
			grid-template-columns: 1fr;
		}

		&__video-section {
			order: -1;
		}
	}
}

@media (max-width: 768px) {
	.edbi-app-setup {
		&__card {
			padding: 24px;
		}

		&__info-buttons {
			flex-direction: column;
		}

		&__header {
			h1 {
				font-size: 24px;
			}
		}
	}

	.edbi-info-button {
		width: 100%;
		justify-content: center;
	}
}
