/**
 * Stili per il calendario di prenotazione corsi Swiss Racing Academy
 * Utilizza classi con prefisso 'sra-' per evitare conflitti con il tema
 *
 * @package    SRA_Corsi
 * @since      1.0.0
 */

/* ========================================
   CONTAINER PRINCIPALE
   ======================================== */

.sra-calendar-wrapper {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--sra-color-locked: #80DEEA;
	--sra-color-active: #2196F3;
}

/* ========================================
   TOGGLE CALENDARIO (ACCORDION)
   ======================================== */

.sra-toggle-calendar-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-align: center;
	white-space: nowrap;
	width: 100%;
	padding: 0.65rem 1.25rem;
	background: #2196F3;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s ease;
	margin-bottom: 1rem;
}

.sra-toggle-calendar-btn:hover {
	background: #1976D2;
}

.sra-toggle-calendar-btn[aria-expanded="true"] {
	background: #757575;
	margin-bottom: 1rem;
}

.sra-toggle-calendar-btn[aria-expanded="true"]:hover {
	background: #616161;
}

.sra-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	transition: transform 0.25s ease;
}

.sra-toggle-calendar-btn[aria-expanded="true"] .sra-toggle-icon {
	transform: rotate(180deg);
}

.sra-calendar-area {
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

/* ========================================
   HEADER CALENDARIO
   ======================================== */

.sra-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	gap: 0.75rem;
}

.sra-month-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	text-align: center;
	flex: 1;
}

.sra-nav-btn {
	background: none;
	border: 1.5px solid;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	font-size: 1rem;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sra-nav-btn:hover {
	transform: scale(1.05);
	opacity: 0.8;
}

.sra-nav-btn:active {
	transform: scale(0.95);
}

/* ========================================
   GRIGLIA CALENDARIO
   ======================================== */

.sra-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	margin-bottom: 0;
}

.sra-calendar-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	border: 2px solid transparent;
}

