/* ============================================
   Progress Bar Navigation Component Styles
   ============================================ */

/* Container */
.briefing-progress-container {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Header Section */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.progress-percentage {
    font-size: 16px;
    font-weight: 600;
    color: #4169e1;
    background: linear-gradient(135deg, #4169e1 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Progress Dots Container */
.progress-dots {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
    padding: 0 8px;
}

/* Progress Dot Wrapper */
.progress-dot-wrapper {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Progress Dot Base Styles */
.progress-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

/* Completed Dot (Green) */
.dot-completed {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

.dot-completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Current Dot (Blue) */
.dot-current {
    background: #4169e1;
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.2);
    border-color: #4169e1;
    /* animation: pulse 2s infinite; */
}

/* Pending Dot (Gray) */
.dot-pending {
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    box-shadow: 0 0 0 4px rgba(209, 213, 219, 0.1);
}

/* Clickable Dots - Hover Effects */
a.progress-dot:hover {
    transform: scale(1.4);
    cursor: pointer;
    box-shadow: 0 0 0 6px rgba(65, 105, 225, 0.15);
}

a.dot-completed:hover {
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

a.dot-current:hover {
    background: #3151b3;
    box-shadow: 0 0 0 6px rgba(65, 105, 225, 0.3);
}

/* Non-clickable Dots */
span.progress-dot {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Progress Line (Connector between dots) */
.progress-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 4px;
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.line-completed {
    background: #22c55e;
}

/* Animated line fill effect */
.line-completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Pulse Animation for Current Dot */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(65, 105, 225, 0.05);
    }
}

/* Shimmer Animation for Completed Lines */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   Responsive Design - Mobile & Tablet
   ============================================ */

@media (max-width: 1024px) {
    /* Tablet */
    .progress-dots {
        padding: 0 4px;
    }

    .progress-dot {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    .briefing-progress-container {
        padding: 16px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-percentage {
        font-size: 18px;
    }

    .progress-dots {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 12px 0;
    }

    /* Hide connecting lines on mobile */
    .progress-line {
        display: none;
    }

    .progress-dot {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Dark Mode Support (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .briefing-progress-container {
        background: #1f2937;
        border-color: #374151;
    }

    .progress-text {
        color: #e5e7eb;
    }

    .progress-line {
        background: #374151;
    }

    .dot-pending {
        background: #374151;
        border-color: #4b5563;
    }
}

/* ============================================
   Print Styles - Hide Progress Bar
   ============================================ */

@media print {
    .briefing-progress-container {
        display: none;
    }
}
