/* Global Styles */
body {
    background-color: #fff;
    font-family: 'Cairo', sans-serif;
    color: #303030;
}

/* Header Styles */
header {
    padding: 24px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 32px;
}

header img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

/* Support Section */
.support-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}

.support-text {
    color: #002781;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.support-text:hover {
    background-color: rgba(0, 39, 129, 0.1);
}

.contact-info {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 250px;
}

.support-wrapper:hover .contact-info {
    display: block;
}

.contact-info div {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.contact-info div:last-child {
    border-bottom: none;
}

/* Search Section */
.search-order {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-order:focus {
    border-color: #002781;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 39, 129, 0.1);
}

.btn-track {
    background-color: #002781;
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #002781;
    margin-top: 24px;
}

.btn-track:hover {
    background-color: #fff;
    color: #002781;
}

/* Tracking Info Section */
.tracking-info {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.tracking-text {
    font-size: 24px;
    font-weight: 600;
    margin-right: 12px;
}

.tracking-number {
    color: #002781;
    font-weight: 700;
}

.welcome-text {
    color: #616161;
    margin-top: 8px;
}

/* Timeline Section */
.box-container-time {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    height: auto;
    min-height: 400px;
}

.timeline {
    position: relative;
    padding: 16px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #e0e0e0;
    z-index: 0;
}

.item-box {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.box-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text {
    font-weight: 500;
    color: #303030;
}

.timestamp {
    font-size: 14px;
    color: #616161;
    text-align: center;
}

/* Order Details Section */
.box-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.box-card-info {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.custom-label {
    color: #616161;
    font-weight: 500;
}

.custom-value {
    color: #303030;
    font-weight: 600;
}

/* Current Status Highlight */
.timeline.current-status .item-box {
    border: 2px solid #002781;
    background-color: rgba(0, 39, 129, 0.02);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    padding: 16px 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-warning {
    background-color: #fff8e1;
    border: 1px solid #ffe57f;
    color: #856404;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .item-box {
        width: 100%;
        max-width: 300px;
    }
    
    .tracking-info {
        padding: 16px;
    }
    
    .box-container {
        padding: 16px;
    }
}

/* Phone verification field styles */
.phone-verification-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.phone-verification-field small {
    display: block;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Invalid field styling */
.phone-verification-field input:invalid {
    border-color: #dc3545;
}

.phone-verification-field input:invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Alert styling enhancement */
.alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert i {
    font-size: 1.25rem;
}

/* Enhanced Tracking Header */
.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tracking-id {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 39, 129, 0.05);
    border-radius: 20px;
    animation: statusPulse 2s infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #002781;
    border-radius: 50%;
    animation: glowPulse 2s infinite;
}

.status-text {
    font-weight: 600;
    color: #002781;
}

/* Enhanced Timeline Styles */
.timeline-wrapper {
    position: relative;
    height: 500px;
    margin: 20px 0;
    overflow: hidden;
}

.timeline-scroll {
    height: 100%;
    overflow-y: auto;
    padding-right: 20px;
    scrollbar-width: thin;
    scrollbar-color: #002781 #f0f0f0;
}

/* Custom Scrollbar */
.timeline-scroll::-webkit-scrollbar {
    width: 6px;
}

.timeline-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: #002781;
    border-radius: 3px;
}

/* Timeline Content */
.timeline-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.status-line {
    position: relative;
    width: 2px;
    height: 100%;
    background-color: #e0e0e0;
}

.timeline .status-dot {
    width: 12px;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 50%;
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline.current-status .status-dot {
    background-color: #002781;
    box-shadow: 0 0 0 4px rgba(0, 39, 129, 0.2);
}

/* Animations */
@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 39, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 39, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 39, 129, 0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 39, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 39, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 39, 129, 0);
    }
}

/* Smooth Timeline Transitions */
.timeline {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.timeline:hover {
    opacity: 1;
    transform: translateX(5px);
}

.timeline.current-status {
    opacity: 1;
}

.timeline.current-status .item-box {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Timeline Hover Effects */
.item-box {
    transition: all 0.3s ease;
}

.item-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
