/* Shahd Order Manager - Customer Frontend Styles */

.shahd-tracking-page,
.shahd-invoices-page {
	direction: rtl;
	padding: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.shahd-page-title {
	font-size: 28px;
	margin-bottom: 10px;
	color: #1d2327;
}

.shahd-page-desc {
	color: #646970;
	margin-bottom: 30px;
	font-size: 14px;
}

/* Empty State */
.shahd-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #f6f7f7;
	border-radius: 8px;
}

.shahd-empty-icon {
	font-size: 64px;
	margin-bottom: 20px;
}

.shahd-empty-state p {
	font-size: 16px;
	color: #646970;
	margin-bottom: 20px;
}

/* Order Card */
.shahd-order-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: box-shadow 0.2s;
}

.shahd-order-card:hover {
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.shahd-order-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #dcdcde;
}

.shahd-order-info h3 {
	margin: 0 0 5px 0;
	font-size: 20px;
	color: #1d2327;
}

.shahd-order-date {
	margin: 0;
	color: #646970;
	font-size: 14px;
}

.shahd-status-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

.shahd-status-preparing { background: #fff3cd; color: #856404; }
.shahd-status-shipping { background: #cfe2ff; color: #084298; }
.shahd-status-delivered { background: #d1e7dd; color: #0f5132; }
.shahd-status-pending { background: #f8d7da; color: #842029; }

/* Timeline */
.shahd-order-timeline {
	margin: 20px 0;
}

.shahd-timeline-steps {
	display: flex;
	justify-content: space-between;
	position: relative;
	padding: 20px 0;
}

.shahd-timeline-steps::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(to left, #00a32a 0%, #00a32a var(--progress, 0%), #dcdcde var(--progress, 0%), #dcdcde 100%);
	z-index: 0;
	border-radius: 2px;
}

.shahd-timeline-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
}

.shahd-timeline-icon {
	font-size: 32px;
	background: #e0e0e0;
	padding: 8px;
	border-radius: 50%;
	margin-bottom: 8px;
	transition: all 0.3s;
	position: relative;
}

/* Completed Steps (Past) */
.shahd-timeline-completed .shahd-timeline-icon {
	background: #00a32a;
	color: #fff;
	transform: scale(1);
}

.shahd-timeline-completed .shahd-timeline-label {
	color: #00a32a;
	font-weight: 500;
}

/* Current Step (Active) */
.shahd-timeline-current .shahd-timeline-icon {
	background: #2271b1;
	color: #fff;
	transform: scale(1.15);
	box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
	animation: pulse-current 2s infinite;
}

.shahd-timeline-current .shahd-timeline-label {
	color: #2271b1;
	font-weight: 700;
	font-size: 13px;
}

.shahd-timeline-indicator {
	position: absolute;
	top: -5px;
	right: -5px;
	width: 12px;
	height: 12px;
	background: #2271b1;
	border-radius: 50%;
	border: 2px solid #fff;
	animation: pulse-dot 1.5s infinite;
}

/* Pending Steps (Future) */
.shahd-timeline-pending .shahd-timeline-icon {
	background: #e0e0e0;
	color: #999;
	opacity: 0.5;
}

.shahd-timeline-pending .shahd-timeline-label {
	color: #999;
	font-weight: 400;
}

@keyframes pulse-current {
	0%, 100% { 
		transform: scale(1.15);
		box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
	}
	50% { 
		transform: scale(1.2);
		box-shadow: 0 0 0 8px rgba(34, 113, 177, 0.1);
	}
}

@keyframes pulse-dot {
	0%, 100% { 
		transform: scale(1);
		opacity: 1;
	}
	50% { 
		transform: scale(1.3);
		opacity: 0.7;
	}
}

.shahd-order-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #dcdcde;
}

.shahd-order-total {
	font-size: 16px;
	color: #1d2327;
}

.shahd-view-btn {
	padding: 10px 20px;
	text-decoration: none;
}

/* Invoices Table */
.shahd-invoices-table-wrapper {
	overflow-x: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shahd-invoices-table {
	width: 100%;
	border-collapse: collapse;
}

.shahd-invoices-table thead {
	background: #f6f7f7;
}

.shahd-invoices-table th {
	padding: 15px;
	text-align: right;
	font-weight: 600;
	color: #1d2327;
	border-bottom: 2px solid #dcdcde;
}

.shahd-invoices-table td {
	padding: 15px;
	border-bottom: 1px solid #dcdcde;
}

.shahd-invoices-table tbody tr:hover {
	background: #f6f7f7;
}

.shahd-order-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}

.shahd-status-completed { background: #d1e7dd; color: #0f5132; }
.shahd-status-processing { background: #cfe2ff; color: #084298; }

/* Shipping Status Box */
.shahd-shipping-status-box {
	background: #f6f7f7;
	border-right: 4px solid #2271b1;
	padding: 20px;
	margin-top: 30px;
	border-radius: 4px;
}

.shahd-shipping-status-box h3 {
	margin: 0 0 15px 0;
	font-size: 18px;
	color: #1d2327;
}

.shahd-status-content {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 500;
	color: #1d2327;
}

.shahd-status-icon {
	font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
	.shahd-order-header {
		flex-direction: column;
		gap: 15px;
	}
	
	.shahd-order-footer {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
	}
	
	.shahd-timeline-steps {
		flex-direction: column;
		gap: 20px;
	}
	
	.shahd-timeline-steps::before {
		display: none;
	}
	
	.shahd-invoices-table {
		font-size: 14px;
	}
	
	.shahd-invoices-table th,
	.shahd-invoices-table td {
		padding: 10px;
	}
}

