/* ===================================================
   Uzman Klinik Psikolog Dr. Ali Öktem
   Modern Randevu Takvimi ve Modal Stilleri (appointment.css)
   =================================================== */

/* Hızlı Seans Giriş Kartı */
.active-session-quick-card {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border: 2px solid #38bdf8;
	border-radius: 18px;
	padding: 22px 28px;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-shadow: 0 12px 35px rgba(56, 189, 248, 0.15);
	flex-wrap: wrap;
}

.quick-card-left {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 1;
	min-width: 280px;
}

.quick-icon-pulse {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(56, 189, 248, 0.18);
	border: 1px solid rgba(56, 189, 248, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #38bdf8;
	font-size: 24px;
	flex-shrink: 0;
}

.quick-card-title {
	font-size: 17px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 4px;
}

.quick-card-subtitle {
	font-size: 13.5px;
	color: #94a3b8;
	margin: 0;
	line-height: 20px;
}

.quick-card-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.quick-room-input {
	height: 44px;
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	padding: 8px 14px;
	color: #ffffff;
	font-size: 14px;
	outline: none;
	width: 190px;
}

.quick-room-input:focus {
	border-color: #38bdf8;
}

.quick-join-btn {
	height: 44px;
	background: #38bdf8;
	border: none;
	color: #0f172a;
	padding: 0 20px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s;
	text-decoration: none;
}

.quick-join-btn:hover {
	background: #7dd3fc;
	color: #0f172a;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
	text-decoration: none;
}

.quick-saved-btn {
	background: #10b981;
	color: #ffffff;
}

.quick-saved-btn:hover {
	background: #059669;
	color: #ffffff;
}

/* Süresi Geçmiş Seans Kartı Stilleri */
.active-session-quick-card.is-expired-card {
	border-color: #f59e0b;
	box-shadow: 0 12px 35px rgba(245, 158, 11, 0.15);
	background: linear-gradient(135deg, #1e1b18 0%, #1e293b 100%);
}

.active-session-quick-card.is-expired-card .quick-icon-pulse {
	background: rgba(245, 158, 11, 0.18);
	border-color: rgba(245, 158, 11, 0.4);
	color: #f59e0b;
}

.btn-book-new-session {
	background: #4eaac8;
	color: #ffffff;
}

.btn-book-new-session:hover {
	background: #388da8;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(78, 170, 200, 0.35);
}

.btn-clear-saved-session {
	background: rgba(239, 68, 68, 0.18);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fca5a5;
}

.btn-clear-saved-session:hover {
	background: #ef4444;
	color: #ffffff;
	border-color: #ef4444;
}

/* Bilgilendirme Kutusu */
.appointment-info-alert {
	background: linear-gradient(135deg, #f0fdf4 0%, #e6f9ed 100%);
	border: 1px solid #bbf7d0;
	border-radius: 14px;
	padding: 20px 24px;
	margin-bottom: 35px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.appointment-info-alert i {
	font-size: 26px;
	color: #16a34a;
	flex-shrink: 0;
}

.appointment-info-alert p {
	margin: 0;
	font-size: 14.5px;
	color: #166534;
	line-height: 22px;
}

/* Takvim Kartı */
.calendar-wrapper-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	padding: 30px;
	margin-bottom: 40px;
}

.calendar-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f1f5f9;
	flex-wrap: wrap;
	gap: 15px;
}

.calendar-month-title {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.calendar-month-title i {
	color: #4eaac8;
}

.cal-nav-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cal-nav-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.cal-nav-btn:hover {
	background: #4eaac8;
	border-color: #4eaac8;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(78, 170, 200, 0.25);
}

.cal-today-btn {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #4eaac8;
	font-weight: 700;
}

/* Takvim Tablosu */
.cal-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 6px;
	text-align: center;
}

.cal-table th {
	padding: 12px 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
	background: #f8fafc;
	border-radius: 8px;
}

.cal-table td {
	padding: 0;
	height: 64px;
	vertical-align: middle;
}

.cal-day-cell {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	background: #ffffff;
}

.cal-day-cell:hover:not(.is-past):not(.is-empty) {
	background: #f0f9ff;
	border-color: #7dd3fc;
	color: #0284c7;
	transform: scale(1.04);
}

.cal-day-cell.is-selected {
	background: #4eaac8 !important;
	color: #ffffff !important;
	border-color: #4eaac8 !important;
	box-shadow: 0 6px 20px rgba(78, 170, 200, 0.45);
	transform: scale(1.06);
}

.cal-day-cell.is-today {
	border: 2px solid #4eaac8;
	font-weight: 800;
}

.cal-day-cell.is-today::after {
	content: 'Bugün';
	font-size: 9px;
	font-weight: 700;
	color: #4eaac8;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	position: absolute;
	bottom: 4px;
}

.cal-day-cell.is-selected.is-today::after {
	color: #ffffff;
}

.cal-day-cell.is-past {
	color: #cbd5e1;
	cursor: not-allowed;
	background: #f8fafc;
	opacity: 0.5;
}

.cal-day-cell.is-empty {
	cursor: default;
	background: transparent;
}

.cal-slot-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #10b981;
	margin-top: 2px;
}

.cal-day-cell.is-selected .cal-slot-dot {
	background: #ffffff;
}

/* Seans Slotları Grid Yapısı */
.slots-section-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	padding: 24px 26px;
	margin-top: 15px;
}

