/**
 * ZAAF Courier Theme - Frontend Styles
 */

:root {
	--primary-color: #0066cc;
	--secondary-color: #f0f0f0;
	--danger-color: #dc3545;
	--success-color: #28a745;
	--warning-color: #ffc107;
}

html, body {
	height: 100%;
	background-color: #f8f9fa;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
	color: #333;
}

.container, .container-fluid {
	margin-top: 1rem;
}

.card {
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
	border: none;
	margin-bottom: 1.5rem;
}

.card-header {
	border-bottom: 1px solid #dee2e6;
	font-weight: 600;
}

.table {
	background-color: #fff;
}

.table thead th {
	background-color: #f8f9fa;
	font-weight: 600;
	border-color: #dee2e6;
}

.table tbody tr:hover {
	background-color: #f8f9fa;
}

.btn {
	border-radius: 0.375rem;
	font-weight: 500;
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-primary:hover {
	background-color: #0052a3;
	border-color: #0052a3;
}

.form-control, .form-select {
	border-color: #dee2e6;
	border-radius: 0.375rem;
}

.form-control:focus, .form-select:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.alert {
	border-radius: 0.375rem;
	border: none;
}

.badge {
	border-radius: 0.375rem;
	padding: 0.5rem 0.75rem;
	font-weight: 500;
	font-size: 0.875rem;
}

.list-group-item {
	border: 1px solid #dee2e6;
	border-radius: 0;
}

.list-group-item:first-child {
	border-radius: 0.375rem 0.375rem 0 0;
}

.list-group-item:last-child {
	border-radius: 0 0 0.375rem 0.375rem;
}

.list-group-item.active {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.modal-header {
	background-color: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
}

.modal-content {
	border-radius: 0.375rem;
	border: 1px solid #dee2e6;
}

.timeline {
	position: relative;
	padding-left: 2rem;
}

.timeline-item {
	position: relative;
	margin-bottom: 2rem;
}

.timeline-marker {
	position: absolute;
	left: -2.5rem;
	top: 0;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background-color: var(--primary-color);
	border: 3px solid #fff;
	box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item:first-child .timeline-marker {
	background-color: var(--success-color);
	box-shadow: 0 0 0 3px var(--success-color);
}

.timeline-content {
	background-color: #fff;
	padding: 1rem;
	border-radius: 0.375rem;
	border: 1px solid #dee2e6;
}

.timeline-content h6 {
	margin: 0 0 0.5rem 0;
	font-weight: 600;
	color: #333;
}

.timeline-content p {
	margin: 0.25rem 0;
	font-size: 0.875rem;
}

.text-muted {
	color: #6c757d !important;
}

.status-badge {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.status-new { background-color: #e7f3ff; color: #0066cc; }
.status-pickup { background-color: #fff3cd; color: #856404; }
.status-transit { background-color: #cce5ff; color: #004085; }
.status-delivered { background-color: #d4edda; color: #155724; }
.status-returned { background-color: #f8d7da; color: #721c24; }
.status-cancelled { background-color: #e2e3e5; color: #383d41; }

@media (max-width: 768px) {
	.container-fluid {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9 {
		width: 100%;
	}

	.timeline {
		padding-left: 1rem;
	}

	.timeline-marker {
		left: -1.5rem;
		width: 0.75rem;
		height: 0.75rem;
	}
}

/* Print styles */
@media print {
	body {
		background-color: #fff;
	}

	.btn, .list-group, .modal {
		display: none;
	}

	.card {
		box-shadow: none;
		border: 1px solid #dee2e6;
	}
}
