/* Track Order Page Styles */

.track-order-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.track-form-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.track-form-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.form-header p {
    margin: 0;
    opacity: 0.9;
}

.track-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.track-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.track-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Order Result Section */
.order-result-section {
    animation: fadeInUp 0.5s ease;
}

.order-result-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.order-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem;
}

.order-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.order-date {
    opacity: 0.9;
}

.order-status-container {
    padding: 2rem;
    background: #f8f9fa;
}

.status-timeline {
    position: relative;
    padding: 1rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.status-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 2px;
    height: calc(100% + 1rem);
    background: #ddd;
    z-index: 1;
}

.status-item.completed::after {
    background: var(--success-color);
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
}

.status-item.completed .status-icon {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
}

.status-item.active .status-icon {
    border-color: var(--warning-color);
    background: var(--warning-color);
    color: white;
    animation: pulse 2s infinite;
}

.status-details {
    margin-left: 1rem;
    flex: 1;
}

.status-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.status-desc {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.status-time {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* Order Details */
.order-details {
    padding: 2rem;
}

.detail-group {
    margin-bottom: 2rem;
}

.detail-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--secondary-color);
}

.detail-value {
    font-weight: 500;
    color: var(--dark-color);
}

/* Order Items */
.order-items {
    padding: 1rem 0;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-quantity {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--warning-color);
}

.error-message h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--secondary-color);
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.info-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Status Colors */
.status-pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-confirmed {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.status-preparing {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.status-ready {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-delivered {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status-cancelled {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .track-form-container {
        padding: 0 1rem;
    }
    
    .track-form {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .item-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}