/* Tracking Page Styles */

/* Tracking Hero Section */
.tracking-hero {
    background: linear-gradient(135deg, #5a2d82 0%, #183396 50%, #0066cc 100%);
    color: white;
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.tracking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="grid" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/></pattern></defs><rect x="0" y="0" width="1200" height="400" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.tracking-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.tracking-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.tracking-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease;
}

/* Tracking Form */
.tracking-form-container {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.tracking-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #32add4;
    background: white;
    box-shadow: 0 0 0 3px rgba(50, 173, 212, 0.2);
}

.input-group input::placeholder {
    color: #999;
}

.btn-track {
    padding: 15px 35px;
    background: linear-gradient(45deg, #32add4, #4ec5db);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-track:hover {
    background: linear-gradient(45deg, #2a9bc1, #45b8c8);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(50, 173, 212, 0.4);
}

/* Tracking Results Section */
.tracking-results {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Shipment Overview */
.shipment-overview {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.overview-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.overview-info h2 span {
    color: #183396;
    font-weight: 700;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, #32add4, #4ec5db);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.delivered {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
}

.status-badge.pending {
    background: linear-gradient(45deg, #ff9800, #ffa726);
}

.overview-dates {
    display: flex;
    gap: 30px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-item i {
    font-size: 32px;
    color: #183396;
}

.date-item > div {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

/* Shipping Details */
.shipping-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.detail-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #183396, #5a2d82);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 24px;
    color: white;
}

.detail-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.detail-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.detail-content p strong {
    color: #333;
    font-weight: 600;
}

/* Timeline Section */
.timeline-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

.timeline-heading {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
}

.timeline {
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #32add4 0%, #183396 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 50px;
}

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-marker i {
    font-size: 24px;
    color: #999;
}

.timeline-item.completed .timeline-marker {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.timeline-item.completed .timeline-marker i {
    color: white;
}

.timeline-item.active .timeline-marker {
    background: linear-gradient(45deg, #32add4, #4ec5db);
    box-shadow: 0 0 0 4px rgba(50, 173, 212, 0.2);
    animation: pulse 2s infinite;
}

.timeline-item.active .timeline-marker i {
    color: white;
}

.timeline-item.pending .timeline-marker {
    background: white;
    border: 3px solid #e0e0e0;
}

.timeline-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-content {
    background: linear-gradient(135deg, rgba(50, 173, 212, 0.1) 0%, rgba(24, 51, 150, 0.1) 100%);
    border: 2px solid rgba(50, 173, 212, 0.3);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-header h4 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.timeline-date {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.timeline-content > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.timeline-location {
    font-size: 13px;
    color: #183396;
    font-weight: 500;
    margin-top: 10px;
}

.timeline-location i {
    margin-right: 5px;
}

/* Support Section */
.support-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    animation: fadeInUp 1s ease;
}

.support-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.support-card i {
    font-size: 48px;
    color: #183396;
    margin-bottom: 20px;
}

.support-card h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.support-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.support-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #183396, #5a2d82);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-link:hover {
    background: linear-gradient(45deg, #152a7a, #4a2569);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 51, 150, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(50, 173, 212, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(50, 173, 212, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracking-title {
        font-size: 32px;
    }

    .tracking-subtitle {
        font-size: 16px;
    }

    .tracking-form {
        padding: 20px;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-track {
        width: 100%;
        justify-content: center;
    }

    .overview-header {
        flex-direction: column;
        gap: 20px;
    }

    .overview-dates {
        flex-direction: column;
        gap: 15px;
    }

    .shipping-details {
        grid-template-columns: 1fr;
    }

    .shipment-overview {
        padding: 25px;
    }

    .timeline-container {
        padding: 25px;
    }

    .timeline-heading {
        font-size: 22px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
    }

    .timeline-marker i {
        font-size: 18px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .support-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tracking-title {
        font-size: 28px;
    }

    .shipment-overview,
    .timeline-container {
        padding: 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .support-card {
        padding: 30px 20px;
    }
}
