/* Dashboard styles */

/* ===== Dashboard Page Background ===== */
.sp-dashboard-page {
	background: linear-gradient(180deg, #0B1D3A 0%, #0A4D8C 30%, #00B4D8 70%, #48D1CC 100%);
	min-height: 100vh;
	position: relative;
}

.sp-dashboard-page::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
		url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 0;
}

.sp-dashboard-page > * {
	position: relative;
	z-index: 1;
}

/* ===== Overall Dashboard ===== */
.sp-dashboard {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 1.5rem;
}

.sp-dashboard__sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.sp-dashboard__main {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* ===== Dashboard Cards ===== */
.sp-dashboard-card {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.sp-dashboard-card__title {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #0A4D8C);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid rgba(10, 77, 140, 0.1);
}

/* ===== Profile Card ===== */
.sp-profile-card {
	background: linear-gradient(135deg, #0B1D3A, #0A4D8C) !important;
	color: #fff;
	text-align: center;
	border: 1px solid rgba(0, 180, 216, 0.3) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

/* ===== Stats Grid ===== */
.sp-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 0;
}

.sp-stat {
	border-radius: 12px;
	padding: 1rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.sp-stat:nth-child(1) {
	background: linear-gradient(135deg, #0A4D8C, #00B4D8);
	color: #fff;
}

.sp-stat:nth-child(2) {
	background: linear-gradient(135deg, #F4A940, #FFD700);
	color: #0B1D3A;
}

.sp-stat:nth-child(3) {
	background: linear-gradient(135deg, #2E7D32, #66BB6A);
	color: #fff;
}

.sp-stat__value {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.2;
}

.sp-stat__label {
	font-size: 0.7rem;
	margin-top: 0.2rem;
	opacity: 0.85;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ===== Recent Activity ===== */
.sp-recent-activity {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sp-recent-activity li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.5rem;
	border-bottom: 1px solid #f0f4f8;
	font-size: 0.9rem;
	border-radius: 8px;
	transition: background 0.2s;
}

.sp-recent-activity li:hover {
	background: #f8fbff;
}

.sp-recent-activity li:last-child {
	border-bottom: none;
}

.sp-recent-activity__icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, #0A4D8C, #00B4D8);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
}

.sp-recent-activity__text {
	flex: 1;
	font-weight: 500;
}

/* ===== Booking History ===== */
.sp-booking-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid #f0f4f8;
	border-radius: 8px;
	transition: background 0.2s;
}

.sp-booking-item:hover {
	background: #f8fbff;
}

.sp-booking-item:last-child {
	border-bottom: none;
}

.sp-booking-item__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #00B4D8, #0A4D8C);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
}

.sp-booking-item__info {
	flex: 1;
}

.sp-booking-item__name {
	font-weight: 600;
	font-size: 0.9rem;
}

.sp-booking-item__name a {
	color: var(--wp--preset--color--dark, #0B1D3A);
	text-decoration: none;
}

.sp-booking-item__name a:hover {
	color: var(--wp--preset--color--primary, #0A4D8C);
}

.sp-booking-item__date {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted, #6B7B8D);
}

/* ===== Notification Toast ===== */
.sp-xp-toast {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background: linear-gradient(135deg, #0B1D3A, #0A4D8C);
	color: #fff;
	padding: 1rem 1.5rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: 1rem;
	box-shadow: 0 8px 32px rgba(10, 77, 140, 0.4);
	transform: translateY(100px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
	border: 1px solid rgba(0, 180, 216, 0.3);
}

.sp-xp-toast.visible {
	transform: translateY(0);
	opacity: 1;
}

.sp-xp-toast__amount {
	color: #FFD700;
}

@media (max-width: 768px) {
	.sp-dashboard {
		grid-template-columns: 1fr;
	}

	.sp-dashboard-stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.sp-xp-toast {
		bottom: 1rem;
		right: 1rem;
		left: 1rem;
		text-align: center;
	}
}
