/* Order Tracking Page Styles */

/* CSS Variables */
:root {
    --light-sky-blue: #87CEEB;
    --pale-pastel-pink: #F8BBD9;
    --soft-mint-green: #B8E6B8;
    --light-peach-orange: #FFCBA4;
    --gentle-lavender-purple: #DDA0DD;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --text-dark: #2c3e50;
    --border-color: #e9ecef;
}

/* Track Order Section */
.track-order-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

/* Page Header */
.page-header {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.page-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--dark-gray);
    font-size: 16px;
    margin: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--light-sky-blue);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark-gray);
}

.help-info {
    background: rgba(135, 206, 235, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

/* Search Card */
.search-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.search-header i {
    color: var(--light-sky-blue);
}

.search-header h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.search-form .form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.search-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: var(--light-sky-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.search-form .input-group-text {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--dark-gray);
}

.search-form .input-group .form-control {
    border-left: none;
}

.search-form .input-group:focus-within .input-group-text {
    border-color: var(--light-sky-blue);
    background: rgba(135, 206, 235, 0.1);
}

.search-form .btn-primary {
    background: linear-gradient(135deg, var(--light-sky-blue), #5dade2);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-form .btn-primary:hover {
    background: linear-gradient(135deg, #5dade2, var(--light-sky-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

/* Quick Search */
.quick-search {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.quick-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-buttons .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Order Card */
.order-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.order-header {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(248, 187, 217, 0.05));
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.order-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 5px;
}

.order-date {
    color: var(--dark-gray);
    font-size: 14px;
    margin: 0;
}

.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
}

.status-badge.processing {
    background: linear-gradient(135deg, #ffc107, #ffb300);
}

.status-badge.shipped {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.status-badge.delivered {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.status-badge.cancelled {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Progress Timeline */
.progress-timeline {
    padding: 30px;
    background: var(--white);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 40px;
}

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

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-size: 14px;
}

.timeline-item.completed .timeline-marker {
    background: var(--soft-mint-green);
    border-color: var(--soft-mint-green);
    color: var(--text-dark);
}

.timeline-item.active .timeline-marker {
    background: var(--light-sky-blue);
    border-color: var(--light-sky-blue);
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(135, 206, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0);
    }
}

.timeline-content h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.timeline-content p {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.timeline-content .time {
    color: var(--light-sky-blue);
    font-size: 13px;
    font-weight: 500;
}

/* Order Items */
.order-items {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.item-info {
    color: var(--dark-gray);
    font-size: 13px;
    margin-bottom: 5px;
}

.item-price {
    color: var(--light-sky-blue);
    font-weight: 700;
    font-size: 16px;
}

/* Delivery Information */
.delivery-info {
    padding: 30px;
}

.info-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 8px;
}

.info-item span {
    color: var(--dark-gray);
}

/* Order Actions */
.order-actions {
    padding: 30px;
    background: var(--light-gray);
}

.order-actions .btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.order-actions .btn:hover {
    transform: translateY(-2px);
}

/* No Order Found */
.no-order-found {
    background: var(--white);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

/* FAQ Section */
.faq-section {
    background: var(--light-gray);
}

.faq-section h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    background: var(--white);
    color: var(--text-dark);
    font-weight: 500;
    padding: 15px 20px;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--light-sky-blue);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 20px;
    background: #f8f9fa;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .page-header {
        padding: 20px;
        text-align: center;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .help-info {
        margin-top: 15px;
        text-align: center;
    }
    
    .search-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .order-header {
        padding: 20px;
        text-align: center;
    }
    
    .order-title {
        font-size: 20px;
    }
    
    .progress-timeline,
    .order-items,
    .delivery-info,
    .order-actions {
        padding: 20px;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        left: -20px;
        font-size: 12px;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
    }
    
    .order-actions .btn {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .quick-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 575.98px) {
    .search-card {
        padding: 20px 15px;
    }
    
    .page-header {
        padding: 15px;
    }
    
    .order-header,
    .progress-timeline,
    .order-items,
    .delivery-info,
    .order-actions {
        padding: 15px;
    }
    
    .no-order-found {
        padding: 40px 20px;
    }
}