/* tracker.css */

.notification-container {
    position: relative;
    width: 100%;
    z-index: 9999;
}

.notification {
    padding: 1rem 2rem;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

    .notification.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .notification.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.tracker-stability-wrapper {
    min-height: 100px !important;
    padding: 20px !important;
    background-color: transparent !important;
}

.progress-tracker {
    opacity: 1 !important;
    visibility: visible !important;
}

.progress-tracker-container {
    height: 150px !important;
    position: relative !important;
    margin: 10px auto 0 auto !important;
    opacity: 0;
    animation: fadeInTracker 0.5s ease-in forwards;
}

#progress-tracker-root {
    background-color: transparent !important;
    display: block !important;
    min-height: 100px !important;
    margin: 50px auto 10px auto; 
    padding: 1.5rem !important;
    position: relative !important;
    border-radius: 8px !important;
    opacity: 0;
    animation: fadeInContent 0.5s ease-in 0.2s forwards;
    max-width: 1200px !important;
    margin-bottom: 10px;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.progress-line {
    flex-grow: 1;
    height: 2px;
    background-color: #ccc;
}

    .progress-line.completed {
        background-color: #4CAF50;
    }

/* Add z-index to ensure visibility */
#progress-tracker-root > div {
    position: relative;
    z-index: 1;
}

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    background: transparent !important;
    padding: 2rem !important;
    border-radius: 0.5rem !important;
    max-width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    z-index: 10000 !important;
}

/* Rest of your tracker.css styles */

@keyframes fadeInTracker {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


@keyframes fadeInContent {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Keep all your other existing tracker styles */

body {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #4A90E2; /*#2563EB  or softer blue: #4A90E2  or originally had: #5A9BEF */
    --primary-blue-hover: #357AB; /*#1D4ED8 or slighly darker blue: #357AB or originally had: #4994E1 */
    --light-gray: #F9FAFB;
    --border-gray: #D1D5DB;
    --text-gray: #4B5563;
}

/* Prevent layout jumps with progress tracker */

.progress-tracker-wrapper {
    width: 100% !important;
    margin-top: -6rem !important;
    padding: 0 15px !important;
    position: absolute !important;
}

body.page-transitioning .progress-tracker-container {
    opacity: 1 !important;
}

/* Progress Tracker Specific Styles */
.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

/* Add this for the connecting line to the right */
#progress-tracker-root .step::after {
    content: '' !important;
    position: absolute !important;
    top: 17px !important;
    left: 50% !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #ccc !important;
    z-index: 1 !important;
    transform: translateX(50%) !important;
}

/* Update completed states for both lines */
#progress-tracker-root .step.completed::before,
#progress-tracker-root .step.completed::after {
    background-color: var(--primary-blue) !important;
    transition: background-color 0.3s ease-in-out !important;
}

/* Hide the lines for first and last steps appropriately */
#progress-tracker-root .step:first-child::before {
    display: none !important;
}

#progress-tracker-root .step:last-child::after {
    display: none !important;
}

#progress-tracker-root .step.completed::before {
    background-color: var(--primary-blue) !important;
}

#progress-tracker-root .circle {
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    border-radius: 50% !important;
    background-color: var(--light-gray) !important;
    border: 2px solid var(--border-gray) !important;
    transition: all 0.3s ease-in-out !important;
}

    #progress-tracker-root .circle.completed {
        background-color: var(--primary-blue) !important;
        border: 2px solid var(--primary-blue) !important;
        color: white !important;
    }

    #progress-tracker-root .circle.current {
        background-color: white !important;
        border: 4px solid var(--primary-blue) !important;
        box-shadow: 0 0 0 3px rgba(0,102,204,0.2) !important;
    }

#progress-tracker-root .label {
    margin-top: 4px !important; /* Reduced from 8px to 4px to move closer to circles */
    font-size: 12px !important; /* Reduced from 14px to 12px */
    font-weight: 500 !important;
    color: #333 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    text-align: center !important;
    transition: all 0.3s ease-in-out !important;
}

/* Optional: Add a subtle scale effect for the current step */
#progress-tracker-root .step.current .circle {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease-in-out !important;
}

#progress-tracker-root .step:first-child::before {
    display: none !important;
}

/* Your new circle styles */
.circle {
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    border-radius: 50% !important;
    background-color: var(--light-gray) !important;
    border: 2px solid var(--border-gray) !important;
}

/* Your new label styles */
.label {
    margin-top: 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    text-align: center !important;
}

/* Add this simplified connection line style */
.flex-col.items-center:not(:first-child)::before {
    content: '' !important;
    position: absolute !important;
    top: 20px !important; /* Align with the center of the circles */
    right: 50% !important;
    width: 100% !important;
    height: 2px !important;
    background-color: rgb(229, 231, 235) !important; /* Default light gray */
    z-index: 1 !important;
    transform: translateX(-50%) !important;
    display: block !important;
}

/* Style for completed connections */
.flex-col.items-center:not(:first-child)::before {
    background-color: rgb(37, 99, 235) !important; /* Blue for completed */
}

.step.completed::before {
    background-color: var(--primary-blue) !important;
}

.step:first-child::before {
    display: none !important;
}

.circle.completed {
    background-color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue) !important;
    color: white !important;
}

.circle.current {
    background-color: white !important;
    border: 4px solid var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.2) !important;
}

/* 5. Fifth: Utility Classes */
.visible {
    visibility: visible;
    opacity: 1;
}

.hidden {
    visibility: hidden;
    opacity: 0;
}

/* 6. Sixth: Debug Styles */
.debug-outline {
    border: 2px solid red;
}

/* 7. Seventh: Media Queries (always last) */
@media (max-width: 768px) {
    .flex-col-mobile {
        flex-direction: column;
    }

    .w-full-mobile {
        width: 100%;
    }
}

/* Utility Classes */
.w-full {
    width: 100%;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-gray-50 {
    background-color: var(--light-gray);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-medium {
    font-weight: 500;
}

.text-blue-600 {
    color: var(--primary-blue);
}

.bg-blue-600 {
    background-color: var(--primary-blue);
}

.hover\:bg-blue-700:hover {
    background-color: var(--primary-blue-hover);
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-blue-600 {
    border-color: var(--primary-blue);
}

.border-gray-300 {
    border-color: var(--border-gray);
}

.text-white {
    color: white;
}

.text-gray-500 {
    color: #6B7280;
}

.text-gray-600 {
    color: var(--text-gray);
}

.text-gray-700 {
    color: #374151;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.transition-all {
    transition-property: all;
}

.duration-300 {
    transition-duration: 300ms;
}

.bg-gray-100 {
    background-color: #F3F4F6;
}

.bg-gray-200 {
    background-color: #E5E7EB;
}

.hover\:bg-gray-50:hover {
    background-color: #F9FAFB;
}

.hover\:bg-blue-50:hover {
    background-color: #EFF6FF;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.-z-10 {
    z-index: -10;
}

.top-3 {
    top: 0.75rem;
}

.left-0 {
    left: 0;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.h-0\.5 {
    height: 0.125rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.justify-center {
    justify-content: center;
}


/*
.flex-col.items-center:nth-child(5) + .flex-col.items-center::before {
    content: '' !important;
    position: absolute !important;
    top: 20px !important;
    right: 50% !important;
    width: 100% !important;
    height: 2px !important;
    background-color: rgb(37, 99, 235) !important;
    z-index: 1 !important;
    transform: translateX(-50%) !important;
    display: block !important;
}
    */



