/**
 * OMS Tracking Styles
 *
 * @package Logistic
 */

.oms-tracking-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.oms-tracking-header {
	margin-bottom: 30px;
	text-align: center;
}

.oms-tracking-header h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	color: #333;
}

.oms-tracking-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 2px solid #e0e0e0;
}

.oms-tab-button {
	padding: 12px 24px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	color: #666;
	transition: all 0.3s ease;
}

.oms-tab-button:hover {
	color: #333;
}

.oms-tab-button.active {
	color: #0073aa;
	border-bottom-color: #0073aa;
}

.oms-tab-content {
	display: none;
	padding: 20px 0;
}

.oms-tab-content.active {
	display: block;
}

.oms-tracking-form {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 8px;
}

.oms-form-group {
	margin-bottom: 20px;
}

.oms-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.oms-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
}

.oms-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.oms-button {
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.oms-button-primary {
	background: #0073aa;
	color: #fff;
}

.oms-button-primary:hover {
	background: #005a87;
}

.oms-button-secondary {
	background: #666;
	color: #fff;
}

.oms-button-secondary:hover {
	background: #555;
}

.oms-qr-scanner-container {
	text-align: center;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

#oms-qr-reader {
	margin-bottom: 20px;
}

.oms-loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

.oms-error {
	background: #ffeaea;
	border: 1px solid #ff6b6b;
	color: #c92a2a;
	padding: 12px 16px;
	border-radius: 4px;
	margin: 20px 0;
}

.oms-tracking-results {
	margin-top: 30px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.oms-order-details h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #e0e0e0;
	padding-bottom: 10px;
}

.oms-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.oms-order-table th,
.oms-order-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.oms-order-table th {
	background: #f9f9f9;
	font-weight: 600;
	color: #333;
	width: 30%;
}

.oms-order-table td {
	color: #666;
}

.oms-order-table tbody tr:hover {
	background: #f9f9f9;
}

/* Tracking Timeline */
.oms-tracking-timeline {
	margin-top: 30px;
	padding: 30px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.oms-tracking-header-info {
	margin-bottom: 30px;
}

.oms-tracking-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #1e3a8a;
	margin-bottom: 8px;
}

.oms-tracking-number {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: #1e3a8a;
	letter-spacing: 1px;
}

.oms-timeline-container {
	position: relative;
	padding-left: 30px;
}

.oms-timeline-item {
	position: relative;
	padding-bottom: 30px;
}

.oms-timeline-item:last-child {
	padding-bottom: 0;
}

.oms-timeline-marker {
	position: absolute;
	left: -30px;
	top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.oms-timeline-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #e0e0e0;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #e0e0e0;
	z-index: 2;
	transition: all 0.3s ease;
}

.oms-timeline-item.completed .oms-timeline-dot {
	background: #1e3a8a;
	box-shadow: 0 0 0 2px #1e3a8a;
}

.oms-timeline-item.current .oms-timeline-dot {
	background: #1e3a8a;
	box-shadow: 0 0 0 2px #1e3a8a;
	width: 20px;
	height: 20px;
}

.oms-timeline-line {
	width: 2px;
	flex: 1;
	background: #e0e0e0;
	margin-top: 4px;
	min-height: 30px;
}

.oms-timeline-item.completed .oms-timeline-line {
	background: #1e3a8a;
}

.oms-timeline-content {
	margin-left: 20px;
}

.oms-timeline-status {
	font-size: 16px;
	font-weight: 700;
	color: #1e3a8a;
	margin-bottom: 6px;
	line-height: 1.4;
}

.oms-timeline-item:not(.completed) .oms-timeline-status {
	color: #9ca3af;
	font-weight: 500;
}

.oms-timeline-date {
	font-size: 14px;
	color: #9ca3af;
	font-weight: 400;
}

.oms-timeline-item.completed .oms-timeline-date {
	color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
	.oms-tracking-container {
		padding: 15px;
	}

	.oms-tracking-form {
		padding: 20px;
	}

	.oms-tracking-header h2 {
		font-size: 24px;
	}

	.oms-tab-button {
		padding: 10px 16px;
		font-size: 14px;
	}

	.oms-tracking-number {
		font-size: 24px;
	}

	.oms-timeline-container {
		padding-left: 25px;
	}

	.oms-timeline-marker {
		left: -25px;
	}

	.oms-timeline-status {
		font-size: 14px;
	}

	.oms-timeline-date {
		font-size: 12px;
	}
}

