/**
 * Estilos do Sistema de Progresso do Aluno
 */

/* Barra de Progresso */
.ead-progress-bar-container {
    background: #2A2A2A;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.ead-progress-bar {
    background: linear-gradient(90deg, #A020F0 0%, #FF1493 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

/* Círculo de Progresso */
.ead-progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.ead-progress-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.ead-progress-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.ead-progress-circle .progress-bg {
    stroke: #2A2A2A;
}

.ead-progress-circle .progress-fg {
    stroke: url(#gradient);
}

.ead-progress-circle .progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: bold;
    color: #A020F0;
}

/* Botão de Conclusão */
.ead-mark-complete {
    background: linear-gradient(135deg, #A020F0 0%, #FF1493 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3);
}

.ead-mark-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 32, 240, 0.5);
}

.ead-mark-complete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ead-completed {
    background: #10B981 !important;
    cursor: default !important;
}

.ead-completed:hover {
    transform: none !important;
}

/* Notificações */
.ead-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    min-width: 300px;
    transition: right 0.3s ease;
}

.ead-notification.show {
    right: 20px;
}

.ead-notification.success {
    border-left: 4px solid #10B981;
    color: #065F46;
}

.ead-notification.success::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 12px;
    font-weight: bold;
}

/* Modal de Conclusão */
.ead-completion-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s;
}

.ead-completion-modal.show {
    opacity: 1;
}

.ead-completion-content {
    background: white;
    padding: 60px 80px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.ead-completion-modal.show .ead-completion-content {
    transform: scale(1);
}

.completion-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.ead-completion-content h2 {
    color: #1A1A1A;
    font-size: 36px;
    margin: 20px 0;
}

.ead-completion-content p {
    color: #666;
    font-size: 18px;
    margin: 10px 0;
}

.ead-btn-primary {
    background: linear-gradient(135deg, #A020F0 0%, #FF1493 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s;
}

.ead-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 32, 240, 0.5);
}

/* Checkbox de Conclusão */
.ead-lesson-complete-check {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #A020F0;
}

/* Status do Curso */
.ead-course-status {
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* Cards de Progresso */
.ead-progress-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A1A3A 100%);
    padding: 30px;
    border-radius: 16px;
    color: white;
    margin-bottom: 20px;
}

.ead-progress-card h3 {
    color: #A020F0;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.progress-stat {
    text-align: center;
}

.progress-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #A020F0;
}

.progress-stat-label {
    color: #B0B0B0;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .ead-notification {
        min-width: 250px;
        padding: 15px 20px;
    }
    
    .ead-completion-content {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .completion-icon {
        font-size: 60px;
    }
    
    .ead-completion-content h2 {
        font-size: 28px;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ead-progress-card {
    animation: fadeIn 0.5s ease;
}
