/**
 * Dashboard Styles
 *
 * @package SH_Bookings
 */

:root {
	--sh-primary-color: #C41E3A;
	--sh-secondary-color: #1a1a1a;
	--sh-border-radius: 8px;
}

.sh-dashboard-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

/* Login */
.sh-dashboard-login {
	max-width: 400px;
	margin: 100px auto;
	background: #fff;
	padding: 40px;
	border-radius: var(--sh-border-radius);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	text-align: center;
}

.sh-dashboard-login h2 {
	margin-top: 0;
	color: var(--sh-primary-color);
}

.sh-dashboard-login input {
	width: 100%;
	padding: 15px;
	margin: 20px 0;
	border: 1px solid #ddd;
	border-radius: var(--sh-border-radius);
	font-size: 18px;
	text-align: center;
	letter-spacing: 2px;
}

/* Header */
.sh-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	padding: 20px;
	border-radius: var(--sh-border-radius);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	margin-bottom: 30px;
}

.sh-dashboard-header h2 {
	margin: 0;
}

/* Navigation */
.sh-dashboard-nav {
	display: flex;
	gap: 15px;
	margin: 20px 0;
}

.sh-dashboard-nav button {
	padding: 10px 20px;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: var(--sh-border-radius);
	cursor: pointer;
	transition: all 0.3s;
}

.sh-dashboard-nav button.active {
	background: var(--sh-primary-color);
	color: #fff;
	border-color: var(--sh-primary-color);
}

/* Bookings list */
.sh-bookings-list {
	background: #fff;
	border-radius: var(--sh-border-radius);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	overflow: hidden;
}

.sh-booking-card {
	padding: 20px;
	border-bottom: 1px solid #eee;
	transition: background 0.3s;
}

.sh-booking-card:hover {
	background: #f9f9f9;
}

.sh-booking-card:last-child {
	border-bottom: none;
}

.sh-booking-time {
	font-size: 18px;
	font-weight: 700;
	color: var(--sh-primary-color);
	margin-bottom: 10px;
}

.sh-booking-info {
	margin-bottom: 10px;
}

.sh-booking-customer {
	font-weight: 600;
	font-size: 16px;
}

.sh-booking-service {
	color: #666;
	margin: 5px 0;
}

.sh-booking-contact {
	color: #666;
	font-size: 14px;
}

.sh-booking-contact a {
	color: var(--sh-primary-color);
	text-decoration: none;
}

.sh-booking-notes {
	background: #f9f9f9;
	padding: 10px;
	border-radius: 4px;
	margin: 10px 0;
	font-size: 14px;
	font-style: italic;
}

.sh-booking-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.sh-booking-actions button {
	padding: 8px 16px;
	border: none;
	border-radius: var(--sh-border-radius);
	cursor: pointer;
	font-size: 14px;
	transition: opacity 0.3s;
}

.sh-booking-actions button:hover {
	opacity: 0.8;
}

.sh-btn-completed {
	background: #28a745;
	color: #fff;
}

.sh-btn-no-show {
	background: #dc3545;
	color: #fff;
}

.sh-booking-status {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.sh-status-pending {
	background: #ffc107;
	color: #000;
}

.sh-status-confirmed {
	background: #17a2b8;
	color: #fff;
}

.sh-status-completed {
	background: #28a745;
	color: #fff;
}

.sh-status-cancelled {
	background: #dc3545;
	color: #fff;
}

.sh-status-no_show {
	background: #6c757d;
	color: #fff;
}

/* Calendar view */
.sh-calendar-view {
	background: #fff;
	padding: 30px;
	border-radius: var(--sh-border-radius);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
	.sh-dashboard-header {
		flex-direction: column;
		text-align: center;
	}

	.sh-dashboard-nav {
		flex-direction: column;
	}

	.sh-booking-actions {
		flex-direction: column;
	}
}