.slots-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 2px solid #f1f5f9;
	margin-bottom: 18px;
	flex-wrap: wrap;
	gap: 10px;
}

.slots-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.slots-title span {
	color: #4eaac8;
}

.slots-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0fdf4;
	color: #16a34a;
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid #bbf7d0;
}

.slots-grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

@media (max-width: 576px) {
	.slots-grid-container {
		grid-template-columns: 1fr;
	}
}

.slot-item-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px 18px;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
}

.slot-item-card:hover:not(.is-slot-expired) {
	border-color: #4eaac8;
	background: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(78, 170, 200, 0.15);
}

.slot-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	flex-wrap: wrap;
	gap: 6px;
}

.slot-time-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0f9ff;
	color: #0369a1;
	border: 1px solid #bae6fd;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
}

.slot-status-tag {
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.slot-status-tag.available {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
}

.slot-status-tag.expired {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.slot-details {
	margin-bottom: 12px;
}

.slot-details h5 {
	margin: 0 0 3px;
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
}

.slot-details p {
	margin: 0;
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.35;
}

.slot-book-btn {
	width: 100%;
	background: #4eaac8;
	color: #ffffff;
	border: none;
	padding: 9px 14px;
	border-radius: 9px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.2s ease;
	text-decoration: none;
	margin-top: auto;
}

.slot-book-btn:hover:not(:disabled) {
	background: #3695b3;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(78, 170, 200, 0.3);
	text-decoration: none;
}

/* Süresi Geçmiş / Dolmuş Slot */
.slot-item-card.is-slot-expired {
	background: #f8fafc;
	border-color: #e2e8f0;
	opacity: 0.75;
}

.slot-item-card.is-slot-expired .slot-time-pill {
	background: #f1f5f9;
	color: #64748b;
	border-color: #cbd5e1;
}

.slot-book-btn:disabled,
.slot-book-btn.is-disabled {
	background: #f1f5f9;
	color: #94a3b8;
	border: 1px solid #e2e8f0;
	cursor: not-allowed;
	box-shadow: none;
}

/* Modal Popup */
.modal-custom-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	padding: 20px;
}

.modal-custom-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.modal-custom-card {
	background: #ffffff;
	border-radius: 20px;
	width: 100%;
	max-width: 580px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	position: relative;
	transform: translateY(30px) scale(0.96);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-custom-overlay.is-active .modal-custom-card {
	transform: translateY(0) scale(1);
}

.modal-card-header {
	padding: 24px 28px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border-radius: 20px 20px 0 0;
}

.modal-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.modal-close-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s;
}

.modal-close-btn:hover {
	background: #ef4444;
	border-color: #ef4444;
	color: #ffffff;
}

.modal-card-body {
	padding: 28px;
}

.modal-slot-summary {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.modal-slot-summary i {
	font-size: 22px;
	color: #0284c7;
}

.modal-slot-summary p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #0369a1;
}

.form-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.form-row-2 {
		grid-template-columns: 1fr;
	}
	.cal-table th, .cal-table td {
		font-size: 12px;
		height: 48px;
	}
	.slot-item-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	.slot-book-btn {
		width: 100%;
		justify-content: center;
	}
}

.custom-form-group {
	margin-bottom: 18px;
}

.custom-form-label {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.custom-form-control {
	width: 100%;
	height: 44px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	color: #0f172a;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #ffffff;
}

.custom-form-control:focus {
	border-color: #4eaac8;
	box-shadow: 0 0 0 3px rgba(78, 170, 200, 0.18);
}

.custom-form-textarea {
	height: auto;
	min-height: 80px;
	resize: vertical;
}

.submit-booking-btn {
	width: 100%;
	background: #4eaac8;
	color: #ffffff;
	border: none;
	padding: 14px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s;
	margin-top: 10px;
}

.submit-booking-btn:hover {
	background: #3695b3;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(78, 170, 200, 0.35);
}

/* Başarı Ekranı */
.booking-success-box {
	text-align: center;
	padding: 20px 10px;
	display: none;
}

.booking-success-icon {
	width: 70px;
	height: 70px;
	background: #dcfce7;
	color: #16a34a;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin-bottom: 20px;
}

.booking-success-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 10px;
}

.booking-success-desc {
	font-size: 14.5px;
	color: #475569;
	line-height: 24px;
	margin-bottom: 24px;
}

.booking-summary-badge-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 24px;
	text-align: left;
}

.booking-summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 13.5px;
	padding: 6px 0;
	border-bottom: 1px solid #f1f5f9;
}

.booking-summary-row:last-child {
	border-bottom: none;
}

.booking-summary-row span:first-child {
	color: #64748b;
}

.booking-summary-row span:last-child {
	font-weight: 700;
	color: #0f172a;
}
