/**
 * Frontend Dashboards Styling (Owner & Customer Dashboard)
 * Theme: Premium Marine & Yacht Rental Marketplace (Click&Boat style)
 */

/* Mesh Gradient Animated Background Wrapper */
.rentboat-dashboard-wrapper {
	background-color: #f0f4f8;
	background-image: 
		radial-gradient(at 0% 0%, hsla(197, 85%, 88%, 0.8) 0px, transparent 50%),
		radial-gradient(at 50% 0%, hsla(202, 90%, 90%, 0.7) 0px, transparent 50%),
		radial-gradient(at 100% 0%, hsla(185, 80%, 86%, 0.8) 0px, transparent 50%),
		radial-gradient(at 0% 100%, hsla(205, 85%, 85%, 0.7) 0px, transparent 50%),
		radial-gradient(at 100% 100%, hsla(190, 80%, 88%, 0.8) 0px, transparent 50%);
	background-size: 200% 200%;
	animation: rentboatMesh 15s ease infinite;
	padding: 40px 20px;
	border-radius: 24px;
}

@keyframes rentboatMesh {
	0% { background-position: 0% 50% }
	50% { background-position: 100% 50% }
	100% { background-position: 0% 50% }
}

.rentboat-dashboard-container {
	display: flex;
	background: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
	overflow: hidden;
	margin: 10px 0;
	font-family: inherit;
	min-height: 600px;
	transition: all 0.3s ease;
}