.sra-calendar-day:hover:not(.day-unavailable):not(.day-header):not(.day-empty) {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sra-calendar-day.day-header {
	font-weight: 700;
	cursor: default;
	opacity: 0.6;
	font-size: 0.85rem;
}

.sra-calendar-day.day-empty {
	cursor: default;
	opacity: 0.3;
}

/* Colori dinamici - verranno sovrascritti da JavaScript */
.sra-calendar-day.day-available {
	background-color: #4CAF50;
	color: white;
}

.sra-calendar-day.day-limited {
	background-color: #FFC107;
	color: #333;
}

.sra-calendar-day.day-unavailable {
	background-color: #F44336;
	color: white;
	cursor: not-allowed;
	pointer-events: none;
	opacity: 0.5;
}

.sra-calendar-day.day-selected {
	border: 2px solid #2196F3;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

/* ========================================
   PANNELLO SLOT ORARI
   ======================================== */

.sra-slots-wrapper {
	width: 100%;
	padding: 1.5rem;
	border-radius: 12px;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

.sra-slots-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.sra-slots-header h4 {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
}

.sra-close-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #dc3545;
	border: none;
	border-radius: 4px;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	font-size: 1.4rem;
	cursor: pointer;
	color: white;
	transition: all 0.2s ease;
	line-height: 1;
	padding: 0;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sra-close-btn:hover {
	background: #c82333;
	transform: scale(1.05);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.sra-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
}

.sra-slot {
	padding: 12px;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 2px solid;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.sra-slot:hover:not(.slot-disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sra-slot.slot-selected {
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
	font-weight: 700;
}

.sra-slot.slot-disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.sra-slot-locked-other,
.slot-locked-other {
	background-color: var(--sra-color-locked);
	cursor: not-allowed;
	opacity: 0.6;
}

.sra-slot-mine {
	border: 2px solid var(--sra-color-active);
}

.sra-slot-countdown {
	font-size: 12px;
	color: #555;
}

.sra-slot-time {
	font-size: 1rem;
	font-weight: 500;
}

.sra-slot-badge {
	font-size: 0.6rem;
	font-weight: 600;
	color: #dc3545;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1;
	margin-top: 2px;
	animation: pulse-red 1.5s ease-in-out infinite;
}

@keyframes pulse-red {
	0%, 100% {
		opacity: 1;
		color: #dc3545;
	}
	50% {
		opacity: 0.6;
		color: #ff4444;
	}
}

/* ========================================
   CONTATORE SLOT
   ======================================== */

.sra-counter-box {
	width: 100%;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	text-align: center;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
	box-sizing: border-box;
}

.sra-counter-box strong {
	font-weight: 700;
	font-size: 1.3rem;
}

/* ========================================
   LISTA PRENOTAZIONI
   ======================================== */

.sra-bookings-wrapper {
	width: 100%;
	margin-top: 2rem;
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

.sra-bookings-title {
	margin: 0 0 1rem 0;
	font-size: 1.3rem;
	font-weight: 600;
}

.sra-bookings-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sra-booking-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.sra-booking-item:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sra-booking-info {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex: 1;
}

.sra-booking-date {
	font-weight: 600;
	min-width: 100px;
}

.sra-booking-time {
	font-weight: 500;
}

.sra-booking-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #dc3545;
	color: white;
	border: none;
	border-radius: 4px;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
	transition: all 0.2s ease;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sra-booking-remove:hover {
	background: #c82333;
	transform: scale(1.05);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* ========================================
   LEGENDA
   ======================================== */

.sra-legend {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	padding: 0.75rem 0;
	margin-bottom: 1rem;
	border-bottom: 1px solid #E0E0E0;
}

.sra-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sra-legend-color {
	width: 14px;
	height: 14px;
	border-radius: 3px;
}

.sra-legend-available {
	background-color: #4CAF50;
}

.sra-legend-limited {
	background-color: #FFC107;
}

.sra-legend-unavailable {
	background-color: #F44336;
}

.sra-legend-label {
	font-size: 0.85rem;
	font-weight: 500;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
	.sra-calendar-wrapper {
		padding: 1rem;
	}

	.sra-calendar-header {
		margin-bottom: 1rem;
	}

	.sra-month-title {
		font-size: 1.2rem;
	}

	.sra-nav-btn {
		width: 36px;
		height: 36px;
		font-size: 1rem;
	}

	.sra-calendar-grid {
		gap: 4px;
	}

	.sra-calendar-day {
		font-size: 0.85rem;
		border-radius: 6px;
	}

	.sra-slots-wrapper {
		padding: 1rem;
	}

	.sra-slots-grid {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
		gap: 8px;
	}

	.sra-slot {
		padding: 10px;
		font-size: 0.9rem;
	}

	.sra-counter-box {
		font-size: 1rem;
		padding: 0.8rem 1rem;
	}

	.sra-counter-box strong {
		font-size: 1.1rem;
	}

	.sra-bookings-wrapper {
		padding: 1rem;
	}

	.sra-bookings-title {
		font-size: 1.1rem;
	}

	.sra-booking-item {
		padding: 10px 12px;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.sra-booking-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		width: 100%;
	}

	.sra-booking-remove {
		align-self: flex-end;
		margin-top: -30px;
	}

	.sra-legend {
		gap: 1rem;
		font-size: 0.85rem;
	}

	/* ========================================
	   TIMER GLOBALE
	   ======================================== */

	.sra-global-timer {
		margin-top: 12px;
		padding: 12px;
		background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
		border-radius: 8px;
		text-align: center;
		font-size: 0.95rem;
		border: 2px solid var(--sra-color-active, #2196F3);
		animation: sra-pulse 2s ease-in-out infinite;
	}

	.sra-global-timer .sra-timer-label {
		display: block;
		color: #495057;
		font-weight: 500;
		margin-bottom: 6px;
		font-size: 0.85rem;
	}

	.sra-global-timer .sra-timer-value {
		display: block;
		font-size: 1.8rem;
		font-weight: bold;
		color: var(--sra-color-active, #2196F3);
		font-family: 'Courier New', Courier, monospace;
		letter-spacing: 2px;
	}

	@keyframes sra-pulse {
		0%, 100% {
			box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
		}
		50% {
			box-shadow: 0 0 0 8px rgba(33, 150, 243, 0);
		}
	}

	/* Shortcode Timer */
	.sra-timer-shortcode {
		margin: 15px 0;
		opacity: 0;
		transform: translateY(-10px);
		transition: all 0.3s ease;
	}

	.sra-timer-shortcode.sra-timer-active {
		opacity: 1;
		transform: translateY(0);
	}

	/* Stato locking (durante il caricamento) */
	.sra-slot.sra-slot-locking {
		opacity: 0.6;
		pointer-events: none;
		position: relative;
	}

	.sra-slot.sra-slot-locking::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 16px;
		height: 16px;
		margin: -8px 0 0 -8px;
		border: 2px solid rgba(255, 255, 255, 0.3);
		border-top-color: #fff;
		border-radius: 50%;
		animation: sra-spin 0.6s linear infinite;
	}

	@keyframes sra-spin {
		to {
			transform: rotate(360deg);
		}
	}

	/* Loading e errori */
	.sra-loading,
	.sra-error,
	.sra-no-slots {
		padding: 40px 20px;
		text-align: center;
		color: #6c757d;
		font-size: 1rem;
	}

	.sra-error {
		color: #dc3545;
		background: #f8d7da;
		border: 1px solid #f5c6cb;
		border-radius: 6px;
		padding: 20px;
		margin: 20px 0;
	}

	.sra-loading::after {
		content: '';
		display: inline-block;
		width: 20px;
		height: 20px;
		margin-left: 10px;
		border: 3px solid rgba(0, 0, 0, 0.1);
		border-top-color: #2196F3;
		border-radius: 50%;
		animation: sra-spin 0.8s linear infinite;
	}

	.sra-legend-color {
		width: 16px;
		height: 16px;
	}
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
	.sra-calendar-wrapper {
		max-width: 720px;
	}

	.sra-slots-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */

@media (min-width: 1025px) {
	.sra-calendar-wrapper {
		max-width: 900px;
	}

	.sra-calendar-grid {
		gap: 10px;
	}

	.sra-slots-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* ========================================
   ANIMAZIONI
   ======================================== */

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

.sra-slots-wrapper,
.sra-bookings-wrapper {
	animation: fadeIn 0.3s ease-out;
}

/* ========================================
   ACCESSIBILITÀ
   ======================================== */

.sra-calendar-day:focus,
.sra-slot:focus,
.sra-nav-btn:focus,
.sra-close-btn:focus,
.sra-booking-remove:focus {
	outline: 2px solid #2196F3;
	outline-offset: 2px;
}

/* Assicura contrasto sufficiente per testo */
.sra-calendar-day,
.sra-slot {
	min-height: 44px; /* Minimo area tocco per accessibilità */
}

/* ========================================
   NUOVI STATI SLOT - SISTEMA MULTI-LOCK
   ======================================== */

/* Slot parzialmente occupato ma ancora prenotabile */
.sra-slot.sra-slot-partial {
	background-color: #FFE082;
	border-color: #FFA000;
	cursor: pointer;
	position: relative;
}

.sra-slot.sra-slot-partial:hover {
	background-color: #FFD54F;
	transform: translateY(-2px);
}

/* Badge disponibilità */
.sra-slot-avail-badge {
	position: absolute;
	top: 2px;
	right: 2px;
	background: rgba(0, 0, 0, 0.7);
	color: #FFE082;
	font-size: 0.7rem;
	padding: 2px 5px;
	border-radius: 3px;
	font-weight: bold;
	line-height: 1;
}

/* Slot completamente pieno */
.sra-slot.sra-slot-full {
	background-color: #FFCDD2;
	border-color: #E57373;
	cursor: not-allowed;
	opacity: 0.6;
}

.sra-slot.sra-slot-full::after {
	content: 'PIENO';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 0.7rem;
	font-weight: bold;
	color: #C62828;
	text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

/* Slot in fase di caricamento - non cliccabile */
.sra-slot.sra-slot-loading {
	opacity: 0.5;
	cursor: wait;
	pointer-events: none;
	position: relative;
}

.sra-slot.sra-slot-loading::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
	animation: sra-loading-shimmer 1.5s infinite;
}

@keyframes sra-loading-shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

/* Slot temporaneamente disabilitato (quando si raggiunge il limite) */
.sra-slot.sra-slot-temp-disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ========================================
   SELEZIONE PERSONA (Per chi è il corso?)
   ======================================== */

.sra-person-container {
	width: 100%;
	margin-bottom: 1.5rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.sra-person-container h3 {
	margin: 0 0 1rem 0;
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
}

.sra-person-buttons {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.sra-person-btn {
	flex: 0 1 48%;
	min-width: 150px;
	padding: 0.75rem 1.5rem;
	background: white;
	color: #333;
	border: none ;
	outline: none ;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sra-person-btn:hover {
	background: #E3F2FD;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	border: none ;
	outline: none ;
}

.sra-person-btn:focus {
	border: none ;
	outline: none ;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.sra-person-btn:active {
	border: none ;
	outline: none ;
}

.sra-person-btn.active {
	background: #2196F3;
	color: white;
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
	border: none ;
	outline: none ;
}

.sra-selected-child {
	padding: 0.75rem 1rem;
	background: white;
	border-radius: 6px;
	border-left: 4px solid #2196F3;
	font-size: 0.95rem;
}

.sra-selected-child strong {
	color: #333;
	margin-right: 0.5rem;
}

.sra-selected-child .sra-warning {
	color: #F44336;
	font-weight: 500;
}

/* Bottone calendario disabilitato */
.sra-toggle-calendar-btn.sra-disabled {
	background: #BDBDBD ;
	cursor: not-allowed;
	opacity: 0.6;
}

.sra-toggle-calendar-btn.sra-disabled:hover {
	background: #BDBDBD;
	transform: none;
}

/* ========================================
   MODALE SELEZIONE FIGLIO
   ======================================== */

.sra-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
	animation: fadeIn 0.3s ease;
}

.sra-modal-content {
	background-color: white;
	margin: 5% auto;
	padding: 2rem;
	border-radius: 12px;
	width: 90%;
	max-width: 800px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	position: relative;
	animation: slideDown 0.3s ease;
}

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

.sra-modal-content h3 {
	margin: 0 0 1.5rem 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: #333;
}

.sra-modal-close {
	position: absolute;
	right: 1.5rem;
	top: 1.5rem;
	font-size: 2rem;
	font-weight: bold;
	color: #999;
	cursor: pointer;
	transition: color 0.2s ease;
	line-height: 1;
}

.sra-modal-close:hover {
	color: #333;
}

/* ========================================
   TABELLA FIGLI
   ======================================== */

.sra-child-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	background: white;
}

.sra-child-table thead {
	background: #f5f5f5;
}

.sra-child-table th {
	padding: 0.75rem 1rem;
	text-align: left;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #ddd;
}

.sra-child-table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #eee;
	color: #555;
}

.sra-child-table tbody tr {
	transition: background 0.2s ease;
}

.sra-child-table tbody tr:hover {
	background: #f9f9f9;
}

.sra-select-child-btn {
	padding: 0.5rem 1rem;
	background: #2196F3;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sra-select-child-btn:hover {
	background: #1976D2;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.sra-add-child-btn {
	padding: 0.75rem 1.5rem;
	background: #4CAF50;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.sra-add-child-btn:hover {
	background: #45a049;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* ========================================
   FORM AGGIUNTA FIGLIO
   ======================================== */

.sra-add-child-form {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 8px;
	border: 2px solid #e0e0e0;
}

.sra-add-child-form h4 {
	margin: 0 0 1.5rem 0;
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
}

.sra-form-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

.sra-form-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sra-form-group label {
	font-size: 0.9rem;
	font-weight: 500;
	color: #555;
	margin-bottom: 0.5rem;
}

.sra-form-group input,
.sra-form-group select {
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1rem;
	color: #333;
	background: white;
	transition: all 0.2s ease;
}

.sra-form-group input:focus,
.sra-form-group select:focus {
	outline: none;
	border-color: #2196F3;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.sra-form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
	justify-content: flex-end;
}

.sra-save-child-btn {
	padding: 0.75rem 1.5rem;
	background: #4CAF50;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sra-save-child-btn:hover {
	background: #45a049;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.sra-cancel-child-btn {
	padding: 0.75rem 1.5rem;
	background: #757575;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sra-cancel-child-btn:hover {
	background: #616161;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(117, 117, 117, 0.3);
}

/* ========================================
   RESPONSIVE - MODALE
   ======================================== */

@media (max-width: 768px) {
	.sra-modal-content {
		width: 95%;
		margin: 10% auto;
		padding: 1.5rem;
	}

	.sra-child-table {
		font-size: 0.85rem;
	}

	.sra-child-table th,
	.sra-child-table td {
		padding: 0.5rem 0.75rem;
	}

	.sra-person-buttons {
		flex-direction: column;
	}

	.sra-person-btn {
		min-width: 100%;
	}

	/* Tabella scrollabile su mobile */
	.sra-child-table-wrapper {
		overflow-x: auto;
	}

	/* Form aggiunta figlio responsive */
	.sra-form-row {
		flex-direction: column;
		gap: 0.75rem;
	}

	.sra-form-actions {
		flex-direction: column;
	}

	.sra-save-child-btn,
	.sra-cancel-child-btn {
		width: 100%;
	}
}
