/* Professional Section Headers for Market Mood Page */
.section-header-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem 2rem;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.section-header-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.section-header-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 2rem;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.15);
    position: relative;
    overflow: hidden;
}

.section-header-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.section-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

/* Enhanced Professional Progress Bars */
.progress-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-labels .min-label {
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.progress-labels .min-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.progress-labels .max-label {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.progress-labels .max-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.progress-bar-container {
    position: relative;
    height: 48px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.12),
        0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid rgba(255,255,255,0.8);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.progress-bar-container:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 12px 32px rgba(0,0,0,0.18),
        0 6px 16px rgba(0,0,0,0.12);
}

.progress-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 30%, #dc2626 70%, #ef4444 100%);
    border-radius: 24px;
    opacity: 0.85;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.95; }
}

.progress-bar-container::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    border-radius: 22px;
    pointer-events: none;
}

.progress-indicator {
    position: absolute;
    top: -16px;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.progress-indicator:hover {
    transform: translateX(-50%) scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2));
}

.progress-value {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.15),
        0 4px 12px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    white-space: nowrap;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.progress-value:hover {
    transform: scale(1.02);
    box-shadow: 
        0 12px 32px rgba(0,0,0,0.2),
        0 6px 16px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.progress-arrow {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 16px solid rgba(255,255,255,0.9);
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.progress-description {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 0;
}

/* Enhanced Professional FII Progress Bars */
.fii-progress {
    height: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 6px 20px rgba(0,0,0,0.1),
        0 3px 10px rgba(0,0,0,0.06);
    border: 2px solid rgba(255,255,255,0.8);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.fii-progress:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 8px 28px rgba(0,0,0,0.15),
        0 4px 14px rgba(0,0,0,0.08);
}

.fii-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 30%, #dc2626 70%, #ef4444 100%);
    border-radius: 20px;
    opacity: 0.85;
    animation: shimmer 3s ease-in-out infinite;
}

.fii-progress::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    border-radius: 18px;
    pointer-events: none;
}

.fii-progress .progress-bar {
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 2;
}

.fii-progress .progress-bar.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.fii-progress .progress-bar.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.fii-progress .progress-bar.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 50%, #374151 100%);
    box-shadow: 
        0 4px 12px rgba(107, 114, 128, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.fii-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

/* Enhanced Professional Sub-Progress Bars */
.sub-progress {
    height: 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 14px;
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.1),
        0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.6);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.sub-progress:hover {
    transform: translateY(-1px);
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.1),
        0 4px 14px rgba(0,0,0,0.12);
}

.sub-progress .progress-bar {
    height: 100%;
    border-radius: 14px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 600;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sub-progress .progress-bar.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 
        0 2px 6px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.sub-progress .progress-bar.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 
        0 2px 6px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.sub-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

/* Enhanced Professional Cards */
.professional-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        0 4px 16px rgba(0,0,0,0.06),
        0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.professional-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 16px 48px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.06);
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Enhanced Professional Market Data Cards */
.market-data-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.08),
        0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.market-data-card:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 
        0 12px 36px rgba(0,0,0,0.12),
        0 6px 18px rgba(0,0,0,0.06);
}

.market-data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #dc2626 100%);
}

/* Enhanced Professional Badges */
.professional-badge {
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.15),
        0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.professional-badge:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 6px 16px rgba(0,0,0,0.2),
        0 3px 8px rgba(0,0,0,0.15);
}

.professional-badge.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.professional-badge.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #dc2626;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.professional-badge.secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border-color: #4b5563;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.professional-badge.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Enhanced Professional Progress Bar for Advance/Decline */
.advance-decline-progress {
    height: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid rgba(255,255,255,0.8);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.advance-decline-progress:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 6px 18px rgba(0,0,0,0.12);
}

.advance-decline-progress .progress-bar {
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.advance-decline-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

/* Enhanced Card Styling for FII Sections */
.card.shadow-sm.border-0 {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.08),
        0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card.shadow-sm.border-0:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.12),
        0 6px 20px rgba(0,0,0,0.06);
}