/* Sidebar Navigation */
.rentboat-dashboard-sidebar {
	width: 250px;
	background: rgba(248, 250, 252, 0.35);
	backdrop-filter: blur(10px);
	border-right: 1px solid rgba(255, 255, 255, 0.25);
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.rentboat-dashboard-profile {
	text-align: center;
	margin-bottom: 30px;
}

.rentboat-dashboard-profile img {
	border-radius: 50%;
	margin-bottom: 12px;
	border: 3px solid rgba(255,255,255,0.6);
	box-shadow: 0 4px 15px rgba(31, 38, 135, 0.05);
}

.rentboat-dashboard-profile h3 {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.rentboat-dashboard-profile .role-badge {
	display: inline-block;
	background: #e0f2fe;
	color: #0369a1;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 99px;
	border: 1px solid rgba(255,255,255,0.3);
}

.rentboat-dashboard-profile .role-badge.renter-badge {
	background: #f1f5f9;
	color: #475569;
}

.rentboat-dashboard-tabs {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rentboat-dashboard-tabs li {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid transparent;
}

.rentboat-dashboard-tabs li:hover {
	background: rgba(255, 255, 255, 0.6);
	color: #0f172a;
	border-color: rgba(255,255,255,0.3);
	transform: translateX(4px);
}

.rentboat-dashboard-tabs li.active {
	background: #0077b6;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

/* Dashboard Content Pane */
.rentboat-dashboard-content {
	flex: 1;
	padding: 40px;
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.25);
}

.rentboat-tab-panel {
	display: none;
	animation: rentboatFadeIn 0.4s ease;
}

@keyframes rentboatFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.rentboat-tab-panel.active {
	display: block;
}

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
}

.panel-header h2 {
	margin: 0;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.5px;
}

/* Buttons */
.rentboat-action-btn {
	background: #0077b6;
	color: #ffffff;
	border: none;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 10px rgba(0, 119, 182, 0.15);
}

.rentboat-action-btn:hover {
	background: #0096c7;
	box-shadow: 0 6px 14px rgba(0, 119, 182, 0.25);
	transform: translateY(-1px);
}

/* AI description write generator button style */
.rentboat-ai-btn {
	background: linear-gradient(135deg, #8a2be2, #4a00e0);
	color: #ffffff;
	border: none;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s;
	box-shadow: 0 4px 10px rgba(138, 43, 226, 0.2);
}

.rentboat-ai-btn:hover {
	background: linear-gradient(135deg, #9b42f5, #5f0ff5);
	transform: scale(1.02);
	box-shadow: 0 6px 15px rgba(138, 43, 226, 0.35);
}

/* Yacht Listings Grid */
.listings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.listing-item-card {
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(5px);
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	display: flex;
	flex-direction: column;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-item-card:hover {
	transform: translateY(-5px) scale(1.01);
	border-color: rgba(0, 119, 182, 0.3);
	box-shadow: 0 12px 30px rgba(31, 38, 135, 0.08);
	background: rgba(255, 255, 255, 0.8);
}

.listing-item-card .card-image {
	height: 140px;
	background-size: cover;
	background-position: center;
}

.listing-item-card .card-details {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.listing-item-card h3 {
	margin: 0 0 6px 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.listing-item-card p {
	margin: 0 0 8px 0;
	font-size: 13px;
	color: #64748b;
}

.listing-item-card p.price {
	font-size: 14px;
	color: #0f172a;
	margin-bottom: 16px;
	font-weight: 600;
}

.card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.card-actions button {
	flex: 1;
	padding: 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.card-actions .edit-btn {
	background: rgba(241, 245, 249, 0.7);
	color: #0f172a;
	border-color: #cbd5e1;
}
.card-actions .edit-btn:hover {
	background: #f1f5f9;
}

.card-actions .delete-btn {
	background: rgba(254, 242, 242, 0.7);
	color: #ef4444;
	border-color: #fee2e2;
}
.card-actions .delete-btn:hover {
	background: #fef2f2;
}

/* Dashboard Tables */
.bookings-table-container {
	background: rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	overflow: hidden;
}

.dashboard-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.dashboard-table th {
	background: rgba(248, 250, 252, 0.5);
	padding: 14px 18px;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dashboard-table td {
	padding: 16px 18px;
	font-size: 14px;
	color: #0f172a;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	transition: background 0.3s;
}

.dashboard-table tr {
	transition: all 0.2s ease;
}

.dashboard-table tr:hover td {
	background: rgba(255, 255, 255, 0.3);
}

.dashboard-table tr:last-child td {
	border-bottom: none;
}

.date-badge {
	font-size: 11px;
	background: rgba(241, 245, 249, 0.8);
	padding: 2px 6px;
	border-radius: 4px;
	color: #475569;
	display: inline-block;
	margin-bottom: 3px;
}

.paid-amount-indicator {
	color: #16a34a;
	font-weight: 600;
	font-size: 11px;
}

.remaining-amount-indicator {
	color: #ca8a04;
	font-weight: 600;
	font-size: 11px;
}

.status-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-pending { background: #fef3c7; color: #d97706; }
.status-confirmed { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-completed { background: #e0f2fe; color: #0369a1; }

.updated-state {
	animation: pulseHighlight 1.5s ease-out;
}

@keyframes pulseHighlight {
	0% { transform: scale(1); filter: brightness(1.2); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
	70% { transform: scale(1.06); filter: brightness(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
	100% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.payment-unpaid { background: #f1f5f9; color: #475569; }
.payment-paid { background: #dcfce7; color: #15803d; }
.payment-refunded { background: #fee2e2; color: #b91c1c; }
.payment-partially_refunded { background: #ffedd5; color: #ea580c; }
.payment-authorized { background: #e0f2fe; color: #0369a1; }


.action-buttons-cell {
	display: flex;
	gap: 6px;
}

.action-buttons-cell button {
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.action-buttons-cell .confirm-btn { background: #10b981; color: #fff; }
.action-buttons-cell .confirm-btn:hover { background: #059669; }
.action-buttons-cell .cancel-btn { background: #ef4444; color: #fff; }
.action-buttons-cell .cancel-btn:hover { background: #dc2626; }
.action-buttons-cell .chat-btn { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.action-buttons-cell .chat-btn:hover { background: #e2e8f0; }

/* Dashboard Chat Inbox Side-by-Side */
.chat-inbox-wrapper {
	display: flex;
	height: 480px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(5px);
}

.chat-sidebar-users {
	width: 220px;
	background: rgba(248, 250, 252, 0.45);
	border-right: 1px solid rgba(0,0,0,0.06);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.chat-user-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px;
	border-bottom: 1px solid rgba(0,0,0,0.04);
	cursor: pointer;
	position: relative;
	transition: background 0.3s;
}

.chat-user-item:hover {
	background: rgba(255,255,255,0.4);
}

.chat-user-item.active {
	background: rgba(224, 242, 254, 0.7);
}

.chat-user-item img {
	border-radius: 50%;
}

.user-item-info {
	flex: 1;
	min-width: 0;
}

.user-item-info h4 {
	margin: 0 0 3px 0;
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-item-info .last-msg {
	margin: 0;
	font-size: 11px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.unread-dot {
	width: 8px;
	height: 8px;
	background: #0077b6;
	border-radius: 50%;
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.chat-window-pane {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.5);
}

.chat-window-header {
	padding: 14px 20px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	background: rgba(248, 250, 252, 0.4);
}

.chat-window-header h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.chat-window-messages {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: rgba(248, 250, 252, 0.2);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chat-window-send-form {
	display: flex;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid rgba(0,0,0,0.06);
}

.chat-window-send-form input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	outline: none;
	background: rgba(255, 255, 255, 0.8);
}

.chat-window-send-form button {
	background: #0077b6;
	color: #ffffff;
	border: none;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.chat-window-send-form button:hover {
	background: #0096c7;
}

/* Add boat form layout */
.rentboat-dashboard-form {
	max-width: 600px;
}

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

.form-grid-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 15px;
}

.rentboat-dashboard-form .form-group {
	display: flex;
	flex-direction: column;
	margin-bottom: 15px;
}

.rentboat-dashboard-form label {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
}

.rentboat-dashboard-form input,
.rentboat-dashboard-form select,
.rentboat-dashboard-form textarea {
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	color: #0f172a;
	outline: none;
	background: rgba(255,255,255,0.7);
}

.rentboat-dashboard-form input:focus,
.rentboat-dashboard-form select:focus,
.rentboat-dashboard-form textarea:focus {
	border-color: #0077b6;
	background: #ffffff;
}

.form-actions {
	display: flex;
	gap: 10px;
	margin-top: 25px;
}

.form-actions button {
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.form-actions .cancel-btn {
	background: #f1f5f9;
	color: #475569;
	border-color: #cbd5e1;
}

/* Empty State Styling */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	background: rgba(248, 250, 252, 0.4);
	border-radius: 12px;
	border: 2px dashed #cbd5e1;
}

.empty-state p {
	margin: 0 0 15px 0;
	color: #64748b;
}

.empty-state .button {
	display: inline-block;
	background: #0077b6;
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s;
}

.empty-state .button:hover {
	background: #0096c7;
}

/* Status ticks and typing indicator styles */
.rentboat-ticks {
	display: inline-block;
	vertical-align: middle;
}
@keyframes rentboat-bounce {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1.0); }
}
.rentboat-typing-indicator .typing-dot {
	width: 6px;
	height: 6px;
	background: #64748b;
	border-radius: 50%;
	display: inline-block;
	animation: rentboat-bounce 1.4s infinite both;
}
.rentboat-typing-indicator .typing-dot:nth-child(2) {
	animation-delay: 0.2s;
}
.rentboat-typing-indicator .typing-dot:nth-child(3) {
	animation-delay: 0.4s;
}
