/* Styles pour la section connexions externes (OAuth linking) */

.jcf-oauth-connections-card {
	/* Utilise les mêmes styles que les autres cartes du dashboard */
}

.jcf-oauth-connections-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jcf-oauth-connection-item {
	display: flex;
	flex-direction: column;
	padding: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.jcf-oauth-connection-item:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.jcf-oauth-connection-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.jcf-oauth-connection-header svg {
	flex-shrink: 0;
}

.jcf-oauth-connection-header strong {
	font-weight: 600;
	color: #1e293b;
	flex: 1;
}

.jcf-oauth-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.jcf-oauth-badge-linked {
	background: #dcfce7;
	color: #166534;
}

.jcf-oauth-badge-unlinked {
	background: #fee2e2;
	color: #991b1b;
}

.jcf-oauth-connection-actions {
	display: flex;
	gap: 8px;
}

.jcf-btn-unlink {
	flex: 1;
	padding: 10px 16px;
	background: #dc2626;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.jcf-btn-unlink:hover:not(:disabled) {
	background: #b91c1c;
	box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.jcf-btn-unlink:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.jdw-btn[href*="google_link"], 
.jdw-btn[href*="linkedin_link"] {
	display: inline-block;
	flex: 1;
}

/* Messages de notification */
.jcf-notice {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 16px;
	border-left: 4px solid;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.jcf-notice-success {
	background: #f0fdf4;
	color: #166534;
	border-color: #4ade80;
}

.jcf-notice-error {
	background: #fef2f2;
	color: #991b1b;
	border-color: #f87171;
}

.jcf-notice-info {
	background: #eff6ff;
	color: #1e40af;
	border-color: #60a5fa;
}

/* Responsive */
@media (max-width: 768px) {
	.jcf-oauth-connection-header {
		flex-wrap: wrap;
	}

	.jcf-oauth-badge {
		order: 3;
		margin-top: 8px;
	}

	.jcf-oauth-connection-actions {
		flex-direction: column;
	}
}
