/* ============ ORDER TRACKING STYLES ============ */

.order-tracking-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background-color: #f8fafc;
}

.order-tracking-header {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 500px;
    width: 100%;
}

.order-tracking-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.order-tracking-brand i {
    font-size: 1.5rem;
}

.order-tracking-brand .logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.order-tracking-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.order-tracking-subtitle {
    font-size: var(--text-sm);
    color: #6b7280;
    margin: 0;
}

/* Search Form */
.order-tracking-search {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
}

.order-tracking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.order-tracking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-tracking-form .form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: #374151;
}

.order-tracking-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.order-tracking-form .input-icon {
    position: absolute;
    left: 0.75rem;
    color: #9ca3af;
    font-size: var(--text-sm);
    pointer-events: none;
}

.order-tracking-form .input-wrapper input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    color: #111827;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.order-tracking-form .input-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.order-tracking-form .field-error {
    font-size: var(--text-xs);
    color: #dc2626;
    min-height: 1rem;
}

.order-tracking-form .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Order Details Card */
.order-tracking-details {
    width: 100%;
    max-width: 600px;
}

.order-tracking-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.order-tracking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-tracking-card-header h2 {
    font-size: var(--text-base);
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.order-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status-badge.confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.order-status-badge.preparing {
    background: #e0e7ff;
    color: #3730a3;
}

.order-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.order-status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Order Info */
.order-tracking-info {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-tracking-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: #374151;
}

.order-tracking-row i {
    color: #9ca3af;
    width: 1rem;
    text-align: center;
}

.order-tracking-label {
    font-weight: 500;
    color: #6b7280;
}

/* Timeline */
.order-timeline {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    position: relative;
}

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

.timeline-step::before {
    content: '';
    position: absolute;
    left: 0.875rem;
    top: 2rem;
    width: 2px;
    height: calc(100% - 2rem);
    background: #e5e7eb;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.active::before {
    background: var(--color-primary);
}

.timeline-marker {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    color: #9ca3af;
    flex-shrink: 0;
}

.timeline-step.active .timeline-marker {
    background: var(--color-primary);
    color: #fff;
}

.timeline-step.completed .timeline-marker {
    background: #059669;
    color: #fff;
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.timeline-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #374151;
}

.timeline-desc {
    font-size: var(--text-xs);
    color: #9ca3af;
}

.timeline-step.active .timeline-title {
    color: var(--color-primary);
}

.timeline-step.completed .timeline-title {
    color: #059669;
}

/* Order Items Table */
.order-tracking-items {
    padding: 1.25rem 1.5rem;
}

.order-tracking-items h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem;
}

.order-tracking-items h3 i {
    margin-right: 0.375rem;
    color: #9ca3af;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.order-items-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #6b7280;
}

.order-items-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

/* Actions */
.order-tracking-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* Not Found */
.order-tracking-not-found {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    max-width: 400px;
}

.order-tracking-not-found i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.order-tracking-not-found h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem;
}

.order-tracking-not-found p {
    font-size: var(--text-sm);
    margin: 0;
}

/* Footer */
.order-tracking-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: var(--text-sm);
}

.order-tracking-footer strong {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 640px) {
    .order-tracking-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