.card.shadow-sm.border-0::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Unified Progress Bars - All Sections Same Style */
.fii-progress-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.unified-progress-container {
    width: 100%;
    max-width: 70%; /* Reduced width for Market Range Indicators */
    margin: 0 auto;
    position: relative;
}

.fii-progress-container {
    max-width: 90%; /* 30% extra than Market Range Indicators (70% + 30% = 100%, but capped at 90%) */
}

.fii-progress-container.index-futures {
    max-width: 95%; /* Maximum width for FII Index Futures */
}

.fii-progress-container.index-options,
.fii-progress-container.stock-futures,
.fii-progress-container.stock-options {
    max-width: 92%; /* Slightly less than index-futures but still 30%+ extra than Market Range Indicators */
}

.fii-progress-labels,
.unified-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.fii-progress-labels .min-label {
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.fii-progress-labels .min-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.fii-progress-labels .max-label {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.fii-progress-labels .max-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.fii-progress-bar-container,
.unified-progress-bar-container {
    position: relative;
    height: 48px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.12),
        0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid rgba(255,255,255,0.8);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.fii-progress-bar-container:hover,
.unified-progress-bar-container:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 12px 32px rgba(0,0,0,0.18),
        0 6px 16px rgba(0,0,0,0.12);
}

.fii-progress-bar-container::before,
.unified-progress-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 24px;
    opacity: 0.85;
}

.fii-progress-bar-container::after,
.unified-progress-bar-container::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    border-radius: 22px;
    pointer-events: none;
}

.fii-progress-indicator,
.unified-progress-indicator {
    position: absolute;
    top: -16px;
    left: 50% !important; /* Center the indicator */
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.fii-progress-indicator:hover,
.unified-progress-indicator:hover {
    transform: translateX(-50%) scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2));
}

.fii-progress-value,
.unified-progress-value {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.15),
        0 4px 12px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    white-space: nowrap;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fii-progress-value:hover,
.unified-progress-value:hover {
    transform: scale(1.02);
    box-shadow: 
        0 10px 28px rgba(0,0,0,0.18),
        0 6px 16px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.fii-progress-arrow,
.unified-progress-arrow {
    display: none; /* Remove the arrows to eliminate blue horizontal lines */
}

.fii-progress-description,
.unified-progress-description {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.fii-progress-description span:last-child,
.unified-progress-description span:last-child {
    text-align: center;
    flex: 1;
    margin-left: auto;
    margin-right: auto;
}

/* Unified Progress Bar Style for All Sections */
.unified-progress-container {
    width: 100%;
    max-width: 70%; /* Reduced width for Market Range Indicators */
    margin: 0 auto;
    position: relative;
}

.unified-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.unified-progress-labels .min-label {
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.unified-progress-labels .min-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.unified-progress-labels .max-label {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.unified-progress-labels .max-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.unified-progress-bar-container {
    position: relative;
    height: 48px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.12),
        0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid rgba(255,255,255,0.8);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.unified-progress-bar-container:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.1),
        0 12px 32px rgba(0,0,0,0.18),
        0 6px 16px rgba(0,0,0,0.12);
}

.unified-progress-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 24px;
    opacity: 0.85;
}

.unified-progress-bar-container::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    border-radius: 22px;
    pointer-events: none;
}

.unified-progress-indicator {
    position: absolute;
    top: -16px;
    left: 50% !important; /* Center the indicator */
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.unified-progress-indicator:hover {
    transform: translateX(-50%) scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2));
}

