/* Estilos para o Custom Carousel Widget */

/* Ícones SVG */
.icon-svg {
    width: 18px; /* Aumentado sutilmente de 16px para 18px */
    height: 18px;
    fill: #ffffff !important; /* Forçando cor branca */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.lock-icon,
.hourglass-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 9px; /* Aumentado sutilmente de 8px para 9px para manter proporção */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Aumentado sutilmente de 32px para 36px */
    height: 36px;
}

/* Barra de Progresso */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.progress-bar-wrapper {
    position: relative;
    width: 100%;
    height: 30px; /* Altura fixa para acomodar o texto */
    overflow: hidden;
}

.progress-bar-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 45px; /* Garante espaço mínimo para o texto */
}

.progress-percentage {
    position: relative;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 3;
    transition: all 0.3s ease-out;
    padding: 0 10px;
    white-space: nowrap;
    margin-left: auto;
}

/* Animações */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.progress-bar-container {
    animation: slideUp 0.3s ease-out;
}

/* Estados do Curso */
.carousel-item {
    position: relative;
    overflow: hidden;
}

.carousel-item.grayscale img {
    filter: grayscale(100%);
}

/* Responsividade */
@media (max-width: 767px) {
    .progress-bar-wrapper {
        height: 25px;
    }
    
    .progress-percentage {
        font-size: 12px;
        padding: 0 8px;
    }
    
    .progress-bar-fill {
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .progress-bar-wrapper {
        height: 22px;
    }
    
    .progress-percentage {
        font-size: 11px;
        padding: 0 6px;
    }
    
    .progress-bar-fill {
        min-width: 35px;
    }
}
