/**
 * Styles publics pour WP Shift Scheduler
 */

.wpss-scheduler {
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wpss-scheduler-header {
	margin-bottom: 30px;
}

.wpss-scheduler-title {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #1d2327;
}

.wpss-scheduler-description {
	font-size: 16px;
	color: #646970;
	margin: 0;
}

.wpss-date-selector {
	margin-bottom: 30px;
	padding: 15px;
	background-color: #f6f7f7;
	border-radius: 4px;
}

.wpss-date-selector label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #1d2327;
}

.wpss-date-input {
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	width: 200px;
}

.wpss-date-display {
	margin-bottom: 30px;
	padding: 15px;
	background-color: #f6f7f7;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	color: #1d2327;
}

.wpss-slots-container {
	margin-top: 20px;
}

.wpss-no-slots {
	padding: 20px;
	text-align: center;
	color: #646970;
	font-size: 16px;
	background-color: #f6f7f7;
	border-radius: 4px;
}

.wpss-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.wpss-slot {
	padding: 15px;
	border: 2px solid #ddd;
	border-radius: 6px;
	text-align: center;
	transition: all 0.3s ease;
	background-color: #fff;
}

.wpss-slot:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wpss-slot-free {
	border-color: #28a745;
	background-color: #d4edda;
}

.wpss-slot-partial {
	border-color: #ffc107;
	background-color: #fff3cd;
}

.wpss-slot-full {
	border-color: #dc3545;
	background-color: #f8d7da;
}

.wpss-slot-booked {
	border-color: #ffc107;
	background-color: #fff3cd;
}

.wpss-slot-confirmed {
	border-color: #007bff;
	background-color: #cfe2ff;
}

.wpss-slot-time {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #1d2327;
}

.wpss-slot-status {
	margin-top: 10px;
}

.wpss-book-btn {
	padding: 8px 16px;
	background-color: #28a745;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.wpss-book-btn:hover {
	background-color: #218838;
}

.wpss-book-btn:disabled {
	background-color: #6c757d;
	cursor: not-allowed;
}

.wpss-slot-user {
	font-size: 14px;
	color: #1d2327;
	font-weight: 500;
}

.wpss-slot-info {
	font-size: 12px;
	color: #646970;
	margin-top: 5px;
	font-weight: 500;
}

/* Slots cliquables */
.wpss-slot--clickable {
	cursor: pointer;
}

/* Modal des inscriptions */
#wpss-registrations-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

#wpss-registrations-modal.is-visible {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpss-modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
}

.wpss-modal-content {
	position: relative;
	background-color: #fff;
	border-radius: 8px;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.wpss-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	color: #aaa;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpss-modal-close:hover {
	color: #000;
}

.wpss-modal-title {
	margin: 0 0 15px 0;
	font-size: 24px;
	font-weight: 600;
	color: #1d2327;
}

.wpss-modal-header {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.wpss-modal-slot-time {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: #646970;
}

.wpss-modal-body {
	margin-top: 20px;
}

.wpss-registration-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wpss-registration-list li {
	padding: 8px 0;
	font-size: 16px;
	color: #1d2327;
	line-height: 1.6;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wpss-reg-name {
	flex: 1;
}

.wpss-reg-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	margin-left: 10px;
}

.wpss-reg-status--confirmed {
	background-color: #d4edda;
	color: #155724;
}

.wpss-leader-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	font-size: 11px;
	border-radius: 3px;
	background-color: #f0ad4e;
	color: #fff;
	font-weight: 600;
}

.wpss-slot-leader-indicator {
	color: #f0ad4e;
	font-weight: 600;
}

/* Style pour la case à cocher dirigeant dans le formulaire */
#wpss_is_leader {
	margin-right: 6px;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

#wpss_is_leader + span {
	user-select: none;
}

/* Modal de réservation */
.wpss-modal {
	display: none;
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.wpss-modal-content {
	background-color: #fff;
	margin: 10% auto;
	padding: 30px;
	border-radius: 8px;
	max-width: 500px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wpss-modal-header {
	margin-bottom: 20px;
}

.wpss-modal-header h3 {
	margin: 0 0 10px 0;
	font-size: 24px;
	color: #1d2327;
}

.wpss-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
}

.wpss-modal-close:hover {
	color: #000;
}

.wpss-form-group {
	margin-bottom: 20px;
}

.wpss-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #1d2327;
}

.wpss-form-group input,
.wpss-form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
}

.wpss-form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.wpss-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

.wpss-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.wpss-btn-primary {
	background-color: #007bff;
	color: #fff;
}

.wpss-btn-primary:hover {
	background-color: #0056b3;
}

.wpss-btn-secondary {
	background-color: #6c757d;
	color: #fff;
}

.wpss-btn-secondary:hover {
	background-color: #545b62;
}

.wpss-loading {
	text-align: center;
	padding: 20px;
	color: #646970;
}

.wpss-message {
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.wpss-message-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.wpss-message-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

