/* Project Tracking & Confirmation Page Styles */

/* Page Layout */
.tracking-page {
    padding-top: 100px;
    /* Account for fixed navbar */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card */
.glass-card-large {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-10);
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Success Message */
.success-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
    position: relative;
    overflow: hidden;
    /* Ensure icon doesn't overflow */
    animation: pulse-green 3s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.success-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    min-height: 50px;
    color: var(--success);
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.6));
    animation: checkmarkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s backwards;
}

@keyframes checkmarkPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tracking-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.tracking-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-10);
}

/* Project Roadmap */
.project-roadmap {
    margin-bottom: var(--space-10);
    position: relative;
    padding: var(--space-6) 0;
}

.roadmap-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
    border-radius: var(--radius-full);
    z-index: 0;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.roadmap-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    /* width: 15%; REMOVED - Controlled by JS */
    /* Initial progress for "Submission" */
    background: linear-gradient(90deg, var(--accent-primary), #d9f99d);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 10px rgba(132, 204, 22, 0.8);
    transition: width 1.5s ease-out;
    /* Use transition instead of keyframe animation */
    /* animation: progressFill 1.5s ease-out forwards; REMOVED to allow dynamic width */
    position: relative;
}

.roadmap-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

@keyframes progressFill {
    from {
        width: 0;
    }

    to {
        width: 15%;
    }
}

.roadmap-stages {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.roadmap-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    width: 120px;
}

.stage-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.stage-bubble svg {
    width: 20px;
    height: 20px;
}

.roadmap-stage.completed .stage-bubble {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.roadmap-stage.active .stage-bubble {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(132, 204, 22, 0.1);
}

.stage-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.roadmap-stage.completed .stage-label,
.roadmap-stage.active .stage-label {
    color: var(--text-primary);
}

/* Action Buttons */
.tracking-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.btn-lime-glow {
    background: var(--accent-primary);
    color: #000;
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-lime-glow:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.btn-glass-back {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-glass-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Header Button Style */
.btn-header-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(132, 204, 22, 0.1);
    color: var(--accent-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(132, 204, 22, 0.3);
    box-shadow: 0 0 15px rgba(132, 204, 22, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-header-track:hover {
    background: rgba(132, 204, 22, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-header-track svg {
    transition: transform 0.3s ease;
}

.btn-header-track:hover svg {
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card-large {
        padding: var(--space-6) var(--space-4);
    }

    .tracking-title {
        font-size: var(--font-size-2xl);
    }

    .roadmap-stages {
        font-size: var(--font-size-xs);
    }

    .stage-bubble {
        width: 36px;
        height: 36px;
    }

    .stage-label {
        font-size: var(--font-size-xs);
    }

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

    .btn-lime-glow,
    .btn-glass-back {
        width: 100%;
        justify-content: center;
    }
}