.unified-progress-value {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.15),
        0 4px 12px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    white-space: nowrap;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.unified-progress-value:hover {
    transform: scale(1.02);
    box-shadow: 
        0 10px 28px rgba(0,0,0,0.18),
        0 6px 16px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.unified-progress-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.unified-progress-description {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.fii-progress-bar-container .progress-bar {
    height: 100%;
    border-radius: 24px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.fii-progress-bar-container .progress-bar.bg-danger {
    justify-content: center;
    text-align: center;
}

.fii-progress-bar-container .progress-bar.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.fii-progress-bar-container .progress-bar.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.fii-progress-bar-container .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.unified-progress-bar-container .progress-bar {
    height: 100%;
    border-radius: 24px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.unified-progress-bar-container .progress-bar.bg-danger {
    justify-content: center;
    text-align: center;
}

.unified-progress-bar-container .progress-bar.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.unified-progress-bar-container .progress-bar.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.unified-progress-bar-container .progress-bar.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 50%, #374151 100%);
    box-shadow: 
        0 4px 12px rgba(107, 114, 128, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.unified-progress-bar-container .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header-main,
    .section-header-secondary {
        padding: 1rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-icon {
        font-size: 1.25rem;
    }
    
    .progress-bar-container {
        height: 40px;
    }
    
    .progress-value {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .progress-labels {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    
    .progress-labels .min-label,
    .progress-labels .max-label {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    /* FII Progress Labels - Mobile */
    .fii-progress-labels,
    .unified-progress-labels {
        font-size: 0.6rem !important;
        margin-bottom: 0.5rem;
    }
    
    .fii-progress-labels .min-label,
    .fii-progress-labels .max-label,
    .unified-progress-labels .min-label,
    .unified-progress-labels .max-label {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.6rem !important;
        border-radius: 10px;
    }
    
    /* FII Progress Bar Container - Mobile */
    .fii-progress-bar-container,
    .unified-progress-bar-container {
        height: 32px !important;
        border-radius: 16px !important;
    }
    
    /* FII Progress Value - Mobile */
    .fii-progress-value,
    .unified-progress-value {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        border-radius: 10px;
    }
    
    /* FII Progress Description - Mobile */
    .fii-progress-description,
    .unified-progress-description {
        font-size: 0.65rem !important;
        margin-top: 0.5rem;
    }
    
    /* Progress Description - Mobile */
    .progress-description {
        font-size: 0.65rem;
        margin-top: 0.5rem;
    }
    
    .fii-progress {
        height: 32px;
    }
    
    .sub-progress {
        height: 20px;
    }
    
    .advance-decline-progress {
        height: 24px;
    }
    
    /* Progress bar text inside bars - Mobile */
    .fii-progress-bar-container .progress-bar,
    .unified-progress-bar-container .progress-bar {
        font-size: 0.7rem !important;
    }
    
    .progress-bar-container .progress-bar {
        font-size: 0.7rem !important;
    }
    
    .fii-progress .progress-bar {
        font-size: 0.65rem !important;
    }
    
    .sub-progress .progress-bar {
        font-size: 0.6rem !important;
    }
    
    .advance-decline-progress .progress-bar {
        font-size: 0.65rem !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .fii-progress-labels,
    .unified-progress-labels {
        font-size: 0.55rem !important;
        margin-bottom: 0.4rem;
    }
    
    .fii-progress-labels .min-label,
    .fii-progress-labels .max-label,
    .unified-progress-labels .min-label,
    .unified-progress-labels .max-label {
        padding: 0.15rem 0.3rem !important;
        font-size: 0.55rem !important;
        border-radius: 8px;
    }
    
    .fii-progress-bar-container,
    .unified-progress-bar-container {
        height: 28px !important;
        border-radius: 14px !important;
    }
    
    .fii-progress-value,
    .unified-progress-value {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
        border-radius: 8px;
    }
    
    .fii-progress-description,
    .unified-progress-description,
    .progress-description {
        font-size: 0.6rem !important;
        margin-top: 0.4rem;
    }
    
    .progress-labels {
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
    }
    
    .progress-labels .min-label,
    .progress-labels .max-label {
        padding: 0.15rem 0.3rem;
        font-size: 0.6rem;
    }
    
    .progress-value {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Progress bar text inside bars - Mobile */
    .fii-progress-bar-container .progress-bar,
    .unified-progress-bar-container .progress-bar {
        font-size: 0.65rem !important;
    }
    
    .progress-bar-container .progress-bar {
        font-size: 0.65rem !important;
    }
    
    .fii-progress .progress-bar {
        font-size: 0.6rem !important;
    }
    
    .sub-progress .progress-bar {
        font-size: 0.55rem !important;
    }
    
    .advance-decline-progress .progress-bar {
        font-size: 0.6rem !important;
    }
} 