/* Zone globale admin */
#preloadify-settings-wrapper {
	background: #fff;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin: 1rem 1rem 1rem 0;
}

/* Titre principal */
#preloadify-settings-wrapper h1 {
	margin-bottom: 1.5rem;
	font-size: 1.8rem;
}

/* Table des options */
#preloadify-settings-wrapper table.form-table th {
	width: 200px;
	padding-left: 0;
	vertical-align: top;
	font-weight: 600;
}

/* Champs */
#preloadify-settings-wrapper input[type="text"],
#preloadify-settings-wrapper input[type="number"],
#preloadify-settings-wrapper select {
	width: 100%;
	max-width: 300px;
}

/* Image logo preview */

.preloadify-logo-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.preloadify-logo-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.preloadify-logo-url {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #f9f9f9;
	font-size: 0.9rem;
	color: #444;
}

.preloadify-logo-url {
	display: none;
}

.preloadify-logo-url:focus {
	outline: none;
	border-color: #0073aa;
	background: #fff;
}

.preloadify-preview {
	background: #F6F6F6;
	border-radius: .8rem;
	display: flex;
	justify-content: center;
	padding: .5rem;
}

.preloadify-preview img {
	height: auto;
	max-width: 10rem;
}

/* Layout 2 colonnes responsive */
#preloadify-admin-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-top: 2rem;
}

.preloadify-settings {

}

.preloadify-preview-box {
	flex: 1 1 300px;
	min-width: 280px;
	border: 1px solid #e0e0e0;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 12px;
}

/* Container de preview */
#preloadify-preview-container {
	margin-top: 1rem;
}

/* Zone de simulation */
#preloadify-preview-container #preview-loader {
	height: 220px;
	padding: 2rem;
	border-radius: 6px;
	background: var(--preloadify-bg, #ffffff);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

#preloadify-tooltip {
	position: fixed;
	top: 60px;
	right: 30px;
	background-color: #28a745;
	color: #fff;
	padding: 8px 14px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	z-index: 9999;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	display: none;
}

#preloadify-tooltip.error {
	background-color: #dc3545;
}

.preloadify-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
}
.preloadify-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.preloadify-slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0;
	right: 0; bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 26px;
}
.preloadify-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}
.preloadify-switch input:checked + .preloadify-slider {
	background-color: #4CAF50;
}
.preloadify-switch input:checked + .preloadify-slider:before {
	transform: translateX(24px);
}

/* Aide - Accordéon */
.preloadify-help-section {
	margin-top: 2rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1rem;
	background-color: #f9f9f9;
}

.preloadify-help-summary {
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
}

.preloadify-help-content {
	margin-top: 1rem;
	padding-left: 0.5rem;
	font-size: 14px;
	color: #333;
}

.preloadify-help-content p {
	margin-bottom: 0.75rem;
}

/* Signature auteur */
.preloadify-author-info {
	font-size: 13px;
	opacity: 0.7;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	text-align: right;
}

.preloadify-author-info a {
	text-decoration: none;
	color: #0073aa;
}

.preloadify-author-info a:hover {
	text-decoration: underline;
}