/* Modern Purple Dark Tech Goal Bar CSS */
.sed-goal-container {
    margin: 30px auto 20px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    border-radius: 16px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(147, 51, 234, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.sed-goal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.sed-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.95em;
    color: #e2e8f0;
    position: relative;
    z-index: 1;
}

.sed-goal-header .goal-title {
    font-weight: 600;
    color: #f1f5f9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.sed-goal-header .goal-progress-text {
    font-weight: 700;
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    font-family: 'Courier New', monospace;
}

.sed-goal-bar-wrapper {
    width: 100%;
    height: 28px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    position: relative;
    z-index: 1;
}

.sed-goal-bar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        transparent 100%);
    animation: wrapper-pulse 3s ease-in-out infinite;
}

.sed-goal-bar {
    height: 100%;
    width: 0; /* Começa em 0, o JS atualiza */
    background: linear-gradient(135deg, 
        #7c3aed 0%, 
        #9333ea 25%, 
        #a855f7 50%, 
        #c084fc 75%, 
        #e879f9 100%);
    border-radius: 14px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(147, 51, 234, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Efeito de brilho principal na barra */
.sed-goal-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: goal-shimmer 3s infinite;
}

/* Efeito de partículas na barra */
.sed-goal-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px, 25px 25px;
    animation: particles-float 4s ease-in-out infinite;
}

@keyframes goal-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes wrapper-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes particles-float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-2px);
        opacity: 1;
    }
}

.sed-goal-achieved {
    font-weight: 700;
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    animation: achievement-glow 2s ease-in-out infinite alternate;
}

@keyframes achievement-glow {
    0% {
        text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    }
    100% {
        text-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sed-goal-container {
        margin: 20px auto 15px;
        padding: 20px;
    }
    
    .sed-goal-header {
        font-size: 0.9em;
        margin-bottom: 14px;
    }
    
    .sed-goal-bar-wrapper {
        height: 26px;
    }
}

/* Hover effects para interatividade */
.sed-goal-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(147, 51, 234, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sed-goal-bar-wrapper:hover {
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 15px rgba(147, 51, 234, 0.4);
    transition: box-shadow 0.3s ease;
}