/* Track Collection Page Styles */

.track-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    padding: 100px var(--padding-inline-section) 80px;
    position: relative;
    overflow: hidden;
}

.track-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(70, 215, 84, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

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

.track-hero h1 {
    font-size: 3rem;
    color: var(--primary-text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.track-hero p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 40px;
}

.tracking-search {
    max-width: 650px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    gap: 15px;
}

.search-box i.fa-search {
    color: var(--secondary-text-color);
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 0;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.search-box input::placeholder {
    text-transform: none;
}

.track-btn {
    background: var(--green-theme-color);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.track-btn:hover {
    background: var(--green-theme-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70, 215, 84, 0.3);
}

.helper-text {
    text-align: center;
    margin-top: 20px;
    color: var(--secondary-text-color);
    font-size: 0.95rem;
}

.helper-text a {
    color: var(--green-theme-color);
    text-decoration: none;
    font-weight: 500;
}

.helper-text a:hover {
    text-decoration: underline;
}

/* Tracking Results */
.tracking-results {
    padding: 80px var(--padding-inline-section);
    background: #f8f9fa;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 25px;
}

/* Collection Info Card */
.collection-info-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.tracking-id-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-text-color);
}

.tracking-id-badge i {
    color: var(--green-theme-color);
    font-size: 1.5rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: #dcfce7;
    color: #16a34a;
    font-weight: 600;
}

.status-badge.scheduled {
    background: #dbeafe;
    color: #2563eb;
}

.status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.3rem;
    color: var(--green-theme-color);
    margin-top: 5px;
}

.info-item div {
    flex: 1;
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.info-item span {
    display: block;
    font-size: 1rem;
    color: var(--primary-text-color);
    font-weight: 600;
}

/* Progress Tracker Card */
.progress-tracker-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.progress-tracker-card h3 {
    font-size: 1.5rem;
    color: var(--primary-text-color);
    margin-bottom: 30px;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--green-theme-color) 0%, #e5e7eb 100%);
}

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

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

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1rem;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-dot {
    background: var(--green-theme-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(70, 215, 84, 0.2);
}

.timeline-item.active .timeline-dot {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.timeline-content .time {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 12px;
}

.timeline-item.active .timeline-content .time {
    background: #dbeafe;
    color: #2563eb;
    font-weight: 500;
}

/* Driver Info Card */
.driver-info-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.driver-info-card h3 {
    font-size: 1.5rem;
    color: var(--primary-text-color);
    margin-bottom: 25px;
}

.driver-details {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.driver-avatar {
    font-size: 4rem;
    color: var(--green-theme-color);
}

.driver-info h4 {
    font-size: 1.3rem;
    color: var(--primary-text-color);
    margin-bottom: 5px;
}

.driver-info p {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.driver-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #fbbf24;
    font-size: 0.9rem;
}

.driver-rating span {
    margin-left: 8px;
    color: var(--secondary-text-color);
}

.driver-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.call-btn {
    background: var(--green-theme-color);
    color: white;
}

.call-btn:hover {
    background: var(--green-theme-color-dark);
    transform: translateY(-2px);
}

.message-btn {
    background: #f3f4f6;
    color: var(--primary-text-color);
}

.message-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.vehicle-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
}

.vehicle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--primary-text-color);
}

.vehicle-item i {
    color: var(--green-theme-color);
    font-size: 1.1rem;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.action-card i {
    font-size: 2.5rem;
    color: var(--green-theme-color);
    margin-bottom: 15px;
}

.action-card h4 {
    font-size: 1.2rem;
    color: var(--primary-text-color);
    margin-bottom: 10px;
}

.action-card p {
    color: var(--secondary-text-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.card-link {
    color: var(--green-theme-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

/* Recent Tracking Section */
.recent-tracking {
    padding: 80px var(--padding-inline-section);
    background: white;
}

.recent-tracking h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-text-color);
    margin-bottom: 50px;
}

.recent-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.recent-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.recent-card:hover {
    border-color: var(--green-theme-color);
    box-shadow: 0 10px 30px rgba(70, 215, 84, 0.1);
    transform: translateY(-5px);
}

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

.tracking-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-text-color);
}

.status-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.completed-tag {
    background: #d1fae5;
    color: #059669;
}

.progress-tag {
    background: #dbeafe;
    color: #2563eb;
}

.scheduled-tag {
    background: #fef3c7;
    color: #d97706;
}

.recent-info {
    margin-bottom: 20px;
}

.recent-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-text-color);
    margin-bottom: 8px;
}

.recent-info i {
    color: var(--green-theme-color);
}

.view-details-btn {
    width: 100%;
    padding: 12px;
    background: var(--green-theme-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.view-details-btn:hover {
    background: var(--green-theme-color-dark);
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .track-hero h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

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

    .info-grid {
        grid-template-columns: 1fr;
    }

    .driver-actions {
        flex-direction: column;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .recent-grid {
        grid-template-columns: 1fr;
    }

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

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

    .timeline-dot {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .track-hero {
        padding: 60px var(--padding-inline-section) 50px;
    }

    .tracking-results {
        padding: 50px var(--padding-inline-section);
    }

    .collection-info-card,
    .progress-tracker-card,
    .driver-info-card {
        padding: 25px;
    }

    .info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
