/* Application Tracking Styles */

.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.tracking-section {
    padding: var(--section-padding);
    background: var(--soft-gray);
}

.tracking-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 50px;
    text-align: center;
}

.tracking-form h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 500;
    text-align: left;
}

.application-status {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 40px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-blue);
}

.status-header h2 {
    color: var(--primary-blue);
    margin: 0;
}

.application-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.application-info span {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.application-info strong {
    color: var(--primary-blue);
}

.progress-timeline {
    position: relative;
    padding: 0 20px;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--light-blue);
    border-radius: 2px;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-step.completed .step-icon {
    background: var(--success-green);
    color: var(--white);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--success-green);
}

.timeline-step.current .step-icon {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--primary-blue);
    animation: pulse-blue 2s infinite;
}

.timeline-step.pending .step-icon {
    background: var(--medium-gray);
    color: var(--white);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--medium-gray);
}

.step-content {
    flex: 1;
    padding-top: 10px;
}

.step-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--medium-gray);
    margin-bottom: 10px;
    line-height: 1.5;
}

.step-date {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 500;
}

.timeline-step.completed .step-date {
    color: var(--success-green);
}

.timeline-step.current .step-date {
    color: var(--primary-blue);
    font-weight: 600;
}

.status-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-blue);
}

.demo-section {
    background: var(--light-blue);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.demo-section h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.demo-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.demo-app {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.demo-app:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: var(--primary-blue);
    color: var(--white);
}

.demo-app strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.demo-app:hover strong {
    color: var(--white);
}

.demo-app span {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.demo-app:hover span {
    color: rgba(255, 255, 255, 0.9);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 15px;
}

.status-completed {
    background: var(--success-green);
    color: var(--white);
}

.status-current {
    background: var(--primary-blue);
    color: var(--white);
}

.status-pending {
    background: var(--medium-gray);
    color: var(--white);
}

/* Animations */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--primary-blue);
    }
    50% {
        box-shadow: 0 0 0 4px var(--white), 0 0 0 12px rgba(0, 66, 122, 0.5);
    }
    100% {
        box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--primary-blue);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .status-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .application-info {
        text-align: center;
    }
    
    .progress-timeline::before {
        left: 30px;
    }
    
    .timeline-step {
        gap: 20px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .status-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-apps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tracking-form,
    .application-status {
        padding: 25px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .timeline-step {
        gap: 15px;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .progress-timeline::before {
        left: 22px;
    }
}
