/* Затемнение фона */
.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1001;
	outline: none;
}

/* Модальное окно */
#dialog,
#confirmation-dialog {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	z-index: 1002;
	width: 90%;
	max-width: 400px;
	text-align: center;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
	color: #aaa;
}

.close-btn:hover {
	color: #000;
}

#dialog h2,
#confirmation-dialog h2 {
	margin-top: 0;
	color: #333;
	font-size: 20px;
	text-align: center;
}

#dialog p,
#confirmation-dialog p {
	color: #666;
	font-size: 14px;
	margin-bottom: 20px;
	text-align: center;
}

#dialog input {
	width: 100%;
	padding: 12px;
	margin-bottom: 20px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	box-sizing: border-box;
	text-align: center;
}

#dialog input:focus {
	border-color: rgb(5, 200, 150);
	outline: none;
}

#dialog button#submit-btn {
	width: 100%;
	padding: 12px;
	background-color: rgb(5, 200, 150);
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s;
}

#dialog button#submit-btn:hover {
	background-color: rgb(4, 160, 120);
}

#dialog button#submit-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

/* Сетка времени */
#dialog .schedule-container {
	margin-bottom: 20px;
	text-align: left;
}

#dialog .schedule-label {
	font-weight: bold;
	margin-bottom: 10px;
	display: block;
	color: #444;
}

#dialog .time-slots-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	max-height: 150px;
	overflow-y: auto;
	padding-right: 5px;
}

#dialog .time-slot {
	background: #f0f4f8;
	border: 1px solid #dae1e7;
	border-radius: 4px;
	padding: 6px 0;
	text-align: center;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s;
	color: #333;
}

#dialog .time-slot:hover {
	border-color: rgb(5, 200, 150);
	color: rgb(5, 200, 150);
}

#dialog .time-slot.selected {
	background-color: rgb(5, 200, 150);
	color: white;
	border-color: rgb(5, 200, 150);
}

/* Скроллбар для слотов */
#dialog .time-slots-grid::-webkit-scrollbar {
	width: 4px;
}

#dialog .time-slots-grid::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 4px;
}

/* Иконка успеха */
#confirmation-dialog .success-icon {
	font-size: 50px;
	color: rgb(5, 200, 150);
	margin-bottom: 15px;
}