
<old_str>/* Loading Animations */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.scales-container {
    position: relative;
    width: 120px;
    height: 80px;
    margin-bottom: 30px;
}

.scales-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background: linear-gradient(to bottom, #DAA520, #B8860B);
    border-radius: 4px;
}

.scales-arm {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #DAA520, #B8860B);
    border-radius: 2px;
    animation: tilt 3s ease-in-out infinite;
    transform-origin: center;
}

.scales-pan {
    position: absolute;
    width: 25px;
    height: 15px;
    background: linear-gradient(to bottom, #F4A460, #CD853F);
    border-radius: 50px;
    top: 12px;
}

.scales-pan.left {
    left: -12px;
    animation: pan-left 3s ease-in-out infinite;
}

.scales-pan.right {
    right: -12px;
    animation: pan-right 3s ease-in-out infinite;
}

@keyframes tilt {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-8deg); }
    75% { transform: translateX(-50%) rotate(8deg); }
}

@keyframes pan-left {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-5px); }
    75% { transform: translateY(5px); }
}

@keyframes pan-right {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(5px); }
    75% { transform: translateY(-5px); }
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.loading-subtext {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

.progress-container {
    width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progress-shine 2s ease-in-out infinite;
    transition: width 0.3s ease;
}

@keyframes progress-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-text {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

.analysis-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
    color: #4CAF50;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background: rgba(255,255,255,0.3);
    animation: pulse 2s ease-in-out infinite;
}

.step.completed .step-icon {
    background: #4CAF50;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.step-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: white;
    font-weight: 600;
}

.step.completed .step-label {
    color: #4CAF50;
    font-weight: 600;
}</old_str>
<new_str>/* Enhanced Loading Animations with Legal Scales */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.loading-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.scales-container {
    position: relative;
    width: 160px;
    height: 120px;
    margin-bottom: 30px;
}

.scales-base {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 60px;
    background: linear-gradient(to bottom, #DAA520, #B8860B, #8B7355);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scales-fulcrum {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #DAA520, #B8860B);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.scales-arm {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 6px;
    background: linear-gradient(to right, #C0C0C0, #E5E5E5, #C0C0C0);
    border-radius: 3px;
    animation: justice-tilt 4s ease-in-out infinite;
    transform-origin: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.scales-pan {
    position: absolute;
    width: 35px;
    height: 20px;
    background: linear-gradient(to bottom, #F4A460, #CD853F, #A0522D);
    border-radius: 50px;
    top: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.scales-chain {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, #C0C0C0, #A9A9A9);
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
}

.scales-pan.left {
    left: -17px;
    animation: evidence-left 4s ease-in-out infinite;
}

.scales-pan.right {
    right: -17px;
    animation: evidence-right 4s ease-in-out infinite;
}

.scales-chain.left {
    left: -2px;
}

.scales-chain.right {
    right: -2px;
}

.scales-evidence {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: evidence-glow 2s ease-in-out infinite;
}

@keyframes justice-tilt {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-12deg); }
    50% { transform: translateX(-50%) rotate(0deg); }
    75% { transform: translateX(-50%) rotate(12deg); }
}

@keyframes evidence-left {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0px); }
    75% { transform: translateY(8px); }
}

@keyframes evidence-right {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(8px); }
    50% { transform: translateY(0px); }
    75% { transform: translateY(-8px); }
}

@keyframes evidence-glow {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.loading-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.loading-subtext {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

.progress-container {
    width: 350px;
    height: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF8C00, #FFD700);
    background-size: 300% 100%;
    border-radius: 15px;
    animation: legal-progress 2.5s ease-in-out infinite;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}

@keyframes legal-progress {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

.progress-text {
    color: rgba(255,255,255,0.95);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.analysis-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 450px;
    margin-top: 25px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.step.active {
    opacity: 1;
    transform: translateY(-5px);
}

.step.completed {
    opacity: 1;
    color: #4CAF50;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step.active .step-icon {
    background: rgba(255,255,255,0.25);
    animation: legal-pulse 2s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

.step.completed .step-icon {
    background: #4CAF50;
    color: white;
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

@keyframes legal-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
        box-shadow: 0 6px 20px rgba(255,255,255,0.2);
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.9; 
        box-shadow: 0 8px 25px rgba(255,255,255,0.3);
    }
}

.step-label {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-align: center;
    font-weight: 500;
    max-width: 80px;
    line-height: 1.2;
}

.step.active .step-label {
    color: white;
    font-weight: 700;
}

.step.completed .step-label {
    color: #4CAF50;
    font-weight: 700;
}

.legal-status {
    margin-top: 20px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}</new_str>
