/* ================================================================
   My Sessions page + admin booking pages
   ================================================================ */

.kka-sessions-page { background: #f6f7fb; min-height: 70vh; }

/* Banner */
.kka-sessions-banner {
	background: linear-gradient(135deg, #6d56ea 0%, #8b73f0 100%);
	padding: 36px 24px 32px;
	color: #fff;
}
.kka-sessions-banner-inner { max-width: 920px; margin: 0 auto; }
.kka-sessions-breadcrumb { font-size: 13px; opacity: .7; }
.kka-sessions-banner h2 { margin: 6px 0 0; font-size: 28px; font-weight: 700; }

/* Wrap */
.kka-sessions-wrap { max-width: 920px; margin: 0 auto; padding: 32px 24px 60px; }

/* Balance card */
.kka-balance-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow: 0 2px 16px rgba(0,0,0,.07);
	margin-bottom: 28px;
}
.kka-balance-icon { font-size: 32px; }
.kka-balance-num  { font-size: 36px; font-weight: 800; color: #6d56ea; line-height: 1; }
.kka-balance-label { font-size: 13px; color: #64748b; margin-top: 2px; }
.kka-balance-cta {
	margin-left: auto;
	background: #6d56ea;
	color: #fff;
	border-radius: 100px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}
.kka-balance-cta:hover { background: #5a44d6; color: #fff; }

/* Section headings */
.kka-cal-section h3,
.kka-bookings-section h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 6px;
}
.kka-cal-hint { font-size: 13px; color: #64748b; margin: 0 0 16px; }

/* Calendar container */
.kka-cal-section {
	background: #fff;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 2px 16px rgba(0,0,0,.07);
	margin-bottom: 28px;
}
#kka-calendar { margin-top: 12px; }

/* FullCalendar — premium purple theme */

/* Toolbar */
.fc .fc-toolbar.fc-header-toolbar {
	margin-bottom: 1.2em;
	flex-wrap: wrap;
	gap: 8px;
}
.fc .fc-toolbar-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
}

/* Nav & view buttons */
.fc .fc-button {
	background: #f1f5f9 !important;
	border: none !important;
	color: #475569 !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	padding: 6px 14px !important;
	transition: background .15s, color .15s !important;
	box-shadow: none !important;
	text-transform: none !important;
}
.fc .fc-button:hover,
.fc .fc-button:focus {
	background: #ede9fe !important;
	color: #6d56ea !important;
	outline: none !important;
	box-shadow: none !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
	background: #6d56ea !important;
	color: #fff !important;
	box-shadow: none !important;
}
.fc .fc-today-button {
	background: #6d56ea !important;
	color: #fff !important;
}
.fc .fc-today-button:hover { background: #5a44d6 !important; }
.fc .fc-today-button:disabled {
	background: #e2e8f0 !important;
	color: #94a3b8 !important;
	opacity: 1 !important;
	cursor: default !important;
}

/* Column headers (day names) */
.fc .fc-col-header-cell { background: #f8f7ff; padding: 8px 0; }
.fc .fc-col-header-cell-cushion {
	color: #6d56ea;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	text-decoration: none;
}

/* Day number */
.fc .fc-daygrid-day-number {
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	padding: 4px 8px;
}
.fc .fc-daygrid-day-number:hover { color: #6d56ea; }

/* Today cell */
.fc .fc-day-today { background: #f5f3ff !important; }
.fc .fc-day-today .fc-daygrid-day-number {
	background: #6d56ea;
	color: #fff;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 4px 6px 0 auto;
	font-size: 12px;
}

/* Events */
.fc .fc-event {
	background: #6d56ea !important;
	border-color: #6d56ea !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	cursor: pointer;
	padding: 2px 6px !important;
	transition: background .12s, transform .1s;
	box-shadow: 0 1px 4px rgba(109,86,234,.3) !important;
}
.fc .fc-event:hover {
	background: #5a44d6 !important;
	border-color: #5a44d6 !important;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(109,86,234,.4) !important;
}
.fc .fc-event:focus { outline: none; box-shadow: 0 0 0 2px rgba(109,86,234,.45) !important; }
.fc .fc-event-title { color: #fff !important; }
.fc .fc-event-time  { color: rgba(255,255,255,.85) !important; font-size: 11px !important; }
.fc .fc-daygrid-event-harness { margin-bottom: 2px; }

/* Time grid (week view) */
.fc .fc-timegrid-slot       { height: 36px; }
.fc .fc-timegrid-slot-label { font-size: 11px; color: #94a3b8; }

/* Grid borders */
.fc td, .fc th { border-color: #e8eaef !important; }
.fc .fc-scrollgrid { border-color: #e8eaef !important; border-radius: 8px; overflow: hidden; }

/* Booking list */
.kka-bookings-section { margin-bottom: 28px; }
.kka-booking-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.kka-booking-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border-radius: 12px;
	padding: 16px 20px 16px 48px !important;
	box-shadow: 0 1px 8px rgba(0,0,0,.06);
	border-left: 4px solid #e2e8f0;
	gap: 12px;
}
.kka-booking-card.kka-status-approved { border-left-color: #22c55e; }
.kka-booking-card.kka-status-pending  { border-left-color: #f59e0b; }

.kka-booking-date { display: block; font-weight: 600; color: #1e293b; font-size: 15px; }
.kka-booking-time { display: block; font-size: 13px; color: #64748b; margin-top: 2px; }

.kka-booking-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.kka-booking-status-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 100px;
}
.kka-status-approved .kka-booking-status-badge { background: #dcfce7; color: #16a34a; }
.kka-status-pending  .kka-booking-status-badge { background: #fef3c7; color: #b45309; }

/* Buttons */
.kka-btn-primary {
	background: #6d56ea;
	color: #fff;
	border: none;
	border-radius: 100px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
	text-decoration: none;
	display: inline-block;
}
.kka-btn-primary:hover { background: #5a44d6; color: #fff; }

.kka-btn-ghost {
	background: transparent;
	border: 1.5px solid #cbd5e1;
	color: #475569;
	border-radius: 100px;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s;
}
.kka-btn-ghost:hover { border-color: #94a3b8; }

.kka-cancel-btn {
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 100px;
	border: 1.5px solid #fca5a5;
	background: transparent;
	color: #dc2626;
	cursor: pointer;
	font-weight: 600;
	transition: background .15s;
}
.kka-cancel-btn:hover { background: #fee2e2; }

/* No sessions message */
.kka-no-sessions-msg {
	background: #fff;
	border-radius: 14px;
	padding: 40px 24px;
	text-align: center;
	box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.kka-no-sessions-msg p { color: #64748b; margin-bottom: 16px; }

/* Week limit notice */
.kka-week-limit-notice {
	background: #fef3c7;
	border: 1px solid #fde68a;
	color: #92400e;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 12px;
}

/* Modal — use IDs to win over wp_head .kka-modal class rules */
#kka-modal, #kka-cancel-modal {
	position: fixed; inset: 0;
	background: rgba(15,23,42,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
}
.kka-modal-box {
	background: #fff;
	border-radius: 16px;
	padding: 32px 32px 32px 40px;
	max-width: 420px;
	width: 100%;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.kka-modal-box h3 { margin: 0 0 12px; font-size: 20px; }
.kka-modal-box p  { color: #475569; margin-bottom: 10px; font-size: 15px; }
.kka-modal-note   { font-size: 13px !important; color: #94a3b8 !important; }
.kka-modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.kka-modal-actions .kka-modal-close {
	background: #f1f5f9;
	color: #475569;
	border: none;
	border-radius: 100px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}
.kka-modal-actions .kka-modal-close:hover { background: #e2e8f0; color: #1e293b; }

/* Cancel confirmation modal */
.kka-cancel-modal-box { text-align: center; padding: 36px 32px; }
.kka-cancel-modal-icon { font-size: 44px; margin-bottom: 14px; }
.kka-cancel-modal-box h3 { color: #1e293b; margin-bottom: 10px; }

.kka-cancel-confirm-btn {
	background: #dc2626;
	color: #fff;
	border: none;
	border-radius: 100px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}
.kka-cancel-confirm-btn:hover { background: #b91c1c; }
.kka-cancel-confirm-btn:disabled { opacity: .6; cursor: default; }

/* Toast */
.kka-toast {
	position: fixed;
	bottom: 24px; left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #1e293b;
	color: #fff;
	padding: 12px 24px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	z-index: 99999;
	opacity: 0;
	transition: opacity .3s, transform .3s;
	pointer-events: none;
	white-space: nowrap;
}
.kka-toast.kka-toast-success { background: #16a34a; }
.kka-toast.kka-toast-error   { background: #dc2626; }
.kka-toast.kka-toast-show    { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Admin wrap */
.kka-admin-wrap h1 { margin-bottom: 12px; }
.kka-status-pending  { background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.kka-status-approved { background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.kka-status-cancelled{ background: #f1f5f9; color: #94a3b8; padding: 2px 8px; border-radius: 100px; font-size: 12px; font-weight: 700; }

@media (max-width: 600px) {
	.kka-booking-card { flex-direction: column; align-items: flex-start; }
	.kka-modal-actions { flex-direction: column; align-items: center; }
}

/* ── Premium animations ─────────────────────────────────────── */

@keyframes kka-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes kka-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes kka-modal-pop {
	from { opacity: 0; transform: scale(.94) translateY(10px); }
	to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Page sections slide up on load */
.kka-balance-card {
	animation: kka-fade-up .45s cubic-bezier(.22,.68,0,1.2) both;
}
.kka-cal-section {
	animation: kka-fade-up .45s .08s cubic-bezier(.22,.68,0,1.2) both;
}
.kka-no-sessions-msg {
	animation: kka-fade-up .45s .08s cubic-bezier(.22,.68,0,1.2) both;
}
.kka-bookings-section {
	animation: kka-fade-up .45s .16s cubic-bezier(.22,.68,0,1.2) both;
}

/* Each booking card staggers */
.kka-booking-card:nth-child(1) { animation: kka-fade-up .4s .18s both; }
.kka-booking-card:nth-child(2) { animation: kka-fade-up .4s .25s both; }
.kka-booking-card:nth-child(3) { animation: kka-fade-up .4s .32s both; }
.kka-booking-card:nth-child(4) { animation: kka-fade-up .4s .39s both; }
.kka-booking-card:nth-child(n+5) { animation: kka-fade-up .4s .45s both; }

/* Modal entrance */
#kka-modal, #kka-cancel-modal { animation: kka-fade-in .2s both; }
#kka-modal .kka-modal-box, #kka-cancel-modal .kka-modal-box { animation: kka-modal-pop .28s cubic-bezier(.22,.68,0,1.2) both; }