/**
 * API Credentials Admin Styles
 * All Embed Addons for Elementor
 */

.aeafe-admin-wrap {
	max-width: 1200px;
	margin-top: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.aeafe-header {
	margin-bottom: 25px;
}

.aeafe-header h1 {
	font-size: 26px;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 6px 0;
}

.aeafe-header-desc {
	font-size: 14px;
	color: #646970;
	margin: 0;
}

.aeafe-cards-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 960px) {
	.aeafe-cards-grid {
		grid-template-columns: 1fr;
	}
}

.aeafe-card {
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.aeafe-card-header {
	padding: 20px 24px;
	border-bottom: 1px solid #f0f0f1;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.aeafe-card-title-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}

.aeafe-service-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #f6f7f7;
	border-radius: 8px;
}

.aeafe-card-header h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	color: #1d2327;
}

.aeafe-card-subtitle {
	font-size: 12px;
	color: #646970;
}

.aeafe-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.aeafe-status-badge .status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.status-connected {
	background: #ecfdf3;
	color: #027a48;
}

.status-connected .status-dot {
	background: #12b76a;
	box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.2);
}

.status-ready {
	background: #eff8ff;
	color: #175cd3;
}

.status-ready .status-dot {
	background: #2e90fa;
	box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.2);
}

.status-unconfigured {
	background: #fff6ed;
	color: #c4320a;
}

.status-unconfigured .status-dot {
	background: #f79009;
	box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.2);
}

.aeafe-card-body {
	padding: 24px;
}

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

.aeafe-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 6px;
}

.aeafe-label .required {
	color: #d63638;
}

.aeafe-field-help {
	font-size: 12px;
	color: #646970;
	margin: 0 0 8px 0;
}

.aeafe-copy-box {
	display: flex;
	gap: 8px;
}

.aeafe-readonly-input {
	flex: 1;
	background: #f6f7f7 !important;
	color: #2c3338 !important;
	font-family: monospace;
	font-size: 12px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 6px 10px;
}

.aeafe-input-full {
	width: 100% !important;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 13px;
}

.aeafe-password-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.aeafe-password-wrap input {
	padding-right: 36px;
}

.aeafe-toggle-secret {
	position: absolute;
	right: 6px;
	background: none;
	border: none;
	color: #646970;
	cursor: pointer;
	padding: 4px;
}

.aeafe-toggle-secret:hover {
	color: #1d2327;
}

.aeafe-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f1;
	margin-top: 24px;
}

.aeafe-btn-danger {
	color: #d63638 !important;
	border-color: #d63638 !important;
}

.aeafe-btn-danger:hover {
	background: #d63638 !important;
	color: #fff !important;
}

.aeafe-btn-connect {
	background: #1a73e8 !important;
	border-color: #1a73e8 !important;
	color: #fff !important;
}

.aeafe-btn-connect:hover {
	background: #1558b0 !important;
	border-color: #1558b0 !important;
}

.aeafe-steps-list {
	margin: 0;
	padding-left: 20px;
	color: #2c3338;
	line-height: 1.6;
}

.aeafe-steps-list li {
	margin-bottom: 14px;
	font-size: 13px;
}

.aeafe-steps-list strong {
	display: block;
	color: #1d2327;
}

.aeafe-help-footer {
	margin-top: 20px;
	padding: 12px 16px;
	background: #f0f6fc;
	border-radius: 6px;
	border-left: 4px solid #2271b1;
}

.aeafe-help-footer p {
	margin: 0;
	font-size: 12px;
	color: #1e3a8a;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
