/* Auto-save indicator */
.assignment-autosave-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #50991F;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 999999;
    font-size: 14px;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.assignment-autosave-indicator::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hide [email_form] shortcode text before assignment is started */
.masterstudy-course-player-assignments__content {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

/* Show actual assignment content when present */
.masterstudy-course-player-assignments__content * {
    font-size: 16px !important;
    line-height: 28px !important;
    color: #4d5e6f !important;
}
